Re: Linking

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема Re: Linking
Дата
Msg-id 20001022192640.A7889@lerami.lerctr.org
обсуждение исходный текст
Список 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@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 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@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: GCC: Works fine for me...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: AnonCVS access?