On Jul 15, 2013, at 6:12 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:


On 15 Jul 2013, at 22:23, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:


On 15 Jul 2013, at 21:21, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:


On 15 Jul 2013, at 20:59, Alan DeKok <aland@deployingradius.com> wrote:

Aaron Hurt wrote:
Just did this myself, it looks like HAVE_CRYPT isn't being properly
defined by the configure script on FreeBSD and missing.c is trying to
emulate it which causes a conflict with the FreeBSD base definition.  I
was able to get things to compile on a 9.1-RELEASE-p3 amd64 box by
exporting CFLAGS="-I/usr/local/include" and
LDFLAGS="-L/usr/local/include" … this got everything to build but there
are still some linking errors when it gets to the proto_dhcp module.
I'll dig a bit more into this later today.

Verify this is with HEAD please. I did fix an issue yesterday evening with the configure scripts not exiting if they found the header in the normal search path. Teaches me to delete random " " values with no comments as to what they do...

Nope present in HEAD too, I can produce it.

Pushed fixes.

Arran Cudbard-Bell <a.cudbardb@freeradius.org>
FreeRADIUS Development Team

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

It's getting much further without setting any special environment variables but it now stops when trying to link rlm_idn complaining it cannot file -lidn when it is intact installed /usr/local/lib

-rw-r--r--  1 root  wheel  249804 Jul 16 11:14 /usr/local/lib/libidn.a
-rwxr-xr-x  1 root  wheel    1012 Jul 16 11:14 /usr/local/lib/libidn.la
lrwxr-xr-x  1 root  wheel      12 Jul 16 11:14 /usr/local/lib/libidn.so -> libidn.so.17
-rwxr-xr-x  1 root  wheel  217566 Jul 16 11:14 /usr/local/lib/libidn.so.17

Output from ./configure specifying paths for rlm_idn …

=== configuring in src/modules/rlm_idn (/usr/local/src/freeradius-server/src/modules/rlm_idn)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  '--with-rlm-idn-libraries=/usr/local/lib' '--with-rlm-idn-includes=/usr/local/include' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for idna_to_ascii_8z in -lidn... no
checking for idna_to_ascii_8z in -lidn in /usr/local/lib... yes
checking for idna.h... no
checking for idna.h in /usr/local/include... yes
configure: creating ./config.status
config.status: creating all.mk

The build fails here:

CC src/modules/rlm_idn/rlm_idn.c
/usr/bin/ld: cannot find -lidn
gmake: *** [build/lib/local/rlm_idn.la] Error 1

I'll do some more digging and see if I can resolve this.

-- Aaron