nss-mysql-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nss-mysql-users] Problem compiling nss-mysql on Xserve + Leopard


From: Kyrian
Subject: Re: [Nss-mysql-users] Problem compiling nss-mysql on Xserve + Leopard
Date: Sat, 08 Dec 2007 13:49:35 +0000
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

Stefano Grioni wrote:
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 :
I think somehow one of your "--with-mysql-include", "--with-mysql-lib", and the directory you're in when you are running the compile are causing the actual nss-mysql headers not to be found.

I would try making sure you're in the right directory first, maybe try editing the makefile to add '-I', '-L', and '-l' directives to the compile line manually, or failing that, edit the nss-mysql .c files to reference the includes with a full path which might fix it, as long as they are enclosed in quotes rather than angle brackets.

You may find that nss.h and shadow.h includes in those files are surrounded by angle brackets, instead of quotes, and reversing that may fix it. I am uncertain as it's been a long time since I played about with this stuff.

K.

$ 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 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/nss-mysql-users


--
Kev Green, aka Kyrian. E: kyrian@ore.org WWW: http://kyrian.ore.org/
Linux/Security Contractor/LAMP Coder/ISP, via http://www.orenet.co.uk/
                DJ via http://www.hellnoise.co.uk/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]