|
From: | Papa San |
Subject: | smsd compilation using mysql (dependecies?) |
Date: | Thu, 26 Jun 2003 10:10:37 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612 |
Hi Everbody, After succesfully compiling gnokii-0.5.2, (I can send sms's), I try to compile smsd. That works. Something goes wrong when I try to compile libmysql.so . Unfortunately I don't know what. Can anybody give me a clue? I use mysql as db so I altered the Makefile like this: ### DB Modules # Change this according to your system # FIXME: detect it in configure # PostgreSQL support # libpq.so: smsd.h pq.c # gcc -s -shared -o libpq.so $(CFLAGS) -I../include \ # -I/usr/include/pgsql pq.c `glib-config --libs` -lpq # MySQL support libmysql.so: smsd.h mysql.c gcc -s -shared -o libmysql.so $(CFLAGS) -I../include \ $(shell mysql_config --cflags) mysql.c `glib-config --libs` $(shell mysql_config --libs) # File support # libfile.so: smsd.h file.c # gcc -s -shared -o libfile.so $(CFLAGS) -I../include \ # file.c `glib-config --libs` ### End of DB Modules Any docs on dependencies? Best regards, Papa address@hidden smsd]# make gcc -g -O2 -I../include -DMODULES_DIR=\"/usr/local/lib/smsd\" -D_REENTRANT `glib-config --cflags` -INONE -c smsd.c -o smsd.o gcc -g -O2 -I../include -DMODULES_DIR=\"/usr/local/lib/smsd\" -D_REENTRANT `glib-config --cflags` -INONE -c lowlevel.c -o lowlevel.o gcc smsd.o lowlevel.o -lpthread `glib-config --libs` -s -rdynamic -L../common -lgnokii -ldl -o smsd address@hidden smsd]# make libmysql.so gcc -s -shared -o libmysql.so -g -O2 -I../include -DMODULES_DIR=\"/usr/local/lib/smsd\" -D_REENTRANT `glib-config --cflags` -I../include \ -I'/usr/include/mysql' mysql.c `glib-config --libs` -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv /usr/bin/ld: cannot open -lz: No such file or directory collect2: ld returned 1 exit status make: *** [libmysql.so] Error 1 address@hidden smsd]# |
[Prev in Thread] | Current Thread | [Next in Thread] |