Re: kannel developer env.
Rony Ron <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi thank you, i saw your message only today; i just deleted all the code and pasted them one by one; and now it's working (in linux)!!! but in cygwin it's still not working and please find below the results of the make command. for dir in gw gw/smsc gwlib test utils wmlscript checks wap radius; do \ gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -MM $dir/*.c | sed "s:^[^ ]:$dir/&:"; done > .depend gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_alog.o -c gw/bb_alog.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_boxc.o -c gw/bb_boxc.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_http.o -c gw/bb_http.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_smscconn.o -c gw/bb_smscconn.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_store.o -c gw/bb_store.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_udp.o -c gw/bb_udp.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bearerbox.o -c gw/bearerbox.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr.o -c gw/dlr.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr_mem.o -c gw/dlr_mem.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr_mysql.o -c gw/dlr_mysql.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr_oracle.o -c gw/dlr_oracle.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr_pgsql.o -c gw/dlr_pgsql.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/dlr_sdb.o -c gw/dlr_sdb.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/heartbeat.o -c gw/heartbeat.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/html.o -c gw/html.c gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/jumtoobox.o -c gw/jumtoobox.c gw/jumtoobox.c:119: error: `MAX_SMS_OCTETS' undeclared here (not in a function) // it's declared and the .h file is included but it always fails here !!!! gw/jumtoobox.c:127: error: parse error before '*' token gw/jumtoobox.c:127: warning: data definition has no type or storage class gw/jumtoobox.c:128: error: parse error before '*' token gw/jumtoobox.c:128: warning: data definition has no type or storage class gw/jumtoobox.c: In function `init_jumtoobox': gw/jumtoobox.c:289: warning: assignment makes pointer from integer without a cast gw/jumtoobox.c:302: warning: assignment makes pointer from integer without a cast gw/jumtoobox.c:355: error: `immediate_sendsms_reply' undeclared (first use in this function) gw/jumtoobox.c:355: error: (Each undeclared identifier is reported only once gw/jumtoobox.c:355: error: for each function it appears in.) gw/jumtoobox.c:385: error: `sendsms_thread' undeclared (first use in this function) gw/jumtoobox.c:392: error: `max_pending_requests' undeclared (first use in this function) make: *** [gw/jumtoobox.o] Error 1 BR, >> >> Nikos Balkanas a e'crit : >>> Sounds like standard C issue. I have tried many times with no problems: >>> >>> #include "smpp.h" >>> >>> This should work with the Makefiles in the exsiting directories. Now >>> if you want to create a new directory and Makefile, don't forget to >>> put "-I." (I as in Include) in the cflags. >>> >>> If you post your make output, maybe we can help more. >>> >>> BR, >>> Nikos >>> ----- Original Message ----- From: "Rony Ron" <[email protected]> >>> To: <[email protected]> >>> Sent: Thursday, December 25, 2008 8:09 PM >>> Subject: kannel developer env. >>> >>> >>>> hello all, >>>> >>>> i want to develop a module (smpp) for kannel, >>>> but i have never developed in a gnu environment. >>>> >>>> I have added a .c file and included a .h file in the .c file >>>> but when i compile it the .h in not found (it's in the same folder >>>> as the .c file). >>>> >>>> I know it's a matter of aclocal, autoconf ... but i don't know how >>>> to use it >>>> anyone can help me on that? a tutorial or a quick guide ... >>>> oriented to kannel. >>>> >>>> best regards, >>>> >>>> >>>> >>>> >>> >>> > >