unable to compile on mac 10.5.2
From: "Hao Chen" <h8chen@xxxxxxxxx>
Date: Tue, 1 Apr 2008 16:25:49 +0200 (CEST)
Hi there,

I'm unable to make gloox on my powerbook G4. I have both gnutls 2.2.2 and
openssl 0.9.8g installed. I did "./configure" first, which ran OK. But when
I try to make, it outputs the following(the last chunk of the output):

 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -pipe -W -Wfloat-equal
-Wcast-align -Wsign-compare -Wpointer-arith -Wswitch -Wunknown-pragmas
-Wconversion -Wundef -Wcast-qual -ansi -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -D_THREAD_SAFE -g -O2 -MT tlsgnutlsclient.lo -MD
-MP -MF .deps/tlsgnutlsclient.Tpo -c tlsgnutlsclient.cpp  -fno-common -DPIC
-o .libs/tlsgnutlsclient.o
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -pipe -W -Wfloat-equal
-Wcast-align -Wsign-compare -Wpointer-arith -Wswitch -Wunknown-pragmas
-Wconversion -Wundef -Wcast-qual -ansi -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -D_THREAD_SAFE -g -O2 -MT tlsgnutlsclient.lo -MD
-MP -MF .deps/tlsgnutlsclient.Tpo -c tlsgnutlsclient.cpp -o
tlsgnutlsclient.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I..  -Wall -pedantic -pipe -W -Wfloat-equal -Wcast-align -Wsign-compare
-Wpointer-arith -Wswitch -Wunknown-pragmas -Wconversion -Wundef -Wcast-qual
-ansi -Wwrite-strings -Wformat-security -Wmissing-format-attribute
-D_THREAD_SAFE   -g -O2 -MT tlsopenssl.lo -MD -MP -MF ".deps/tlsopenssl.Tpo"
-c -o tlsopenssl.lo tlsopenssl.cpp; \
    then mv -f ".deps/tlsopenssl.Tpo" ".deps/tlsopenssl.Plo"; else rm -f
".deps/tlsopenssl.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -pipe -W -Wfloat-equal
-Wcast-align -Wsign-compare -Wpointer-arith -Wswitch -Wunknown-pragmas
-Wconversion -Wundef -Wcast-qual -ansi -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -D_THREAD_SAFE -g -O2 -MT tlsopenssl.lo -MD -MP
-MF .deps/tlsopenssl.Tpo -c tlsopenssl.cpp  -fno-common -DPIC -o
.libs/tlsopenssl.o
{standard input}:7471:non-relocatable subtraction expression, "__Z7toloweri"
minus "L00000000011$pb"
{standard input}:7471:symbol: "__Z7toloweri" can't be undefined in a
subtraction expression
{standard input}:7467:non-relocatable subtraction expression, "__Z7toloweri"
minus "L00000000011$pb"
{standard input}:7467:symbol: "__Z7toloweri" can't be undefined in a
subtraction expression
make[3]: *** [tlsopenssl.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I tried both gloox 0.9.9.5 and 1.0-beta 2, and they have the same error.

Could you please help me on this? Thanks a lot.

Hao