[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nss-mysql-users] Problem compiling nss-mysql on Xserve + Leopard
From: |
Stefano Grioni |
Subject: |
[Nss-mysql-users] Problem compiling nss-mysql on Xserve + Leopard |
Date: |
Sat, 08 Dec 2007 13:16:30 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.6 (X11/20071009) |
Hello,
I'm trying to install NSS-MYSQL on my Apple Intel Xserve running Mac OSX
Leopard.
I compiled it without having problems ( ./configure
--with-mysql-include=/Volumes/Data/usr/include/mysql
--with-mysql-lib=/Volumes/Data/usr/lib/mysql) but when I try to make it
I get a lot of errors :
$ make
Making all in tests
make[1]: Nothing to be done for `all'.
Making all in src
make all-am
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I. -DSYSCONFDIR=\"/etc\" -D_REENTRANT
-I/Volumes/Data/usr/include/mysql -W -Wall -Wstrict-prototypes
-Wpointer-arith -Wundef -g -O2 -MT parser.lo -MD -MP -MF
".deps/parser.Tpo" -c -o parser.lo parser.c; \
then mv -f ".deps/parser.Tpo" ".deps/parser.Plo"; else rm -f
".deps/parser.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYSCONFDIR=\"/etc\" -D_REENTRANT
-I/Volumes/Data/usr/include/mysql -W -Wall -Wstrict-prototypes
-Wpointer-arith -Wundef -g -O2 -MT parser.lo -MD -MP -MF
.deps/parser.Tpo -c parser.c -fno-common -DPIC -o .libs/parser.o
In file included from /Volumes/Data/usr/include/mysql/mysql.h:57,
from nss-mysql.h:9,
from parser.c:35:
/Volumes/Data/usr/include/mysql/mysql_com.h:262:5: warning:
"MYSQL_VERSION_ID" is not defined
In file included from parser.c:35:
nss-mysql.h:48:17: error: nss.h: No such file or directory
In file included from parser.h:13,
from parser.c:36:
./nss-shadow.h:12:20: error: shadow.h: No such file or directory
In file included from parser.h:13,
from parser.c:36:
./nss-shadow.h:39: warning: 'struct spwd' declared inside parameter list
./nss-shadow.h:39: warning: its scope is only this definition or
declaration, which is probably not what you want
make[2]: *** [parser.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
And if I try "make check" first I get :
$ make check
Making check in tests
make torture
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -Wall -Wstrict-prototypes
-Wpointer-arith -Werror -I/Volumes/Data/usr/include/mysql -g -O2 -MT
torture.o -MD -MP -MF ".deps/torture.Tpo" -c -o torture.o torture.c; \
then mv -f ".deps/torture.Tpo" ".deps/torture.Po"; else rm -f
".deps/torture.Tpo"; exit 1; fi
torture.c:27:20: error: shadow.h: No such file or directory
cc1: warnings being treated as errors
torture.c: In function 'sp':
torture.c:68: warning: implicit declaration of function 'setspent'
torture.c:69: warning: implicit declaration of function 'getspent'
torture.c:69: warning: assignment makes pointer from integer without a cast
torture.c:75: error: dereferencing pointer to incomplete type
torture.c:82: warning: implicit declaration of function 'endspent'
torture.c: In function 'sp_test2':
torture.c:169: warning: implicit declaration of function 'getspnam'
make[2]: *** [torture.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
Does anyone understand what's the problem?
Thanks a lot
P.S: I'm using version 1.0
- [Nss-mysql-users] Problem compiling nss-mysql on Xserve + Leopard,
Stefano Grioni <=