Link problems - Mailing list pgsql-hackers

From Bruce Momjian
Subject Link problems
Date
Msg-id 200102100255.VAA07314@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
I am having problems linking ODBC on bsdi.  They look like crt1.o
symbols.  Any ideas?  Libpq links with a similar line, and works fine.


---------------------------------------------------------------------------

#$ gmake
/usr/bin/ld -shared -soname libpsqlodbc.so.0 -Bsymbolic info.o bind.o
columninfo.o connection.o convert.o drvconn.o environ.o execute.o lobj.o
misc.o options.o pgtypes.o psqlodbc.o qresult.o results.o socket.o
parse.o statement.o gpps.o tuple.o tuplelist.o dlg_specific.o
-L/usr/local/lib -L/usr/contrib/lib -lm -lc  -o libpsqlodbc.so.0.26
/usr/bin/../lib/libc.a(syslog.o): In function `vsyslog':
syslog.o(.text+0x33e): undefined reference to `__progname'
/usr/bin/../lib/libc.a(malloc.o)(.text+0xe): undefined reference to
`__progname'
/usr/bin/../lib/libc.a(malloc.o)(.text+0xc9): undefined reference to
`__progname'
/usr/bin/../lib/libc.a(getenv.o): In function `__findenv':
getenv.o(.text+0x5a): undefined reference to `environ'
getenv.o(.text+0x68): undefined reference to `environ'
getenv.o(.text+0x95): undefined reference to `environ'
gmake: *** [libpsqlodbc.so.0.26] Error 1

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Plan for straightening out the include-file mess
Next
From: ncm@zembu.com (Nathan Myers)
Date:
Subject: Re: Syslog and pg_options (for RPMs)