gnokii-users
[Top][All Lists]
Advanced

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

Re: SMSD Compilation error.


From: Winston Ng
Subject: Re: SMSD Compilation error.
Date: 03 Mar 2003 17:54:11 -0800

Thanks!! An older version installed from RPM was hanging around,
removing it fixed the smsd "make" errors I got.

HOWEVER... "make libmysql.so" generates another list of errors. Seems
that it doesn't like the "API" word in the *.h files located in
gnokii/include directory.


--- SNIPPET OF ERRORS ---

make libmysql.so
gcc -s -O2 -shared -o libmysql.so `glib-config --cflags` -I../include \
        -I/usr/include/mysql mysql.c `glib-config --libs`
-L/usr/lib/mysql -lmysqlclient
In file included from ../include/gnokii.h:42,
                 from smsd.h:34,
                 from mysql.c:36:
../include/gnokii/virtmodem.h:44: syntax error before "int"
../include/gnokii/virtmodem.h:48: syntax error before "void"
../include/gnokii/virtmodem.h:49: syntax error before "void"
In file included from smsd.h:34,
                 from mysql.c:36:
../include/gnokii.h:44: syntax error before "struct"



--- SNIPPET FROM gnokii.h ---

#ifndef _gnokii_gsm_api_h
#define _gnokii_gsm_api_h

#include "gnokii/sms.h"
#include "gnokii/call.h"
#include "gnokii/common.h"
#include "gnokii/data.h"
#include "gnokii/networks.h"
#include "gnokii/statemachine.h"
#include "gnokii/virtmodem.h"

API struct gn_cfg_header *gn_cfg_info;

/* SMS */
API gn_error gn_sms_send(gn_data *data, struct gn_statemachine *state);
API gn_error gn_sms_save(gn_data *data, struct gn_statemachine *state);
API gn_error gn_sms_get(gn_data *data, struct gn_statemachine *state);

----


On Mon, 2003-03-03 at 16:34, BORBELY Zoltan wrote:
> Hi,
> 
> On Mon, Mar 03, 2003 at 04:14:10PM -0800, Winston Ng wrote:
> > Yes, I *really* did "make install" in gnokii dir before doing a "make"
> > in smsd directory :)
> 
> Please check the /usr/lib/ directory too. If you find a libgnokii.so
> there remove it and try it again! (I see you installed the current
> version under /usr/local/)
> 
> > I'm not exactly familiar with building c programs, but are the
> > "undefined reference" errors a result of the build process not finding
> > certain files?
> 
> The linker search for libgnokii.so in the standard directories first.
> If it find an older version it will try to link with that version and
> you will get a lot of similar linker errors.
> 
> Bye,
> Bozo
> 
> 
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gnokii-users






reply via email to

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