To solve this question I'm using a samba from two versions before.

If I disable the ldl flag, then I get a lot of "R_68K_GOT160" errors:

...
/uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: relocation truncated to fit: R_68K_GOT16O DEBUGLEVEL_CLASS_ISSET /uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: relocation truncated to fit: R_68K_GOT16O LC44 /uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: relocation truncated to fit: R_68K_GOT16O LC4 /uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: relocation truncated to fit: R_68K_GOT16O dbghdr
...
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:62: relocation truncated to fit: R_68K_GOT16O MD5Init /uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:63: relocation truncated to fit: R_68K_GOT16O MD5Update
bin/smbd.elf2flt: In function `hmac_md5_init_limK_to_64':
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:81: relocation truncated to fit: R_68K_GOT16O memset /uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:83: relocation truncated to fit: R_68K_GOT16O memcpy /uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:92: relocation truncated to fit: R_68K_GOT16O MD5Init
...
bin/smbd.elf2flt: In function `__floatdidf':
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c596): relocation truncated to fit: R_68K_GOT16O _fpCCR /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c5a0): relocation truncated to fit: R_68K_GOT16O _fpCCR /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c5f8): relocation truncated to fit: R_68K_GOT16O _fpCCR
bin/smbd.elf2flt: In function `__extenddfxf2':
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/xfgnulib.c(.text+0x14c93c): relocation truncated to fit: R_68K_GOT16O LC0
collect2: ld returned 1 exit status
make[5]: *** [bin/smbd] Error 1
make[5]: Leaving directory `/uClinux/uClinux-dist/user/samba/source/build'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/uClinux/uClinux-dist/user/samba/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/uClinux/uClinux-dist/user/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory `/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux/uClinux-dist/user'
make: *** [subdirs] Error

Regards,


En/na Greg Ungerer ha escrit:
Hi Daniel,

Daniel Alomar wrote:
Nothing concerning the board. Only about Samba and the ldl library:

Compiling passdb/login_cache.c with
Compiling passdb/pdb_smbpasswd.c with
Compiling passdb/pdb_tdb.c with
Compiling passdb/pdb_guest.c with
Compiling passdb/pdb_sql.c with
Compiling lib/system_smbd.c with
mkdir groupdb
Compiling groupdb/mapping.c with
Compiling passdb/secrets.c with
../passdb/secrets.c: In function `secrets_get_trusted_domains':
../passdb/secrets.c:618: warning: implicit declaration of function `strndup' ../passdb/secrets.c:618: warning: assignment makes pointer from integer without a cast
Compiling passdb/machine_sid.c with
Linking libsmbclient non-shared library bin/libsmbclient.a
Linking bin/smbd
/usr/local/m68k-elf/bin/ld.real: cannot find -ldl
collect2: ld returned 1 exit status
make[5]: *** [bin/smbd] Error 1
make[5]: Leaving directory `/uClinux/uClinux-dist/user/samba/source/build'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/uClinux/uClinux-dist/user/samba/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/uClinux/uClinux-dist/user/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory `/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux/uClinux-dist/user'
make: *** [subdirs] Error 1

A new version of samba was imported before that release.
Looks like it has issues. If you don't need it disable it.
Otherwise it will take some fixing.

Regards
Greg



En/na Greg Ungerer ha escrit:
Hi Daniel,

Daniel Alomar wrote:
Is the 2.95.3 toolchain compatible with the linux-2.4.x kernel from the latest Clinux distribution (20070130)?

It should work. But I use a newer gcc-3.4.4 based tool chain
for non-mmu ARM now (both 2.4 and 2.6 kernels).


I'm trying to compile my custom board and I have some weird errors....

What are the errors?

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev





--
Daniel Alomar i Claramonte
Research & Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to