FreeBSD 2.0.3 port closefrom library?
Chris
cjl at viptalk.net
Sat Apr 5 09:11:23 CEST 2008
Thanks. I've been having a pretty tough time getting 2.0.3 freebsd
port installed with pgsql. I figured out that the closefrom issue was
due to building against heimdal, so I disabled that since it's not
immediately necessary. Now I get this during configure:
===> freeradius-2.0.3 depends on shared library: pq.5 - found
...
configure: WARNING: silently not building rlm_sql_postgresql.
configure: WARNING: FAILURE: rlm_sql_postgresql requires: libpq.
After that everything builds fine, but, of course, no postgresql.
This is using the ports installed postgresql-server 8.3.1.
Everything's in /usr/local/lib.
I'm not sure if it's complaining about a library or include file not
being found. I've tried adding
--with-rlm-sql-postgresql-lib-dir=/usr/local/lib and --with-rlm-sql-
postgresql-include-dir=/usr/local/include/postgresql to the port
Makefile but I can't get it to do anything but the above....
On Apr 4, 2008, at 11:44 PM, Alan DeKok wrote:
> Chris wrote:
>> When trying to compile freebsd port of 2.0.3 on 6.3 with the
>> postgresql83 library (also from ports), I get the following:
>>
>> .libs/exec.o(.text+0x536): In function `radius_exec_program':
>> : undefined reference to `closefrom'
> ...
>> I'm not familiar with "closefrom" Which library needs to be
>> included?
>
> It should be in libc. The configure script checks for it, and uses
> it
> only if it's available. If it's not available, then a home-grown
> one in
> src/lib is used.
>
> You should be able to fix this by editing src/include/autoconf.h.
> Look for CLOSEFROM, and delete that line. Then, rebuild.
>
> Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list