Subject: strange compilation problem on chat/psi
To: None <pkgsrc-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-users
Date: 03/05/2006 14:44:32
I'm going crazy trying to compile chat/psi on one of my machines. On
it, running -current, I get compilation errors; on three others, one at
3.0 and the other two on -current, it compiles just fine. I updated my
system source, rebuilt, and reinstalled; it didn't help. Virtually all
of pkgsrc is up-to-date; I get errors in the same place. I've run
'make distclean' and 'lintpkgsrc -ormp'; no joy. I see nothing suspect
in my mk.conf -- but it wouldn't build. Any suggestions? Here's the
failure:
c++ -c -O2 -I/usr/pkgsrc/chat/psi/work/.buildlink/include
-I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY
-I/usr/pkgsrc/chat/psi/work/.x11-buildlink/include
-I/usr/pkgsrc/chat/psi/work/.buildlink/include/freetype2
-DQ_TRAILING_DIR_SEP -D_REENTRANT -DHAVE_XSS -DHAVE_CONFIG -DXMPP_TEST
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/pkg/qt3/mkspecs/netbsd-g++ -I.
-I../../../../../../pkg/include -I../cutestuff/util
-I../cutestuff/network -Itools/trayicon -Itools/idle
-Itools/systemwatch -Itools/mac_dock -Itools/zip -Itools/dirwatch
-Itools/openpgp -Itools/globalaccel -Itools/advwidget -I../iris/include
-I../iris/xmpp-core -I../iris/xmpp-im -I../iris/jabber
-I../libpsi/iconset -I../libpsi/psiwidgets -I../libpsi/psipng
-I../../../../../../pkg/xorg/include -I.ui/ -Ioptions
-I.moc/ ../iris/xmpp-core/connector.cpp -fPIC -DPIC
-o .obj/.libs/connector.o ../iris/xmpp-core/connector.cpp: In member
function `void XMPP::AdvancedConnector::do_connect
()': ../iris/xmpp-core/connector.cpp:525: error: `SocksClient'
undeclared (first use this
function) ../iris/xmpp-core/connector.cpp:525: error: (Each undeclared
identifier is reported only once for each function it appears
in.) ../iris/xmpp-core/connector.cpp:525: error: `s' undeclared (first
use this function) ../iris/xmpp-core/connector.cpp:525: error: parse
error before `;' token ../iris/xmpp-core/connector.cpp: In member
function `void XMPP::AdvancedConnector::bs_error
(int)': ../iris/xmpp-core/connector.cpp:663: error: parse error before
`::' token ../iris/xmpp-core/connector.cpp:669: error: parse error
before `::' token ../iris/xmpp-core/connector.cpp: At global
scope: ../iris/xmpp-core/connector.cpp:679: error: parse error before
`if' ../iris/xmpp-core/connector.cpp:681: error: syntax error before
`->' token ../iris/xmpp-core/connector.cpp:682: error: ISO C++ forbids
declaration of ` error' with no
type ../iris/xmpp-core/connector.cpp:683: error: parse error before
`return' ../iris/xmpp-core/connector.cpp:697: error: syntax error
before `->' token ../iris/xmpp-core/connector.cpp:698: error: syntax
error before `->' token ../iris/xmpp-core/connector.cpp:699: error: ISO
C++ forbids declaration of ` do_connect' with no
type ../iris/xmpp-core/connector.cpp:700: error: parse error before `}'
token ../iris/xmpp-core/connector.cpp:706: error: syntax error before
`->' token ../iris/xmpp-core/connector.cpp:707: error: ISO C++ forbids
declaration of ` error' with no
type ../iris/xmpp-core/connector.cpp:708: error: parse error before `}'
token gmake[1]: *** [.obj/connector.o] Error 1 gmake[1]: Leaving
directory `/usr/pkgsrc/chat/psi/work/psi-0.10/src'