build on PPC64 fails

Alexander Voropay alec at artcoms.ru
Fri Jun 3 10:10:03 CEST 2005


"Alexander Voropay" <alec at artcoms.ru> wrote:

> It creates *wrong* Makefile :
> 
> ==== src/modules/rlm_sql/drivers/rlm_sql_mysql/Makefile ======
> = -I/usr/include/mysql -g -pipe -m64 -fsigned-char -mminimal-toc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> RLM_SQL_LIBS   = -L/usr/lib64/mysql -lmysqlclient -lcrypt -lnsl -lm -lz
> ========================================
> 
> Note "-m64" and "-L/usr/lib64/mysql" flags.
> 
> It works OK if delete "-m64" and replace "/usr/lib64" with "/usr/lib"

 I've found a source of this problem.

 On the RHAS PPC64, the MySQL is a 64-bit application and returns this options
on request :

$ mysql_config --cflags
-I/usr/include/mysql -g -pipe -m64 -fsigned-char -mminimal-toc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

$ mysql_config --libs
-L/usr/lib64/mysql -lmysqlclient -lcrypt -lnsl -lm -lz


 FreeRADIUS's  ./configure  script shouldn't trust so much to the `mysql_config` data...


--
-=AV=-




More information about the Freeradius-Devel mailing list