Bug 117349 - Compile error jid.cpp lines 57 93 129
Summary: Compile error jid.cpp lines 57 93 129
Status: RESOLVED NOT A BUG
Alias: None
Product: kopete
Classification: Applications
Component: Jabber Plugin (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 15:22 UTC by Wim Bakker
Modified: 2006-07-31 23:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Bakker 2005-11-30 15:22:36 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources
Compiler:          gcc version 4.0.3 20051124 (prerelease) 
OS:                Linux

Compile of kopete kde-3.5.0 fails with the following error's :
if /bin/sh ../../../../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../.. -I./../include -I./../xmpp-core -I./../xmpp-im -I./../../cutestuff/util -I./../../cutestuff/network -I./../../qca/src -I/usr/kde/include -I/opt/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -march=pentium-m -mfpmath=sse -msse2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT libiris_xmpp_core_la-jid.lo -MD -MP -MF ".deps/libiris_xmpp_core_la-jid.Tpo" -c -o libiris_xmpp_core_la-jid.lo `test -f 'jid.cpp' || echo './'`jid.cpp; \
then mv -f ".deps/libiris_xmpp_core_la-jid.Tpo" ".deps/libiris_xmpp_core_la-jid.Plo"; else rm -f ".deps/libiris_xmpp_core_la-jid.Tpo"; exit 1; fi
jid.cpp: In static member function 'static bool StringPrepCache::nameprep(const QString&, int, QString*)':
jid.cpp:57: error: 'Stringprep_profile_flags' was not declared in this scope
jid.cpp:57: error: 'stringprep_nameprep' was not declared in this scope
jid.cpp: In static member function 'static bool StringPrepCache::nodeprep(const QString&, int, QString*)':
jid.cpp:93: error: 'Stringprep_profile_flags' was not declared in this scope
jid.cpp:93: error: 'stringprep_xmpp_nodeprep' was not declared in this scope
jid.cpp: In static member function 'static bool StringPrepCache::resourceprep(const QString&, int, QString*)':
jid.cpp:129: error: 'Stringprep_profile_flags' was not declared in this scope
jid.cpp:129: error: 'stringprep_xmpp_resourceprep' was not declared in this scope
make[7]: *** [libiris_xmpp_core_la-jid.lo] Error 1
make[7]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete/protocols/jabber/libiris/iris/xmpp-core'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete/protocols/jabber/libiris/iris'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete/protocols/jabber/libiris'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete/protocols/jabber'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete/protocols'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/KDE/snapshots/kdenetwork-3.5.0'
make: *** [all] Error 2

gcc-4.0.3 20051124
Comment 1 Matt Rogers 2005-12-13 00:16:47 UTC
Do you have libidn and its development package installed?
Comment 2 Wim Bakker 2005-12-13 16:56:44 UTC
Yep , libidn is installed , note these dates are from after my commit the bug,
that is because after submitting the bug I thought , maybe the compiler is not supported , so I recompiled everything with 3.4.4 again (including all the
third party libraries, amongst which libidn).
I get this error on all my systems where I try to compile the latest kde-3.5.0.
Compilers in use range from gcc-3.4.3 till 4.0.3 prelease.

-rw-r--r--  1 root root 275350 2005-12-06 18:00 /usr/lib/libidn.a
-rwxr-xr-x  1 root root    795 2005-12-06 18:00 /usr/lib/libidn.la
lrwxrwxrwx  1 root root     16 2005-12-08 09:15 /usr/lib/libidn.so -> libidn.so.11.5.2
lrwxrwxrwx  1 root root     16 2005-12-08 09:15 /usr/lib/libidn.so.11 -> libidn.so.11.5.2
-rwxr-xr-x  1 root root 239868 2005-12-06 18:00 /usr/lib/libidn.so.11.5.2
[root@knoflook install]# ls -l /usr/include/idn
idna.h      idn-free.h  idn-int.h
[root@knoflook install]# ls -l /usr/include/idn*
-rw-r--r--  1 root root 2886 2005-12-06 18:00 /usr/include/idna.h
-rw-r--r--  1 root root 1755 2005-12-06 18:00 /usr/include/idn-free.h
-rw-r--r--  1 root root 8140 2005-12-06 18:00 /usr/include/idn-int.h
Comment 3 Olivier Goffart 2005-12-24 14:41:20 UTC
you shouldn't use buzilla to report comile error, please mail the mailing list instead.

About this compile error, i don't know what cause this.
this part of code is part of libiris which is maintained by the Psi team.
Comment 4 PhobosK 2006-07-31 23:49:01 UTC
If you installed a newer version of silc after the install of libidn, it overwrites the stringprep.h file of libidn, so the solution is to reinstall libidn after silc.