Problem compiling on OSX 10.5

Paul Bartell paul.bartell at gmail.com
Mon Mar 9 22:59:00 CET 2009


I have two problems:

One is with compiling in mysql support. Despite using the following
./configure line ./configure --prefix=/usr/local/freeradius
--with-mysql-include-dir=/usr/local/mysql-5.1.30-osx10.5-x86/include/
--with-mysql-lib-dir=/usr/local/mysql-5.1.30-osx10.5-x86/lib/

it still says

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 for SQLConnect in -liodbc... yes
checking for isql.h... yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in ./drivers/rlm_sql_mysql
(/Users/admin/radiusd/src/modules/rlm_sql/./drivers/rlm_sql_mysql)
configure: running /bin/sh ./configure
'--prefix=/usr/local/freeradius'
'--with-mysql-include-dir=/usr/local/mysql-5.1.30-osx10.5-x86/include/'
'--with-mysql-lib-dir=/usr/local/mysql-5.1.30-osx10.5-x86/lib/'
'--enable-ltdl-install=no' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...

Im am using the version from cvs. Am I not fetching the mysql module
or something (which doesnt seem likely as the latest stable gives the
same error)?


It appears that freeradius is trying to compile a universal binary. On
a PPC machine I don't have this problem. The intel machine im
installing on appears to have some ppc libraries missing. Is there any
way to prevent this cross compiling or does anyone know a fast fix.
Ive seen numerous posts on this issue with the same errors, and all of
them seem unanswered.

Im using the following to configure:

./configure --prefix=/usr/local/freeradius
--with-mysql-include-dir=/usr/local/mysql-5.1.30-osx10.5-x86/include

when running make I get build errors. I cant get to the machine at the
moment, or else i would give the exact errors, but it has something to
do with rlm_perl.

-- 
Random quote of the week/month/whenever i get to updating it:
"Opportunity knocked. My doorman threw him out." - Adrienne Gusoff

"At school you don't get parole, good behavior only brings a longer
sentence." - The History Boys



More information about the Freeradius-Users mailing list