issue with string.h and openssl
From: "Peter Speybrouck" <peter.speybrouck@xxxxxxxxx>
Date: Sat, 12 Aug 2006 16:30:06 +0200
Hi,

I'm compiling gloox-0.8.1-sic on SkyOS, using gcc 4.1.1.

When I leave out openssl support, compilation is successfull.
However, when I try to include openssl support, I get an error in a #if
defined (USE_OPENSSL) section:

/bin/make  all-recursive
make[1]: Entering directory `/boot/programs/factory/sources/gloox-0.8.1-sic
/'
Making all in src
make[2]: Entering directory `/boot/programs/factory/sources/gloox-0.8.1-sic
/src/'
Making all in .
make[3]: Entering directory `/boot/programs/factory/sources/gloox-0.8.1-sic
/src/'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I..  -Wall -pipe -W -Wfloat-equal -Wcast-align -Wsign-compare
-Wpointer-arith -Wswitch -Wunknown-pragmas -Wconversion -Wundef -Wcast-qual
-ansi -I/usr/local/ssl/include  -g -O2 -MT connection.lo -MD -MP -MF
".deps/connection.Tpo" -c -o connection.lo connection.cpp; \
then mv -f ".deps/connection.Tpo" ".deps/connection.Plo"; else rm -f
".deps/connection.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pipe -W -Wfloat-equal -Wcast-align
-Wsign-compare -Wpointer-arith -Wswitch -Wunknown-pragmas -Wconversion
-Wundef -Wcast-qual -ansi -I/usr/local/ssl/include -g -O2 -MT
connection.lo-MD -MP -MF .deps/connection.Tpo -c
connection.cpp  -fPIC -DPIC -o .libs/connection.o
connection.cpp: In member function 'bool gloox::Connection::tlsHandshake()':
connection.cpp:126: error: 'strcasecmp' was not declared in this scope
make[3]: *** [connection.lo] Error 1
make[3]: Leaving directory `/boot/programs/factory/sources/gloox-0.8.1-sic
/src/'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/boot/programs/factory/sources/gloox-0.8.1-sic
/src/'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/boot/programs/factory/sources/gloox-0.8.1-sic/'
make: *** [all] Error 2



Error:
connection.cpp: In member function 'bool gloox::Connection::tlsHandshake()':
connection.cpp:126: error: 'strcasecmp' was not declared in this scope
(this linenumber could be a few off due to trying to fix it)

I checked string.h and strcasecmp is actually there so nothing wrong there I
think.

Do you have any idea if this is a problem in the gloox code or with my
environment?
How can I fix it?

Peter
-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx