Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98263 - cannot compile licq-1.3.0-r5 (iconv_t undeclared)
Summary: cannot compile licq-1.3.0-r5 (iconv_t undeclared)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-07 12:28 UTC by Andre Kloth
Modified: 2005-07-14 12:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Kloth 2005-07-07 12:28:44 UTC
Merging of Licq 1.3.0-r5 fails when compiling translate.cpp.

Reproducible: Always
Steps to Reproduce:
1. emerge -av licq

These are the packages that I would merge, in order:

Calculating dependencies  ...done!
[ebuild     U ] net-im/licq-1.3.0-r5 [1.3.0-r4] +crypt +kde +msn +ncurses +qt
-socks5 +ssl 0 kB 
....
....

Actual Results:  
....
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I/usr/include/gpgme  -I. -I. -I..  -Wall -I../include -DINSTALL_PREFIX=\"/usr\"
 -fPIC -DP
IC -D_REENTRANT  -O3 -march=pentium4 -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -fno-exceptions -fno-check-new -MT translate.o -MD -MP -MF
".deps/translate.Tpo
" \
  -c -o translate.o `test -f 'translate.cpp' || echo './'`translate.cpp; \
then mv -f ".deps/translate.Tpo" ".deps/translate.Po"; \
else rm -f ".deps/translate.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I/usr/include/gpgme  -I. -I. -I..  -Wall -I../include -DINSTALL_PREFIX=\"/usr\"
 -fPIC -DP
IC -D_REENTRANT  -O3 -march=pentium4 -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -fno-exceptions -fno-check-new -MT file.o -MD -MP -MF
".deps/file.Tpo" \
  -c -o file.o `test -f 'file.cpp' || echo './'`file.cpp; \
then mv -f ".deps/file.Tpo" ".deps/file.Po"; \
else rm -f ".deps/file.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I/usr/include/gpgme  -I. -I. -I..  -Wall -I../include -DINSTALL_PREFIX=\"/usr\"
 -fPIC -DP
IC -D_REENTRANT  -O3 -march=pentium4 -fprefetch-loop-arrays -pipe
-fomit-frame-pointer -fno-exceptions -fno-check-new -MT message.o -MD -MP -MF
".deps/message.Tpo" \
  -c -o message.o `test -f 'message.cpp' || echo './'`message.cpp; \
then mv -f ".deps/message.Tpo" ".deps/message.Po"; \
else rm -f ".deps/message.Tpo"; exit 1; \
fi
translate.cpp: In member function `char* CTranslator::FromUnicode(char*)':
translate.cpp:249: error: `iconv_t' undeclared (first use this function)
translate.cpp:249: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
translate.cpp:249: error: parse error before `;' token
translate.cpp:254: error: `tr' undeclared (first use this function)
translate.cpp:254: error: `iconv_open' undeclared (first use this function)
translate.cpp:255: error: `iconv' undeclared (first use this function)
translate.cpp:256: error: `iconv_close' undeclared (first use this function)
translate.cpp: In member function `char* CTranslator::FromUTF16(char*, int)':
translate.cpp:279: error: parse error before `;' token
translate.cpp:284: error: `iconv_open' undeclared (first use this function)
translate.cpp:285: error: `iconv' undeclared (first use this function)
translate.cpp:286: error: `iconv_close' undeclared (first use this function)
translate.cpp: In member function `char* CTranslator::ToUTF16(char*, char*, 
   size_t&)':
translate.cpp:306: error: parse error before `;' token
translate.cpp:311: error: `iconv_open' undeclared (first use this function)
translate.cpp:312: error: `iconv' undeclared (first use this function)
translate.cpp:313: error: `iconv_close' undeclared (first use this function)
make[2]: *** [translate.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/licq-1.3.0-r5/work/licq-1.3.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/licq-1.3.0-r5/work/licq-1.3.0'
make: *** [all] Error 2

!!! ERROR: net-im/licq-1.3.0-r5 failed.
!!! Function src_compile, Line 87, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Compile licq 1.3.0-r5 like on the other two Gentoo boxes :)

I did not find an '#include <iconv.h>' and so I added it in
work/licq-1.3.0/include/licq_translate.h, compiled and installed licq
semi-automatic via ebuild.

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4,
glibc-2.3.4.20050125-r1, 2.6.12.1 i686)
=================================================================
System uname: 2.6.12.1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/splash /etc/terminfo /etc/wget
/usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo/
ftp://ftp.tiscali.nl/pub/mirror/gentoo ftp://ftp.du.se/pub/os/gentoo
http://ftp.du.se/pub/os/gentoo http://mirror.switch.ch/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi alsa apache2 apm arts avi bash-completion berkdb
bitmap-fonts cdr crypt cscope ctype cups curl directfb divx4linux doc dvd
dvdread eds emboss encode esd ethereal f77 faac faad fam fbcon firebird flac
foomaticdb fortran gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 ieee1394
imagemagick imap imlib imlib2 ipv6 java jikes jpeg junit kde kdeenablefinal
latex lcms ldap lesstif libcaca libg++ libwww live mad matroska mbox mikmod mmx
mmx2 motif mp3 mpeg mpeg3 mysql nas ncurses nls nptl ogg oggvorbis opengl oss
pam pcmcia pdflib perl plotutils png postgres ppds python qt quicktime readline
rtc ruby samba sasl scanner sdl slang slp snmp spell sse sse2 ssl svg svga tcltk
tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb
v4l v4l2 vorbis wifi wxwindows xface xine xinerama xml xml2 xmms xosd xsl xv
xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-07-14 12:38:05 UTC
fixed in 1.3.0-r6 
thank you, Andre