---------- Forwarded message ---------- From: Michael Wood <[email protected]> Date: 2009/12/15 Subject: Re: [Samba] Cross compiling for ARM with some errors To: Piotr Piwko <[email protected]>
2009/12/14 Piotr Piwko <[email protected]>: > 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 <[email protected]> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
