Re: Linking
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@carrier.kiev.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 tAdding -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 futureRainbow, Difficult to Cure
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Import Notes
Reply to msg id not found: 39F38532.nailXL1G0OKR@ed.edReference msg id not found: 20001021173051.A4910@lerami.lerctr.orgReference msg id not found: 39F21CE8.nail3BI11QIB4@ed.edReference msg id not found: 20001021174936.A7504@lerami.lerctr.orgReference msg id not found: 39F22262.nail3PJ14YDHT@ed.edReference msg id not found: 20001021182859.A13710@lerami.lerctr.orgReference msg id not found: 39F22CC1.nail3X1146CB4@ed.edReference msg id not found: 20001021190253.A19095@lerami.lerctr.orgReference msg id not found: 39F2324C.nail46V1Y9X8R@ed.edReference msg id not found: 20001021194937.A24630@lerami.lerctr.orgReference msg id not found: 39F38532.nailXL1G0OKR@ed.ed