build on PPC64 fails

Alexander Voropay alec at artcoms.ru
Mon May 30 17:09:44 CEST 2005


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

> I can't build free-radius CVS on a PPC64 RHAS 4.0 .

> As far as I understnad situation, the RHAS PPC64 is a bi-standart
> system (32- and 64-bit)

 This fearule is caled "multilib" and exists on AMD64, PPC64, SPARC64
MIPS64 e.t.c.

 Only rlm_mysql is affected by this bug. Another modules are OK.

 I've run ./configure --target=ppc :
...
configure: configuring in ./drivers/rlm_sql_mysql
configure: running /bin/sh './configure' --prefix=/usr/local  '--prefix=/usr/local' '--target=ppc' 'target_alias=ppc' 
'--enable-ltdl-install=no' '--cache-file=/dev/null' '--srcdir=.' 
'CFLAGS=-g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5' 'CPPFLAGS=' 'LDFLAGS=' --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...
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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for mysql_config... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


 It creates *wrong* Makefile :

==== src/modules/rlm_sql/drivers/rlm_sql_mysql/Makefile ======
include ../../../../../Make.inc

TARGET         = rlm_sql_mysql
SRCS           = sql_mysql.c
RLM_SQL_CFLAGS 
= -I/usr/include/mysql -g -pipe -m64 -fsigned-char -mminimal-toc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
$(INCLTDL)
RLM_SQL_LIBS   = -L/usr/lib64/mysql -lmysqlclient -lcrypt -lnsl -lm -lz

include ../rules.mak
========================================

 Note "-m64" and "-L/usr/lib64/mysql" flags.

 It works OK if delete "-m64" and replace "/usr/lib64" with "/usr/lib"

--
-=AV=- 




More information about the Freeradius-Devel mailing list