Re: Re: Call for platforms

From: Tom Ivar Helbekkmo <tih(at)kpnQwest(dot)no>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Giles Lean <giles(at)nemeton(dot)com(dot)au>, <lockhart(at)fourpalms(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: Call for platforms
Date: 2001-04-07 19:41:04
Message-ID: 86elv4zeen.fsf@athene.i.eunet.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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(at)varg(dot)i(dot)eunet(dot)no:/usr/src/sys/arch/vax/compile/VARG vax
$ 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kovacs Baldvin 2001-04-07 20:08:45 Message of move
Previous Message Peter Eisentraut 2001-04-07 19:01:37 Re: Re: Call for platforms