pgbench: undefined reference to strndup()

Started by Michael Fuhrover 20 years ago3 messages
#1Michael Fuhr
mike@fuhr.org

A recent pgbench commit causes build failures due to an undefined
reference to strndup(), at least on FreeBSD and UnixWare:

http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=echidna&dt=2005-09-29%2014:30:01
http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=firefly&dt=2005-09-29%2014:27:00

I don't see strndup() in the Open Group Base Specifications, so I
expect other platforms' builds might fail as well.

--
Michael Fuhr

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Fuhr (#1)
Re: pgbench: undefined reference to strndup()

Michael Fuhr <mike@fuhr.org> writes:

A recent pgbench commit causes build failures due to an undefined
reference to strndup(), at least on FreeBSD and UnixWare:

Yeah, breaks on HPUX too. Patch applied.

regards, tom lane

#3Tatsuo Ishii
ishii@sraoss.co.jp
In reply to: Tom Lane (#2)
Re: pgbench: undefined reference to strndup()

Michael Fuhr <mike@fuhr.org> writes:

A recent pgbench commit causes build failures due to an undefined
reference to strndup(), at least on FreeBSD and UnixWare:

Oops.

Yeah, breaks on HPUX too. Patch applied.

Thanks.
--
SRA OSS, Inc. Japan
Tatsuo Ishii