gnokii-users
[Top][All Lists]
Advanced

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

Re: Problem compiling smsd fixed.


From: Pawel Kot
Subject: Re: Problem compiling smsd fixed.
Date: Sat, 13 Apr 2002 16:29:14 +0200 (CEST)

On Sat, 13 Apr 2002, Dhillon Andrew Kannabhiran wrote:

> I was having some trouble compiling the libmysql.so in smsd ... kept getting
> the following errors:
>
> ---snip---
>
> address@hidden smsd]# make libmysql.so
> gcc -shared -o libmysql.so `glib-config --cflags` -I../include \
>         -I/usr/local/include/mysql mysql.c
> `glib-config --libs` -L/usr/local/lib/mysql -lmysqlclient
> mysql.c: In function `DB_Look':
> mysql.c:157: `GSM_MAX_DESTINATION_LENGTH' undeclared (first use in this
> function)
> mysql.c:157: (Each undeclared identifier is reported only once
> mysql.c:157: for each function it appears in.)
> make: *** [libmysql.so] Error 1
> address@hidden smsd]#
>
> ---snip---
>
> The fix is to add in the following to include/gsm-common.h
> #define GSM_MAX_DESTINATION_LENGTH (40) and then edit mysql.c in the smsd
> directory and do an #include "../include/gsm-common.h"; That fixes that
> small compile problem but I'm still having smsd complain about not being
> able to find libmysql.so even though it's in the right place! Any one else
> having this problem? It's been giving me a headache the whole day!!! Oh yes,
> the above fix is also needed to get rid of the same problem with make
> libpq.so...

This is wrong fix. GSM_MAX_DESTINATION_LENGTH was intentionally removed
and there's no sense to reintroduce it. It was replaced by
MAX_BCD_STRING_LENGTH so you should just replace it.

pkot
-- 
mailto:address@hidden :: mailto:address@hidden
http://kt.linuxnews.pl/ :: Kernel Traffic po polsku




reply via email to

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