Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38240 - sim 0.9.2 fails on compile
Summary: sim 0.9.2 fails on compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
: 38317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-14 17:46 UTC by René Marten
Modified: 2004-01-21 02:32 UTC (History)
3 users (show)

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


Attachments
Markus's fixed ebuild (sim-0.9.2.ebuild,1.31 KB, application/octet-stream)
2004-01-17 07:46 UTC, fatty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Marten 2004-01-14 17:46:44 UTC
simctrl.o(.text+0x761): In function `createTCPProcessor(char const*)':
/usr/include/g++/bits/basic_string.h:781: undefined reference to `__inet_addr'
simctrl.o(.text+0x846): In function `createTCPProcessor(char const*)':
/u/vova/t/sim/plugins/remote/simctrl.cpp:191: undefined reference to `__inet_addr'
simctrl.o(.text+0xd06): In function `usage':
/u/vova/t/sim/plugins/remote/simctrl.cpp:365: undefined reference to `__stderrp'
simctrl.o(.text+0xdf3): In function `main':
/u/vova/t/sim/plugins/remote/simctrl.cpp:398: undefined reference to `__stderrp'
simctrl.o(.text+0xffa):/u/vova/t/sim/plugins/remote/simctrl.cpp:413: undefined reference to `__stdinp'
collect2: ld returned 1 exit status
make[2]: *** [simctrl] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/usr/portage/tmp/portage/sim-0.9.2/work/sim-0.9.2/plugins/remote'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/portage/tmp/portage/sim-0.9.2/work/sim-0.9.2'
make: *** [all] Fehler 2

!!! ERROR: net-im/sim-0.9.2 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! (no error message)

# emerge info
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -funroll-loops -fforce-addr -fexpensive-optimizations -falign-functions=16 -falign-jumps=16 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -mcpu=athlon-xp -mmmx -msse -m3dnow -fomit-frame-pointer -funroll-loops -fforce-addr -fexpensive-optimizations -falign-functions=16 -falign-jumps=16 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb cdr crypt cups directfb encode esd foomaticdb gatos gdbm gif gnome gphoto2 gpm gtk gtk2 guile imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png ppds python qt quicktime radeon readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype x86 xfs xml2 xmms xv zlib video_cards_radeon"
Comment 1 Clemens Schwaighofer 2004-01-14 20:28:37 UTC
I can confirm that:

/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sim/api -I../_core -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DPIC -fPIC -DQT_THREAD_SUPPORT  -DPIC -fPIC -DQT_THREAD_SUPPORT  -D_REENTRANT -O3 -march=pentium4 -funroll-loops -pipe  -DNDEBUG -O2 -O3 -march=pentium4 -funroll-loops -pipe -fno-exceptions -fno-check-new  -c -o remotecfg.lo `test -f 'remotecfg.cpp' || echo './'`remotecfg.cpp
simctrl.o(.text+0x761): In function `createTCPProcessor(char const*)':
/usr/include/g++/bits/basic_string.h:781: undefined reference to `__inet_addr'
simctrl.o(.text+0x846): In function `createTCPProcessor(char const*)':
/u/vova/t/sim/plugins/remote/simctrl.cpp:191: undefined reference to `__inet_addr'
simctrl.o(.text+0xd06): In function `usage':
/u/vova/t/sim/plugins/remote/simctrl.cpp:365: undefined reference to `__stderrp'
simctrl.o(.text+0xdf3): In function `main':
/u/vova/t/sim/plugins/remote/simctrl.cpp:398: undefined reference to `__stderrp'
simctrl.o(.text+0xffa):/u/vova/t/sim/plugins/remote/simctrl.cpp:413: undefined reference to `__stdinp'
collect2: ld returned 1 exit status
make[2]: *** [simctrl] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sim-0.9.2/work/sim-0.9.2/plugins/remote'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sim-0.9.2/work/sim-0.9.2'
make: *** [all] Error 2

!!! ERROR: net-im/sim-0.9.2 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! (no error message)

jupiter root # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-gentoo)
=================================================================
System uname: 2.6.0-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/ http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://ftp.gentoo.or.kr/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apache2 apm arts avi berkdb bonobo canna cdr cjk crypt cups curl dga directfb encode esd ethereal fbcon foomaticdb freetds freewnn gd gdbm gif gpm gtk gtk2 imap imlib innodb ipv6 java jpeg kde kerberos lcms libg++ libgda libwww mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline ruby samba sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf x86 xface xml xml2 xmms xosd xv zlib"
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-01-15 00:45:25 UTC
same here
Comment 3 Sergey Kuleshov (RETIRED) gentoo-dev 2004-01-15 01:39:24 UTC
Try changing -Os (-O3) to -O2, i have seen a case where it helped.
Comment 4 BigBug 2004-01-15 01:45:55 UTC
I also can confirm and possible fix:

My emerge info:

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Intel(R) Celeron(TM) CPU                1200MHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -mmmx -msse -pipe -funroll-loops -ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -mmmx -msse -pipe -funroll-loops -ffast-math -mfpmath=sse,387 -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.mirror.sdv.fr http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/home/portage"
PORTAGE_TMPDIR="/home"
PORTDIR="/home/ports"
PORTDIR_OVERLAY="/usr/src/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa avi cdr cups dga fbcon foomatic foomaticdb framebuffer gif jikes joystick jpeg maildir memlimit mmx mmx2 moznoirc nocardbus nocd nptl opengl oss pic png quicktime readline samba scanner sdl shm sse ssl svga threads tiff truetype videos vidix x86 xv zlib video_cards_nvidia"


When I reduce CFLAGS to CFLAGS="-march=pentium3 -O2 -mmmx -msse -pipe -funroll-loops -ffast-math -mfpmath=sse,387 -fomit-frame-pointer" (eg -O3 to -O2)
application compiles cleanly
Comment 5 Clemens Schwaighofer 2004-01-15 20:23:16 UTC
thought I changed the -O flag to -O2 I still get -O3 here

/sim/api -I../_core -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/qt/3/include -I/usr/X11R6/include   -DPIC -fPIC -DQT_THREAD_SUPPORT  -DPIC -fPIC -DQT_THREAD_SUPPORT  -D_REENTRANT   -O3 -march=pentium4 -funroll-loops -pipe  
                                    ^^^
-DNDEBUG -O2 -O2 -march=pentium4 -funroll-loops -pipe -fno-exceptions -fno-check-new  -c -o remotecfg.lo `test -f 'remotecfg.cpp' || echo './'`remotecfg.cpp

so it fails (perhaps because of that)
Comment 6 René Marten 2004-01-16 06:42:57 UTC
SIM CVS seems to work 

$ sim --version
Qt: 3.2.3
KDE: 3.1.5
SIM: 0.9.3 CVS Jan 15 2004
Comment 7 Markus Liebl 2004-01-16 07:52:28 UTC
i added two lines to my local ebuild. sim emerge works fine now.
(new lines are marked with a +)

src_compile() { 
local myconf 

myconf="$( use_enable ssl openssl )" 
myconf="$myconf $( use_enable kde )" 
myconf="$myconf --without-gkrellm_plugin" 
myconf="$myconf --prefix=/usr" 

if [ $( use kde ) ]; then 
need-kde 3 
else 
need-qt 3 
fi 

WANT_AUTOMAKE=1.7 

+ aclocal-1.7 
autoconf 

use kde && kde_src_compile myconf 

econf $myconf --without-gkrellm || die 
+ make clean || die 
emake || die 
}
Comment 8 Roman Kreisel 2004-01-16 09:47:34 UTC
Even with -O2 sim 0.9.2 didn't compile in my system (kde 3.2beta2), but Markus' 2 lines helped, now it compiled fine. Maybe it's time for -r1 ;)
Comment 9 Siuchung Cheung (Clement) 2004-01-16 10:57:31 UTC
I got this too. But guess what? When I try again, it gives me the macros generated by automake 1.7.9 and your version is 1.7.8, please run aclocal message. And now I'm not able to even get to the compile phrase again! My automake has always been 1.7.8. I didn't change anything.
Comment 10 Siuchung Cheung (Clement) 2004-01-16 11:18:42 UTC
This is what I get:

config.status: creating config.h
config.status: executing depfiles commands
cd . && \
/bin/sh /var/tmp/portage/sim-0.9.2/work/sim-0.9.2/admin/missing --run automake-1.7 --foreign  ./Makefile
configure.in:39: version mismatch.  This is Automake 1.7.8,
configure.in:39: but the definition used by this AM_INIT_AUTOMAKE
configure.in:39: comes from Automake 1.7.9.  You should recreate
configure.in:39: aclocal.m4 with aclocal and run automake again.
WARNING: `automake-1.7' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `automake-1.7' program.
make: *** [Makefile.in] Error 1

!!! ERROR: net-im/sim-0.9.2 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! (no error message)

Markus's 2 lines works for me too. Yes, he's doing exactly what the message suggested, which is the right thing to do.

I think we should make this change permanent because those guys at sim seems to keep using automake version much newer than the ones in portage all the time. It's not the first time it happens. (Bug #38181) And looks like it's going to happen again soon with the advent of automake 1.8.0. (Bug #33271) From what they say on bug #33271, I guess we won't have automake 1.8.0 any time soon. His 2 lines would fix this and also future automake breakages in sim.
Comment 11 Siuchung Cheung (Clement) 2004-01-16 11:20:25 UTC
I mean bug #33217, not #33271. Sorry.
Comment 12 Constantin Gruber 2004-01-17 04:52:07 UTC
The 2 lines from Markus also fixed the problem for me (KDE3.2_beta2)...
Comment 13 fatty 2004-01-17 07:41:52 UTC
I had exactly the same problem and using Markus's 2 lines solved it, too.
Comment 14 fatty 2004-01-17 07:46:51 UTC
Created attachment 23981 [details]
Markus's fixed ebuild
Comment 15 René Marten 2004-01-17 09:08:34 UTC
>>> net-im/sim-0.9.2 merged.


bash-2.05b$ sim --version
Qt: 3.2.3
KDE: 3.1.5
SIM: 0.9.2

all fine here 
Comment 16 Selecter 2004-01-17 11:09:42 UTC
Confirm Ebuild fix
Comment 17 zhcnmccmzhdvfevooo 2004-01-18 11:33:39 UTC
I also confirm that Markus fix solves the problems
Comment 18 Clemens Schwaighofer 2004-01-19 01:14:11 UTC
yes those two changes fix the sim build for me too... thought inbetween I switched to gaim and I think I will stick with it for the moment ;)
Comment 19 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-19 09:07:43 UTC
*** Bug 38317 has been marked as a duplicate of this bug. ***
Comment 20 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-19 09:08:48 UTC
Ive commited some fixes to 0.9.1 and 0.9.2. Please re-emerge if you have problems and report failure/success here.
Comment 21 Ivan Todorovic 2004-01-20 04:52:55 UTC
failure. I did not add the lines by Markus as the ebuild looks a bit different now. I still get essentially the same compile error as in the original bug report.
Comment 22 Markus Liebl 2004-01-20 05:30:58 UTC
simctrl.o(.text+0x761): In function `createTCPProcessor(char const*)':
/usr/include/g++/bits/basic_string.h:781: undefined reference to `__inet_addr'
simctrl.o(.text+0x846): In function `createTCPProcessor(char const*)':
/u/vova/t/sim/plugins/remote/simctrl.cpp:191: undefined reference to `__inet_addr'
simctrl.o(.text+0xd06): In function `usage':
/u/vova/t/sim/plugins/remote/simctrl.cpp:365: undefined reference to `__stderrp'
simctrl.o(.text+0xdf3): In function `main':
/u/vova/t/sim/plugins/remote/simctrl.cpp:398: undefined reference to `__stderrp'
simctrl.o(.text+0xffa):/u/vova/t/sim/plugins/remote/simctrl.cpp:413: undefined reference to `__stdinp'
collect2: ld returned 1 exit status

There a old object files in sim-0.9.2.tar.gz. They must be recompiled on my system to compile cleanly. Either do a "make clean" before emake or fix the tar.gz. 
Comment 23 Ivan Todorovic 2004-01-20 06:05:02 UTC
success. I added make clean || die before emake.
Comment 24 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-21 02:32:13 UTC
Fixed in CVS, thanks!