The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Success Stories
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 find the real name of a library
Author: Dan 
Date:   05-12-03 19:36

I was altering the Bacula http://www.freshports.org/sysutils/bacula/ port this afternoon. I am adding PostgreSQL http://www.freshports.org/databases/postgresql7/ support to it. I couldn't get the port to automatically install the PostgreSQL client http://www.freshports.org/databases/postgresql-client/. I was looking at /var/db/pkg/postgresql7-client-7.4/+CONTENTS to find the library names. I tried all of these:

libpq.a
libpq.so
libpq.so.3

with this port command:

LIB_DEPENDS+= libpq:${PORTSDIR}/databases/postgresql-client

But I failed. Then hideaway suggested this:

$ ldconfig -r | grep libpq
118:-lpq.3 => /usr/local/lib/libpq.so.3

Which means this works:

LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql-client

Note that the output of ldconfig -r specifies "-lpq.3" which leads to the solution shown above.

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org