Alan DeKok wrote:

"Sancho2k.net Lists" <[EMAIL PROTECTED]> wrote:

Commenting this out causes the next module to not be found. I see that ALL of the defined modules I have are not found. Am I not supposed to have a .so file for every module?


  Yes.  If you don't, go back and read the output of "make", and then
the output of "make install"

The only apparent problems to me are the occurances of the following warnings:


checking gethostbyaddr_r() syntax... configure: warning: ****** BSD Style gethostbyaddr might NOT be thread-safe! ******
BSD-style
checking gethostbyname_r() syntax... configure: warning: ****** BSD Style gethostbyname might NOT be thread-safe! ******
BSD-style


In the output of 'make' I have:

......................................................................
Making static dynamic in rlm_mschap...
gmake[5]: Entering directory `/home/sancho/src/freeradius-0.9.2/src/modules/rlm_mschap'
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c rlm_mschap.c -o rlm_msch
ap.o
/home/sancho/src/freeradius-0.9.2/libtool --mode=link ld \
-module -static -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include rlm_mschap.o -o
rlm_mschap.a
mkdir .libs
ar cru rlm_mschap.a rlm_mschap.o
ranlib rlm_mschap.a
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c smbencrypt.c -o smbencry
pt.o
gcc -I../../include -o smbencrypt smbencrypt.o ../../lib/libradius.a
/home/sancho/src/freeradius-0.9.2/libtool --mode=compile gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOUR
CE -DNDEBUG -I../../include -c rlm_mschap.c
rm -f .libs/rlm_mschap.lo
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c rlm_mschap.c -fPIC -DPIC -
o .libs/rlm_mschap.lo
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c rlm_mschap.c -o rlm_mschap.
o >/dev/null 2>&1
mv -f .libs/rlm_mschap.lo rlm_mschap.lo
/home/sancho/src/freeradius-0.9.2/libtool --mode=link gcc -release 0.9.2 \
-module -export-dynamic -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../../include \
-o rlm_mschap.la -rpath /usr/local/freeradius-0.9.2/lib rlm_mschap.lo -lresolv -lpthread
rm -fr .libs/rlm_mschap.la .libs/rlm_mschap.* .libs/rlm_mschap-0.9.2.*


*** Warning: This library needs some functionality provided by -lresolv.
*** 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_mschap. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
ar cru .libs/rlm_mschap.a rlm_mschap.o
ranlib .libs/rlm_mschap.a
creating rlm_mschap.la
(cd .libs && rm -f rlm_mschap.la && ln -s ../rlm_mschap.la rlm_mschap.la)
gmake[5]: Leaving directory `/home/sancho/src/freeradius-0.9.2/src/modules/rlm_mschap'
......................................................................


And related output from 'make install':

......................................................................
Making install in rlm_chap...
gmake[5]: Entering directory `/home/sancho/src/freeradius-0.9.2/src/modules/rlm_chap'
if [ "xrlm_chap" != "x" ]; then \
/home/sancho/src/freeradius-0.9.2/libtool --mode=install /home/sancho/src/freeradius-0.9.2/install-sh -c -c \
rlm_chap.la /usr/local/freeradius-0.9.2/lib/rlm_chap.la; \
rm -f /usr/local/freeradius-0.9.2/lib/rlm_chap-0.9.2.la; \
ln -s rlm_chap.la /usr/local/freeradius-0.9.2/lib/rlm_chap-0.9.2.la; \
fi
/home/sancho/src/freeradius-0.9.2/install-sh -c -c .libs/rlm_chap.lai /usr/local/freeradius-0.9.2/lib/rlm_chap.la
/home/sancho/src/freeradius-0.9.2/install-sh -c -c .libs/rlm_chap.a /usr/local/freeradius-0.9.2/lib/rlm_chap.a
ranlib -t /usr/local/freeradius-0.9.2/lib/rlm_chap.a
chmod 644 /usr/local/freeradius-0.9.2/lib/rlm_chap.a
PATH="$PATH:/sbin" ldconfig -m /usr/local/freeradius-0.9.2/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/freeradius-0.9.2/lib


If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-Wl,-rpath,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
gmake[5]: Leaving directory `/home/sancho/src/freeradius-0.9.2/src/modules/rlm_chap'
......................................................................


I won't pretend to understand what any of this indicates as an error, but I have looked for information in the list archives and found some threads mentioning the inability to compile correctly on OpenBSD 3.3, but the problems related to inet_aton missing from lresolv, or something. My configure output shows: 'checking for inet_aton in -lresolv... yes'. Also suggested was to configure freeradius with "--enable-static", which I have done and returns the same issues. I have tried this on freeradius-0.9.2 and freeradius-snapshot-20031116. The OpenBSD misc@ list archives don't have information on this either.

I am running OpenBSD 3.3-stable from Nov 9 2003.

Any ideas?

DS


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to