Re: Compilation Warnings

2002-05-05 Thread Stipe Tolj

Aarno Syvänen wrote:
> 
> Bruno David Simões Rodrigues wrote:
> >
> > bruno@laptop:~/work/gateway$ make -s
> > wap/wsp_session.c:437: warning: `REFERER' redefined
> > wap/wsp.h:47: warning: this is the location of the previous definition
> > wap/wsp_session.c:490: warning: `REFERER' redefined
> > wap/wsp_session.c:437: warning: this is the location of the previous
> > definition
> >
> > bruno@laptop:~/work/gateway/wap$ grep OCTSTR wsp.h wsp_session.c
> > wsp.h:  #define OCTSTR(name) Octstr *name;
> > wsp_session.c:  #define OCTSTR(name) p->name = NULL;
> > wsp_session.c:  #define OCTSTR(name) octstr_destroy(p->name);
> > bruno@laptop:~/work/gateway/wap$ grep REFERER wsp.h wsp_session.c
> > wsp.h:  #define REFERER(name) Octstr *name;
> > wsp_session.c:  #define REFERER(name) p->name = NULL;
> > wsp_session.c:  #define REFERER(name) octstr_destroy(p->name);
> >
> > I really don't understand what tha hell is this warning.
> >
> > OCTSTR macro (and others nearby) is defined just like REFERER and gives
> > no warning.
> >
> > Could someone fix this and elucidate us what is this warning ?
> 
> REFERER was not *undefined* at the end of
> wap/wsp_server_session_machine.def.
> So precompiler thougth that there was a redefinition of it.

definitly my mistake here, sorry palls ;)

Could we commit that anyone who sees a solution in the source and
replies to mails indicates if he/she fixed it in cvs, so that no one
else has to check via viewcvs.cgi or similar?!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are






Re: Compilation Warnings

2002-04-30 Thread Aarno Syvänen

Bruno David Simões Rodrigues wrote:
> 
> bruno@laptop:~/work/gateway$ make -s
> wap/wsp_session.c:437: warning: `REFERER' redefined
> wap/wsp.h:47: warning: this is the location of the previous definition
> wap/wsp_session.c:490: warning: `REFERER' redefined
> wap/wsp_session.c:437: warning: this is the location of the previous
> definition
> 
> bruno@laptop:~/work/gateway/wap$ grep OCTSTR wsp.h wsp_session.c
> wsp.h:  #define OCTSTR(name) Octstr *name;
> wsp_session.c:  #define OCTSTR(name) p->name = NULL;
> wsp_session.c:  #define OCTSTR(name) octstr_destroy(p->name);
> bruno@laptop:~/work/gateway/wap$ grep REFERER wsp.h wsp_session.c
> wsp.h:  #define REFERER(name) Octstr *name;
> wsp_session.c:  #define REFERER(name) p->name = NULL;
> wsp_session.c:  #define REFERER(name) octstr_destroy(p->name);
> 
> I really don't understand what tha hell is this warning.
> 
> OCTSTR macro (and others nearby) is defined just like REFERER and gives
> no warning.
> 
> Could someone fix this and elucidate us what is this warning ?

REFERER was not *undefined* at the end of
wap/wsp_server_session_machine.def.
So precompiler thougth that there was a redefinition of it.

Aarno




Compilation Warnings

2002-04-29 Thread Bruno David Simões Rodrigues



bruno@laptop:~/work/gateway$ make -s
wap/wsp_session.c:437: warning: `REFERER' redefined
wap/wsp.h:47: warning: this is the location of the previous definition
wap/wsp_session.c:490: warning: `REFERER' redefined
wap/wsp_session.c:437: warning: this is the location of the previous
definition


bruno@laptop:~/work/gateway/wap$ grep OCTSTR wsp.h wsp_session.c
wsp.h:  #define OCTSTR(name) Octstr *name;
wsp_session.c:  #define OCTSTR(name) p->name = NULL;
wsp_session.c:  #define OCTSTR(name) octstr_destroy(p->name);
bruno@laptop:~/work/gateway/wap$ grep REFERER wsp.h wsp_session.c
wsp.h:  #define REFERER(name) Octstr *name;
wsp_session.c:  #define REFERER(name) p->name = NULL;
wsp_session.c:  #define REFERER(name) octstr_destroy(p->name);


I really don't understand what tha hell is this warning.

OCTSTR macro (and others nearby) is defined just like REFERER and gives
no warning.

Could someone fix this and elucidate us what is this warning ?





Re: new compilation warnings.

2001-12-25 Thread Stipe Tolj

> gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include
> -DBROKEN_PTHREADS=1 -o gwlib/conn.o -c gwlib/conn.c
> gwlib/conn.c: In function `conn_init_ssl':
> gwlib/conn.c:1175: warning: passing arg 1 of `CRYPTO_set_id_callback'
> from incompatible pointer type
> gwlib/conn.c: In function `server_ssl_init':
> gwlib/conn.c:1192: warning: passing arg 1 of `CRYPTO_set_id_callback'
> from incompatible pointer type
> gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include
> -DBROKEN_PTHREADS=1 -o gwlib/counter.o -c gwlib/counter.c
> gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include
> -DBROKEN_PTHREADS=1 -o gwlib/date.o -c gwlib/date.c

these are known and should not have any major impact. 

Jörg, what do you think about fixing this? I was looking at it, but
did not get the pointer type conversion for it, do you have any
suggestion?

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




new compilation warnings.

2001-12-25 Thread Andreas Fink

I suddendly get:

gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include 
-DBROKEN_PTHREADS=1 -o gwlib/conn.o -c gwlib/conn.c
gwlib/conn.c: In function `conn_init_ssl':
gwlib/conn.c:1175: warning: passing arg 1 of `CRYPTO_set_id_callback' 
from incompatible pointer type
gwlib/conn.c: In function `server_ssl_init':
gwlib/conn.c:1192: warning: passing arg 1 of `CRYPTO_set_id_callback' 
from incompatible pointer type
gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include 
-DBROKEN_PTHREADS=1 -o gwlib/counter.o -c gwlib/counter.c
gcc -D_REENTRANT=1 -I. -g -O2 -I/usr/include/libxml -I/usr/include 
-DBROKEN_PTHREADS=1 -o gwlib/date.o -c gwlib/date.c

-- 

Andreas Fink
Fink-Consulting

--
Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland
E-Mail:  [EMAIL PROTECTED]  Homepage: http://www.finkconsulting.com
--
Something urgent? Try http://www.smsrelay.com/  Nickname afink