Re: Linking

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: KuroiNeko <evpopkov(at)carrier(dot)kiev(dot)ua>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Linking
Date: 2000-10-23 00:26:40
Message-ID: 20001022192640.A7889@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've already cc'd PeterE. I suspect we want the -lpq build to have
-lsocket (at least on THIS (unixware) platform.

Larry
* KuroiNeko <evpopkov(at)carrier(dot)kiev(dot)ua> [001022 19:25]:
>
> Well, all in all, adding -lsocket is just enough. I was trying to compile
> /home/ed/t.c, which contains just PQconnectdb() and PQfinish().
>
> $ cc t.c -o t -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq
>
> The above fails with undefined symbols:
>
> Undefined first referenced
> symbol in file
> inet_aton libpq.so
> gethostbyname libpq.so
> UX:ld: ERROR: Symbol referencing errors. No output written to t
>
> Adding -lsocket will make it compile. I mean this is _probably_ not a big
> deal, but feels abit inconsistent. After all, t.c itself calls nothing from
> -lsocket
> Of course, the final decision should be made by maintainers, but I can't
> help feeling this issue needs to be put up, or at least registered in your
> records.
> I'll try building .so and let you know.
>
> Thx
>
> Ed
>
>
> --
>
> contaminated fish and microchips
> huge supertankers on Arabian trips
> oily propaganda from the leaders' lips
> all about the future
> there's people over here, people over there
> everybody's looking for a little more air
> crossing all the borders just to take their share
> planning for the future
>
> Rainbow, Difficult to Cure
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2000-10-23 00:44:37 regress issues: UW7.1.1/PG7.1dev/GCC
Previous Message Larry Rosenman 2000-10-23 00:23:51 GCC: Works fine for me...