Bug 33453 - clanlib 0.7.6 does not compile
Bug#: 33453 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: suka@gentoo.org
Component: Games
URL: 
Summary: clanlib 0.7.6 does not compile
Keywords:  
Status Whiteboard: 
Opened: 2003-11-14 04:42 0000
Description:   Opened: 2003-11-14 04:42 0000
Socket/ip_address_getsock.cpp: In constructor `
   CL_IPAddress_GetSock::CL_IPAddress_GetSock(const std::string&)':
Socket/ip_address_getsock.cpp:58: warning: comparison is always false due to
   limited range of data type
Socket/ip_address_getsock.cpp: In constructor `
   CL_IPAddress_GetSock::CL_IPAddress_GetSock(const std::string&, const
   std::string&)':
Socket/ip_address_getsock.cpp:65: warning: comparison is always false due to
   limited range of data type
Socket/ip_address_getsock.cpp: In member function `virtual void
   CL_IPAddress_GetSock::set_port(const std::string&)':
Socket/ip_address_getsock.cpp:164: warning: comparison is always false due to
   limited range of data type
make[2]: *** [Socket/ip_address_getsock.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
rm: cannot remove `': Invalid argument
 g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\"
-DPACKAGE_VERSION=\"0.7.6\" "-DPACKAGE_STRING=\"ClanLib 0.7.6\""
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.7.6\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1
-DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_I386_ASSEMBLER=1
-DUSE_DYN=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -I. -I. -I/usr/X11R6/include
-march=athlon-xp -O2 -pipe -I../../Sources/ -Werror -MT Socket/socket_generic.lo
-MD -MP -MF Socket/.deps/socket_generic.Tpo -c Socket/socket_generic.cpp -o
Socket/socket_generic.o >/dev/null 2>&1
make[2]: Leaving directory
`/var/tmp/portage/clanlib-0.7.6/work/ClanLib-0.7.6/Sources/Network'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/clanlib-0.7.6/work/ClanLib-0.7.6/Sources'
make: *** [all-recursive] Error 1
 
!!! ERROR: dev-games/clanlib-0.7.6 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test9-mm2)
=================================================================
System uname: 2.6.0-test9-mm2 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline arts aalib bonobo svga tcltk java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla
gphoto2 ldap cdr scanner dvd gtk2 samba xfs moznoirc moznomail moznocompose tiff
dvdr nptl"

------- Comment #1 From SpanKY 2003-11-15 13:26:05 0000 -------
*** Bug 33554 has been marked as a duplicate of this bug. ***

------- Comment #2 From SpanKY 2003-11-15 14:37:11 0000 -------
added a small patch to change size of the port variable from 'unsigned short'
(which has a max value of 65535) to 'unsigned int' (which is much larger)

this fix comes from Sigurd Stordal <polarbear42@phreaker.net>, thanks