Darwin libpq link failing

From: ash <xpi(at)aeria(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Darwin libpq link failing
Date: 2003-02-27 04:40:55
Message-ID: 200302270440.h1R4et0S004627@ed.cdbed1.client.atlantech.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I have a library that I wrote under OpenBSD and built with no problem for years.. but as I'm porting to darwin, I'm noticing some .. unpleasend behavioure during final linking on a Mac OS 10.2.4 sytem . please point out any oversights..

first versions..
xpi(at)ryoku:mutilities>psql -V <xpi
psql (PostgreSQL) 7.3.1
built locally with --no-readline as it's only configure option

and gcc 3.1..
on
root(at)ryoku:src>uname -a <root
Darwin ryoku 6.3 Darwin Kernel Version 6.3: Sat Dec 14 03:11:25 PST 2002; root:xnu/xnu-344.23.obj~4/RELEASE_PPC Power Macintosh powerpc

Please note that it doesn't bomb after -lpq , as it would if it were an unreadable/invalid library name

xpi(at)ryoku:mutilities>make test <xpi
gcc -O -pipe -Wall -g -Dbugs -I/Users/xpi/tmpsrc/lib/mutilities -L/Users/xpi/tmpsrc/lib/mutilities -Dpthreads -Ddarwin -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -lpq mutil.o maintest.c
ld: Undefined symbols:
_PQclear
_PQerrorMessage
_PQsetdbLogin
...
_PQstatus
*** Error code 1

just to make life difficult for my typo's:
root(at)ryoku:lib>nm libpq.a | grep _PQclear <root
U _PQclear
000006a0 T _PQclear
U _PQclear
root(at)ryoku:lib>pwd <root /usr/local/pgsql/lib

thank you for your time,
>ash

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Aidamir Lovpache 2003-02-27 10:13:37 Re: ECPG: EXEC SQL execute sometimes not returning?
Previous Message Philip Yarra 2003-02-27 02:05:27 ECPG: EXEC SQL execute sometimes not returning?