Re: Re: Call for platforms - Mailing list pgsql-hackers

From Tom Ivar Helbekkmo
Subject Re: Re: Call for platforms
Date
Msg-id 86elv4zeen.fsf@athene.i.eunet.no
Whole thread Raw
In response to Re: Re: Call for platforms  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:

> On such a platform it would hardly be possible to detect anything with any
> reliably.  A linker that links a program "succesfully" while the program
> really needs more libraries to be runnable isn't very useful.

You're right, of course -- it's a bug in the linkage loader on the
platform in question.  NetBSD/vax has it:

$ uname -a
NetBSD varg.i.eunet.no 1.5T NetBSD 1.5T (VARG) #4: Thu Apr 5 23:38:04 CEST 2001
root@varg.i.eunet.no:/usr/src/sys/arch/vax/compile/VARGvax
 
$ cat > foo.c
int main (int argc, char **argv) { readline(); }
$ cc -o foo foo.c
/tmp/ccFTO4Mu.o: Undefined symbol `_readline'referenced from text segment
collect2: ld returned 1 exit status
$ cc -o foo foo.c -ledit
$ echo $?
0
$ ./foo
/usr/libexec/ld.so: Undefined symbol "_tputs"in foo:/usr/lib/libedit.so.2.5
$ echo $?
1
$ ldd foo
foo:       -ledit.2 => /usr/lib/libedit.so.2.5 (0x181b000)       -lc.12 => /usr/lib/libc.so.12.74 (0x182d000)
$

-tih
-- 
The basic difference is this: hackers build things, crackers break them.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Re: Call for platforms
Next
From: Kovacs Baldvin
Date:
Subject: Message of move