[GRASS5] configure mysql

Radim Blazek blazek at itc.it
Thu Jan 16 03:48:58 EST 2003


On Thursday 16 January 2003 03:04 am, Glynn Clements wrote:
> Examine config.log to find out exactly why the check failed.
>
> The most common reason for a library check failing is that the library
> (in this case, libmysqlclient) requires symbols from some other
> library, but that library isn't being included in the link command.

----------------------------------------------------------------------
configure:9384: gcc -E  
-I/amd/ssi0/ssi/blazek/janacek0/mysql/mysql-3.23.54a-pc-linux-i686/  
conftest.c >/dev/null 2>conftest.out
configure:9422: checking for location of MySQL library
configure:9447: checking for mysql_query in -lmysqlclient
configure:9464: gcc -o conftest -g -O2    
-L/amd/ssi0/ssi/blazek/janacek0/mysql/mysql-3.23.54a-pc-linux-i686/lib/  
conftest.c -lmysqlclient   1>&5
/amd/ssi0/ssi/blazek/janacek0/mysql/mysql-3.23.54a-pc-linux-i686/lib//libmysqlclient.a(my_compress.o): 
In function `my_compress_alloc':
my_compress.o(.text+0xb4): undefined reference to `compress'
/amd/ssi0/ssi/blazek/janacek0/mysql/mysql-3.23.54a-pc-linux-i686/lib//libmysqlclient.a(my_compress.o): 
In function `my_uncompress':
my_compress.o(.text+0x12a): undefined reference to `uncompress'
collect2: ld returned 1 exit status
configure: failed program was:
#line 9453 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_query();
 
int main() {
mysql_query()
; return 0; }
----------------------------------------------------------------------

Do I need -lz for linker? But where shoud be added in configure.in, currently
LOC_CHECK_LIBS(mysqlclient,mysql_query,MySQL,$MYSQLLIBPATH,MYSQLLIB,,,)

Radim




More information about the grass-dev mailing list