Problems compiling courier-authlib with mysql support
I am having problems compiling courier-authlib with mysql support... The error I am getting is a linking error on the make. The configure has no problems. I am using the following configure: ./configure --with-authmysql LDFLAGS='-L/usr/lib64/mysql' CFLAGS='-I/usr/include/mysql/' CCFLAGS=' -fPIC' The reason I added the CCFLAGS is because of the error I recived on the make. I have also tried it without the CCFLAGS. The errors I am getting are: .... (up to this point it appears to compile everything correctly)e Compiling authmysqllib.c Linking libauthmysql.la /usr/bin/nm: my_pthread.o: no symbols /usr/bin/nm: my_thr_init.o: no symbols /usr/bin/nm: thr_mutex.o: no symbols /usr/bin/nm: my_port.o: no symbols /usr/bin/nm: strmov.o: no symbols /usr/bin/nm: strnlen.o: no symbols /usr/bin/nm: bcmp.o: no symbols /usr/bin/nm: bmove.o: no symbols /usr/bin/nm: longlong2str.o: no symbols /usr/bin/nm: strtoull.o: no symbols /usr/bin/nm: strtoll.o: no symbols /usr/bin/nm: viossl.o: no symbols /usr/bin/nm: viosslfactories.o: no symbols /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux /bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib64/mysql/libmysqlclient.a(libmysql.o): could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libauthmysql.la] Error 1 make[2]: Leaving directory `/usr/local/source/courier-authlib-0.57' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/source/courier-authlib-0.57' make: *** [all] Error 2 I am stuck on this one -- any help? Thanks Mike
Have a look how our package is build, the source RPM contains the compile command. It compiles fine on our systems, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
participants (2)
-
Andreas Jaeger
-
Mike Silvers