Date: Tue, 22 Jun 1999 18:17:33 +0200 From: Marc van Kempen <marc@bowtie.nl> To: hackers@freebsd.org Subject: mysterious problem with 2.2.x binary on 3.1 Message-ID: <199906221617.SAA29723@bowtie.nl>
index | next in thread | raw e-mail
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: marc@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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906221617.SAA29723>
