Subject: pkg/29437: freeradius can't get postgresql support
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <luiszuccolo@ciudad.com.ar>
List: pkgsrc-bugs
Date: 02/18/2005 03:17:01
>Number:         29437
>Category:       pkg
>Synopsis:       freeradius can't get postgresql support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 18 03:17:00 +0000 2005
>Originator:     luis
>Release:        2.0
>Organization:
>Environment:
NetBSD tehuel.daemon 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
When build the pkg, the file /usr/pkg/lib/rlm_sql_postgresql.so isn't created. 
The compiling procces show this message.. 

...
... -I/usr/pkgsrc/net/freeradius/work/freeradius-1.0.1/libltdl -o rlm_sql_postgresql.la -rpath /usr/pkg/lib sql_postgresql.lo -lpq
rm -fr .libs/rlm_sql_postgresql.la .libs/rlm_sql_postgresql.* .libs/rlm_sql_postgresql-1.0.1.*

*** Warning: This library needs some functionality provided by -lpq.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module rlm_sql_postgresql.  Therefore, libtool will create
*** a static module, that should work as long as 
(cd .libs && rm -f rlm_sql_postgresql.la && ln -s ../rlm_sql_postgresql.la rlm_sql_postgresql.la)
gmake[10]: Leaving directory `/usr/pkgsrc/net/freeradius/work/freeradius-1.0.1/src/modules/rlm_sql/drivers/rlm_sql_postgresql'
Making dynamic in rlm_sql_oracle...
...
...
>How-To-Repeat:
echo "PKG_OPTIONS.freeradius=postgresql74" >> /etc/mk.conf

cd /usr/pkgsrc/net/freeradius
make install

>Fix: