Marc Wuilleret <mwuilleret@vtxnet.ch> writes:
Hello,
I have just upgraded my AMD 64 XP system to Suse 9.2 and I have the following problem:
The program "/usr/bin/which" produces a Segmentation fault.
Show us an example, please.
I tried to rebuild the util-linux package from the sources, During the build of "which", the following messages are generated:
make[2]: Entering directory `/usr/src/packages/BUILD/which-2.13' gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -c getopt1.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -c bash.c gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -c which.c gcc -O2 -g -o which getopt.o getopt1.o bash.o which.o ./tilde/libtilde.a /usr/lib/libiberty.a
You should link against /usr/lib64/libiberty.a
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: warning: i386 architecture of input file `/usr/lib/libiberty.a(xmalloc.o)' is incompatible with i386:x86-64 output /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: warning: i386 architecture of input file `/usr/lib/libiberty.a(xexit.o)' is incompatible with i386:x86-64 output make[2]: Leaving directory `/usr/src/packages/BUILD/which-2.13'
I suspect that these warnings about libiberty are the source of the problem, but I am not sure about how to fix that.
No those produce no binary at all, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126