Linker Problems - Mailing list pgsql-interfaces

From isaac flemmin
Subject Linker Problems
Date
Msg-id 002401c20c04$ddf48fb0$ad463e04@ixic
Whole thread Raw
List pgsql-interfaces
Hello,

This is only a small annoyance but I figured I would ask to see if
anyone out there has any clues on how to fix it.

I am using Linux Red Hat 7.1 with kernel 2.4.9-31. I have glibc
2.2.4-24, ld 2.10.91, gcc 2.96, and Postgres 7.2.

My problem is when I am compiling programs I have written using lpq I
have to give my compiler -L/<dir to libpq> even though it is in my
ld.so.conf file and I have run ldconfig. I even checked to make sure
that ldconfig was seeing those libraries by running ldconfig -p to print
out the cache and see if the libraries were listed there and they were.
I am not sure why ld is not seeing the libraries unless I specifically
tell it to search the path where the libraries are, and it is not that
hard to type in -L/<some dir> but it is slightly annoying that it does
not work correctly.

So if there is anyone out there who may have some clues about which
direction to start looking for the solution in, it would be greatly
appreciated.

Thanks
Isaac
--
P.S. Somehow it seems like I ended up sending this message to the wrong
mailing list the first time, so if for some reason this is the second
time I have sent this message, please disregard it and accept my
apologies for causing extra mail.



pgsql-interfaces by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_dump.o(.text+0xf82): undefined reference to
Next
From: "Tim Barnard"
Date:
Subject: Re: Linker Problems