[Top][All Lists]

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

smsd compilation using mysql (dependecies?)

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 compi
le . 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
# smsd.h pq.c
#       gcc -s -shared -o $(CFLAGS) -I../include \
#       -I/usr/include/pgsql pq.c `glib-config --libs` -lpq

# MySQL support smsd.h mysql.c
        gcc -s -shared -o $(CFLAGS) -I../include \
        $(shell mysql_config --cflags) mysql.c `glib-config --libs` $(shell mysql_config --libs)

# File support
# smsd.h file.c
#       gcc -s -shared -o $(CFLAGS) -I../include \
#        file.c `glib-config --libs`

### End of DB Modules

Any docs on dependencies?

Best regards,


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
gcc -s -shared -o -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: *** [] Error 1
address@hidden smsd]#

reply via email to

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