Compiling jit fails, and seems to be a result of the following error: g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/wp_client.o jit/wp_client.cpp jit/wp_client.cpp: In member function `virtual void WPclient::SignalDisconnected(ICQ2000::DisconnectedEvent*)': jit/wp_client.cpp:149: error: `terror' has no non-static data member named ` terror_struct::code' jit/wp_client.cpp:149: error: too many initializers for `terror' make: *** [jit/wp_client.o] Error 1 The full emerge log is: ---------------------- master jit # emerge jit Calculating dependencies ...done! >>> emerge (1 of 1) net-im/jit-1.1.6-r1 to / >>> md5 src_uri ;-) jit-1.1.6.tar.gz >>> Unpacking source... >>> Unpacking jit-1.1.6.tar.gz to /var/tmp/portage/jit-1.1.6-r1/work >>> Source unpacked. Setting Build Parameters... Done. Generating JIT Settings Script... Done. (cd jit && make) make[1]: Entering directory `/var/tmp/portage/jit-1.1.6-r1/work/jit-1.1.6/jit' gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/icqtransport.o jit/icqtransport.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/unknown.o jit/unknown.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/iq.o jit/iq.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/session.o jit/session.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/message.o jit/message.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/presence.o jit/presence.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/contact.o jit/contact.c g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/server.o jit/server.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o jit/wp_client.o jit/wp_client.cpp gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o utils/charset.o utils/charset.c gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o utils/xdata.o utils/xdata.c jit/server.cpp: In function `void SendSearchUsersRequest(session_st*, char*, char*, char*, char*, char*, int, int, int, int)': jit/server.cpp:166: warning: `ICQ2000::Sex sex' might be used uninitialized in this function gcc -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o utils/utils.o utils/utils.c g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/Capabilities.o src/Capabilities.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/Client.o src/Client.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/Contact.o src/Contact.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/ContactList.o src/ContactList.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/DirectClient.o src/DirectClient.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/ICBMCookie.o src/ICBMCookie.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/ICQ.o src/ICQ.cpp src/DirectClient.cpp: In member function `void ICQ2000::DirectClient::Parse()': src/DirectClient.cpp:154: warning: comparison is always false due to limited range of data type g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/MessageHandler.o src/MessageHandler.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-BOS.o src/SNAC-BOS.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-BUD.o src/SNAC-BUD.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-GEN.o src/SNAC-GEN.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-LOC.o src/SNAC-LOC.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-MSG.o src/SNAC-MSG.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-SBL.o src/SNAC-SBL.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-SRV.o src/SNAC-SRV.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-UIN.o src/SNAC-UIN.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC-base.o src/SNAC-base.cpp g++ -O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -g -Wall -I. -I../jabberd -I/usr/include -DWPJABBER -I/usr/include -fPIC -c -o src/SNAC.o src/SNAC.cpp jit/wp_client.cpp: In member function `virtual void WPclient::SignalDisconnected(ICQ2000::DisconnectedEvent*)': jit/wp_client.cpp:149: error: `terror' has no non-static data member named ` terror_struct::code' jit/wp_client.cpp:149: error: too many initializers for `terror' make[1]: *** [jit/wp_client.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/jit-1.1.6-r1/work/jit-1.1.6/jit' make: *** [all] Error 2 !!! ERROR: net-im/jit-1.1.6-r1 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! (no error message) master jit # -------------------- And my emerge info: ------------ master jit # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo) ================================================================= System uname: 2.6.3-gentoo i686 Intel(R) Pentium(R) III CPU family 1133MHz Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.ccccom.com http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm avi berkdb crypt encode foomaticdb gd gdbm gdcscope gif gpm imap imlib innodb jpeg libg++ libwww mad maildir mbox mikmod mmx motif mpeg mysql ncurses offensive oggvorbis oss pam pdflib perl png postgres python quicktime readline sasl sdl slang snmp spell ssl tcpd tiff truetype virus-scan x86 xml xml2 xmms xv zlib" -------------- Reproducible: Always Steps to Reproduce: 1. 2. 3.
There appear to be fixes for this at: http://www.jabberstudio.org/projects/jit/bugs/view.php?id=2460 I'm attaching a patch for the source that lets it compile and install properly.
Created attachment 26034 [details, diff] Patch for jit 1.1.6-r1 Allows jit 1.1.6-r1 to compile properly via http://www.jabberstudio.org/projects/jit/bugs/view.php?id=2460
-r2 is now in portage (marked ~x86) please test and see if it works ok and report so that this bug can be closed.
Compiles fine!
Created attachment 26929 [details, diff] Better patch Previous attachment isn't good enough. It prints just one "\n" on the end of headers and "\015\012" is better than just "\n". I think my patch is little better.
I second the compile failure in -r1, and a functioning fix in -r2. Please move to 'x86' ASAP.
Moved to x86.
PATCH INCLUDED IN -R2 IS INCORRECT! Please include `Better patch' or at least this: diff -ru jit-1.1.6.orig/jabberd/mio_xml.c jit-1.1.6/jabberd/mio_xml.c --- jit-1.1.6.orig/jabberd/mio_xml.c 2004-02-21 00:35:57.206273528 -0800 +++ jit-1.1.6/jabberd/mio_xml.c 2004-02-21 00:33:17.000000000 -0800 @@ -142,14 +142,7 @@ nul += 4; bufsz = bufsz - (nul - buf); buf = nul; - mio_write(m,NULL,"HTTP/1.0 200 Ok -Server: jabber/xmlstream-hack-0.1 -Expires: Fri, 10 Oct 1997 10:10:10 GMT -Pragma: no-cache -Cache-control: private -Connection: close - -",-1); + mio_write(m,NULL,"HTTP/1.0 200 Ok\nServer: jabber/xmlstream-hack-0.1\nExpires: Fri, 10 Oct 1997 10:10:10 GMT\nPragma: no-cache\nCache-control: private\nConnection: close\n\n",-1); m->type = type_NORMAL; } Only in jit-1.1.6/jit/jit: .wp_client.cpp.swp diff -ru jit-1.1.6.orig/jit/jit/wp_client.cpp jit-1.1.6/jit/jit/wp_client.cpp --- jit-1.1.6.orig/jit/jit/wp_client.cpp 2004-02-21 00:36:00.867716904 -0800 +++ jit-1.1.6/jit/jit/wp_client.cpp 2004-02-21 00:31:05.000000000 -0800 @@ -146,7 +146,8 @@ } void WPclient::SignalDisconnected(DisconnectedEvent *ev) { - terror e = (terror){0,""}; + terror e; + e = (terror){0,""}; switch(ev->getReason()){ case DisconnectedEvent::FAILED_BADUSERNAME: