2008-11-15 14:38:34     Build samba fails. uClinux-dist-2008R1.5-RC3

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-15 14:38:34     Build samba fails. uClinux-dist-2008R1.5-RC3

Jim Donelson (UNITED STATES)

Message: 65343   

 

uClinux-dist-2008R1.5-RC3

(note: the smb doku seems out of date)

docs.blackfin.uclinux.org/doku.php

 

menuconfig settings:

Kernel:

 

File Systems--> Network Files Systems

 

<*> SMB file system support (to mount Windows shares etc.)                                

  │ │                         [*]   Use a default NLS                                                                   

  │ │                         (cp437) Default Remote NLS Option                                                            

  │ │                         <*> CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant server

  │ │                         [ ]   CIFS statistics                                       

  │ │                         [ ]   Support legacy servers which use weaker LANMAN security             

  │ │                         [ ]   CIFS extended attributes                                                              

  │ │                         [ ]   Enable additional CIFS debugging routines                                             

  │ │                         [ ]   CIFS Experimental Features (EXPERIMENTAL)  

 

Vendor Applications: Filesystem Appications-->

 

--- SAMBA                                                       

  │ │                                              [*] samba  

  │ │                                              [*]   smbd  

  │ │                                              [*]   nmbd        

  │ │                                              [*]   smbmount

  │ │                                              [*]   smbumount          

  │ │                                              [ ]   uses shared library  

 

 

 

I get this error whether I select uses shared library or not:

 

make[5]: Entering directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build'

Using FLAGS =  -pipe -Wall -g -O2 -mcpu=bf537-0.2 -I../popt -Iinclude -I/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build/../include -I/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build/../ubiqx -I/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build/../smbwrapper  -I. -DEMBED -D__uClinux__ -I/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3 -mcpu=bf537-0.2 -I/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build/..

      LIBS = -lcrypt

      LDSHFLAGS = -shared -Wl,-Bsymbolic  -Wl,-elf2flt -mcpu=bf537-0.2

      LDFLAGS = -Wl,-elf2flt -mcpu=bf537-0.2

Linking libsmbclient shared library bin/libsmbclient.so

-shared used without passing a shared library ID ---> (so how is this fixed?)

collect2: ld returned 1 exit status

make[5]: *** [bin/libsmbclient.so] Error 1

make[5]: Leaving directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source/build'

make[4]: *** [all] Error 2

make[4]: Leaving directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba/source'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user/samba'

make[2]: *** [samba] Error 2

make[2]: Leaving directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/jdonelson/bf/uClinux-dist-2008R1.5-RC3/user'

make: *** [subdirs] Error 1

 

QuoteReplyEditDelete

 

 

2008-11-17 05:17:01     Re: Build samba fails. uClinux-dist-2008R1.5-RC3

Yi Li (CHINA)

Message: 65366   

 

Please select build format as FDPIC (Blackfin build options -> Binary format). Please make sure do a "make clean" under uclinux-dist before changing the format.

 

-Yi

 

 

QuoteReplyEditDelete

 

 

2008-11-19 18:45:11     Re: Build samba fails. uClinux-dist-2008R1.5-RC3

Jim Donelson (UNITED STATES)

Message: 65561   

 

Yi Li,

 

 

 

Thanks! That worked perfectly!

 

 

QuoteReplyEditDelete

 

 

2008-11-19 21:37:01     Re: Build samba fails. uClinux-dist-2008R1.5-RC3

Jim Donelson (UNITED STATES)

Message: 65565   

 

BTW:

 

I also selected the first option shown, which was not selected by defualt.

 

(FDPIC) Binary format                                                            

  │ │                                     [*] Install FLAT shared libraries                 <--- Check this.                                              

  │ │                                          User/Lib CFLAGS =: "-g -O2"                                             

  │ │                                     [ ] build with stack overflow checking                               

 

  │ │                                     [ ] build with mudflap pointer checking                                  

  │ │                                     [*] install uClinux-dist .config into /root                 

  │ │                                                       

QuoteReplyEditDelete

 

 

2008-11-19 21:56:13     Re: Build samba fails. uClinux-dist-2008R1.5-RC3

Yi Li (CHINA)

Message: 65567   

 

Jim,

 

> " [*] Install FLAT shared libraries                 <--- Check this. "

 

If using FDPIC format, this option is not necessary.

 

-Yi

QuoteReplyEditDelete

 

 

2008-11-20 08:58:36     Re: Build samba fails. uClinux-dist-2008R1.5-RC3

Mike Frysinger (UNITED STATES)

Message: 65606   

 

well, that statement isnt completely accurate.  you can build both FDPIC ELF and shared FLAT applications and run them at the same time ... in that case you need to have the shared FLAT libs installed even when your default format is FDPIC ELF.

 

but your implication is that if people are using FDPIC ELF, then they are very very unlikely to also be using shared FLAT ...

Attachments

    Outcomes