Hi, I have a mysterious problem with running a 2.2.6 binary (dynamically linked) on a 3.1 box. The crazy thing is that it has worked flawlessly before.
After doing a bit of development and compiling it again, I get segfaults when I try to run it on the 3.1 box. When I try it with an a.out gdb (ftp'ed from the 2.2.6 box) I get this: > ./gdb web-ssql GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (gdb) r -v Starting program: /home/bowtie/web-ssql -v reading register eip (#8): Bad address. (gdb) (3.1) ldd web-ssql: > ldd web-ssql web-ssql: -lcrypt.2 => /usr/lib/aout/libcrypt.so.2.0 (0x200a3000) -lm.2 => /usr/lib/aout/libm.so.2.0 (0x200b8000) -lc.3 => /usr/lib/aout/libc.so.3.1 (0x200d2000) (2.2.6) ldd web-ssql: web-ssql: -lcrypt.2 => /usr/lib/libcrypt.so.2.0 (0x200ab000) -lm.2 => /usr/lib/libm.so.2.0 (0x200ae000) -lc.3 => /usr/lib/libc.so.3.1 (0x200c8000) When I link the binary statically it works ok, but unfortunately I need it to be dynamically linked. Does anyone recognize this behaviour? And even better knows whats going on? Regards, Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: m...@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message