RE: [suse-amd64] Howto build 32bit apps on amd64 suse 9.3?

Would it work if you ran "linux32 bash" and then ran the make from that environment? Then it would believe the machine is an i686 (if I remember correctly). -----Original Message----- From: Fred van Zwieten [mailto:suse-amd64@dezwietjes.nl] Sent: Monday, June 06, 2005 12:54 PM To: suse-amd64@suse.com Subject: Re: [suse-amd64] Howto build 32bit apps on amd64 suse 9.3? lothlorien:/home/fred # ls -l /usr/X11R6/lib/libXext* lrwxrwxrwx 1 root root 14 2005-05-19 16:20 /usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4 -rwxr-xr-x 1 root root 57064 2005-03-22 18:33 /usr/X11R6/lib/libXext.so.6.4 lothlorien:/home/fred # ls -l /usr/X11R6/lib64/libXext* -rw-r--r-- 1 root root 115314 2005-03-22 18:25 /usr/X11R6/lib64/libXext.a lrwxrwxrwx 1 root root 14 2005-05-19 16:28 /usr/X11R6/lib64/libXext.so -> libXext.so.6.4 lrwxrwxrwx 1 root root 14 2005-05-19 16:18 /usr/X11R6/lib64/libXext.so.6 -> libXext.so.6.4 -rwxr-xr-x 1 root root 71112 2005-03-22 18:30 /usr/X11R6/lib64/libXext.so.6.4 Libraries are in both 32 and 64 X11 lib paths. Links seems ok ldconfig -v | less shows LD sees both 32 and 64 bit libs. I use: CC="gcc -m32" ./configure --x-libraries=/usr/X11R6/lib I Get: checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for IceConnectionNumber in -lICE... no checking for libXext... no configure: error: We need a working libXext to proceed. Since configure can't find it itself, we stop here assuming that make wouldn't find them either. Regards, Fred On Monday 06 June 2005 21:37, Sid Boyce wrote:
Fred van Zwieten wrote:
Doesn't help, Sid. I found this in config.log:
configure:26988: gcc -m32 -o conftest -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-a rith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat- security -Wmissing-format-attribute -L/usr/X11R6/lib conftest.c -lXext -lX11 >&5
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux /
bin/ld: cannot fin d -lXext
Can you make any sense of it?
-rw-r--r-- 1 root root 76022 2005-03-22 17:28 /usr/X11R6/lib/libXext.a lrwxrwxrwx 1 root root 14 2005-04-19 16:26 /usr/X11R6/lib/libXext.so -> libXext.so.6.4* lrwxrwxrwx 1 root root 14 2005-04-19 14:05 /usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4* -rwxr-xr-x 1 root root 57064 2005-03-22 17:33 /usr/X11R6/lib/libXext.so.6.4* I've seen this problem where the link for libXext.so was missing, but that should be installed as standard and I've checked.... # file /usr/X11R6/lib/libXext.so.6.4 /usr/X11R6/lib/libXext.so.6.4: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped Run "ldconfig -v|less" and check for that library. I can't see why it's not finding it. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com

Great tip! If I use configure without the CC="gcc -m32" prefix it gets past the libXext test, but then I get my original problem back. The reason I wan't to build in 32bit anyway. It states it can't find the synce library. I used synce and synce-devel from the distribution DVD and those are i586 packages. Configure is able to find the synce library but it says it is incompatible, whatever that means... Here's the snippet from config.log: configure:30987: checking for main in -lsynce configure:31011: gcc -o conftest -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute -DQT_THREAD_SUPPORT -D_REENTRANT conftest.c -lsynce >&5 /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libsynce.so when searching for -lsynce /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libsynce.a when searching for -lsynce /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lsynce collect2: ld returned 1 exit status If I use CC="gcc -m32" in the linux32 environment it stops at libXext again Regards, Fred On Monday 06 June 2005 22:01, Black, Alain wrote:
Would it work if you ran "linux32 bash" and then ran the make from that environment? Then it would believe the machine is an i686 (if I remember correctly).
-----Original Message----- From: Fred van Zwieten [mailto:suse-amd64@dezwietjes.nl] Sent: Monday, June 06, 2005 12:54 PM To: suse-amd64@suse.com Subject: Re: [suse-amd64] Howto build 32bit apps on amd64 suse 9.3?
lothlorien:/home/fred # ls -l /usr/X11R6/lib/libXext* lrwxrwxrwx 1 root root 14 2005-05-19 16:20 /usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4 -rwxr-xr-x 1 root root 57064 2005-03-22 18:33 /usr/X11R6/lib/libXext.so.6.4 lothlorien:/home/fred # ls -l /usr/X11R6/lib64/libXext* -rw-r--r-- 1 root root 115314 2005-03-22 18:25 /usr/X11R6/lib64/libXext.a lrwxrwxrwx 1 root root 14 2005-05-19 16:28 /usr/X11R6/lib64/libXext.so -> libXext.so.6.4 lrwxrwxrwx 1 root root 14 2005-05-19 16:18 /usr/X11R6/lib64/libXext.so.6 -> libXext.so.6.4 -rwxr-xr-x 1 root root 71112 2005-03-22 18:30 /usr/X11R6/lib64/libXext.so.6.4
Libraries are in both 32 and 64 X11 lib paths. Links seems ok
ldconfig -v | less shows LD sees both 32 and 64 bit libs.
I use: CC="gcc -m32" ./configure --x-libraries=/usr/X11R6/lib
I Get: checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for IceConnectionNumber in -lICE... no checking for libXext... no configure: error: We need a working libXext to proceed. Since configure can't find it itself, we stop here assuming that make wouldn't find them either.
Regards, Fred
On Monday 06 June 2005 21:37, Sid Boyce wrote:
Fred van Zwieten wrote:
Doesn't help, Sid. I found this in config.log:
configure:26988: gcc -m32 -o conftest -ansi -W -Wall
-Wchar-subscripts
-Wshadow -Wpointer-a rith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat- security -Wmissing-format-attribute -L/usr/X11R6/lib conftest.c
-lXext
-lX11 >&5
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux /
bin/ld: cannot fin d -lXext
Can you make any sense of it?
-rw-r--r-- 1 root root 76022 2005-03-22 17:28
/usr/X11R6/lib/libXext.a
lrwxrwxrwx 1 root root 14 2005-04-19 16:26
/usr/X11R6/lib/libXext.so
-> libXext.so.6.4* lrwxrwxrwx 1 root root 14 2005-04-19 14:05 /usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4* -rwxr-xr-x 1 root root 57064 2005-03-22 17:33 /usr/X11R6/lib/libXext.so.6.4* I've seen this problem where the link for libXext.so was missing, but that should be installed as standard and I've checked.... # file /usr/X11R6/lib/libXext.so.6.4 /usr/X11R6/lib/libXext.so.6.4: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped Run "ldconfig -v|less" and check for that library. I can't see why
it's
not finding it. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux used for all Computing Tasks
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com
participants (2)
-
Black, Alain
-
Fred van Zwieten