• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[solved] 32 Bit-Software auf einer 64 Bit-Architektur bauen

M4j3stic

Newbie
...und zlib spinnt

Hallo Leute!

Hab mal wieder ein kleines Problem, diesmal mit dem Compilieren von Sourcecode. Ich will 32 Bit Binaries auf einer 64 Bit Kiste compilieren.
(Ich will einem Kumpel ein Paket bauen, weil der das nicht ganz so gut hinbekommt und der hat leider ne 32 Bit Kiste. Das eigentliche Programm ist aMule, aber das ist ja erstmal egal)
Ich hab auch schon raus gefunden, wie man das macht ;) , ich muss ja einfach dem entsprechendem ./configure - script sagen, dass es mit 32 Bit "planen" soll:


Code:
CC="gcc -m32"
Code:
LD="ld -m elf_i386"
hab auch mal das mit angehängt
Code:
LDFLAGS="-L/usr/lib"

Damit dann alles so aussieht:
Code:
./configure CC="gcc -m32" LD="ld -m elf_i386" LDFLAGS="-L/usr/lib"

So, und jetzt kommt das problem, wenn ich das Skript laufen lasse spuckt er mir dann irgendwann diese fehlermeldung aus:
Code:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc -m32
checking whether we are using the GNU C compiler... yes
checking whether gcc -m32 accepts -g... yes
checking for gcc -m32 option to accept ANSI C... none needed
checking dependency style of gcc -m32... gcc3
checking how to run the C preprocessor... gcc -m32 -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld -m elf_i386
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... no
checking for zlib in peer directory... no
configure: error: unable to use zlib - no peer found

Ich hab auch nochmal nachgeschaut, ob zlib & -devel als 32 Bit -Paket bei mir drauf sind und das sind sie auch, auf 64 bit funktioniert alles wunderbar. Wie kann ich denn ./conigure sagen, wo die zlib(32) ist damit er sie findet oder kann ich das Problem auch noch irgendwie anders lösen?

OS: SuSE 10.0 OSS
CPU: AMD64 3000+
RAM: 1024 MB

Schon mal vielen Dank im Vorraus

euer Majestic
 

panamajo

Guru
Code:
# linux32 ./configure ....
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
...
 
Oben