Hello, I try to cross compile samba for my ARM platform, but I get the following error in the building process: ----------------------------%<---------------------------- PICFLAG = -fPIE LIBS = -lresolv -lnsl -ldl LDFLAGS = -pie -Wl,-z,relro -L/home/piotr/mini2440/usr/local/arm/4.3.2/lib DYNEXP LDSHFLAGS = shared-libraries-disabled -Wl,-z,relro -L/home/piotr/mini2440/usr/local/arm/4.3.2/lib SHLIBEXT = shared_libraries_disabled SONAMEFLAG = shared-libraries-disabled Linking bin/smbd /home/piotr/mini2440/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: ../lib/util/asn1.o: Relocations in generic ELF (EM: 3) ../lib/util/asn1.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status ----------------------------%<---------------------------- My configure options are: ./configure --host=i686 \ --target=arm-linux \ --prefix= /home/piotr/mini2440/samba/install-samba-arm \ --without-krb5 \ --without-ldap \ --without-ads \ --disable-cups \ --without-swat \ Do you know something more about this error? Maybe you can give me some advices or hints to solve this problem? Thank you in advance for your engagement. -- Piotr Piwko http://www.embedded-engineering.pl/
On Monday 14 December 2009 10:29:03 Piotr Piwko wrote:> I try to cross compile samba for my ARM platform, but I get the > following error in the building process:Hm, I'm running Samba on ARM platforms as well, but so far I saved myself the trouble and compiled software natively :). Still, let's see if I can be of some help. What cross-compiler tool-chain are you using? What version of Samba are you trying to build? Cheers, Kai -- Kai Blin WorldForge developer http://www.worldforge.org/ Wine developer http://wiki.winehq.org/KaiBlin Samba team member http://www.samba.org/samba/team/ -- Will code for cotton. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.samba.org/pipermail/samba/attachments/20091215/285d2945/attachment.pgp>
---------- Forwarded message ---------- From: Michael Wood <esiotrot at gmail.com> Date: 2009/12/15 Subject: Re: [Samba] Cross compiling for ARM with some errors To: Piotr Piwko <piotr.piwko at gmail.com> 2009/12/14 Piotr Piwko <piotr.piwko at gmail.com>:> Hello, > > I try to cross compile samba for my ARM platform, but I get the > following error in the building process: > > ----------------------------%<---------------------------- > ? ? ?PICFLAG ? ?= -fPIE > ? ? ?LIBS ? ? ? = -lresolv -lnsl -ldl > ? ? ?LDFLAGS ? ?= -pie -Wl,-z,relro > -L/home/piotr/mini2440/usr/local/arm/4.3.2/lib > ? ? ?DYNEXP ? ? > ? ? ?LDSHFLAGS ?= shared-libraries-disabled -Wl,-z,relro > -L/home/piotr/mini2440/usr/local/arm/4.3.2/lib > ? ? ?SHLIBEXT ? = shared_libraries_disabled > ? ? ?SONAMEFLAG = shared-libraries-disabled > Linking bin/smbd > /home/piotr/mini2440/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: > ../lib/util/asn1.o: Relocations in generic ELF (EM: 3) > ../lib/util/asn1.o: could not read symbols: File in wrong format > collect2: ld returned 1 exit status > ----------------------------%<---------------------------- > > My configure options are: > > ./configure --host=i686 \ > ? ? ? ?--target=arm-linux \System types: ?--build=BUILD ? ? configure for building on BUILD [guessed] ?--host=HOST ? ? ? cross-compile to build programs to run on HOST [BUILD] ?--target=TARGET ? configure for building compilers for TARGET [HOST] --target only really applies if you're building things like compilers. ?--build is auto-detected. ?--host should be the only thing you need to set. What you're telling configure is that you want to build something like a compiler that runs on i686 and produces binaries for arm-linux. Try: ./configure --host=arm-linux --prefix=... -- Michael Wood <esiotrot at gmail.com>