Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 227363

Summary: media-tv/tvbrowser-2.6.3 fails with "undefined reference to `main'"
Product: Gentoo Linux Reporter: Erik Zeek <zeekec>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: bbutscheidt, crazy-ivanovic, loki_val, maggu2810, renegart, vdr
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge log
emerge environment

Description Erik Zeek 2008-06-16 04:38:40 UTC
The log speaks for itself.

make[3]: Entering directory `/gentoo/tmp/portage/media-tv/tvbrowser-2.6.3/work/tvbrowser-2.6.3/deployment/x11/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/sun-jdk-1.6.0.06/include -I/opt/sun-jdk-1.6.0.06/include/linux     -O2 -mtune=native -march=native -pipe -fPIC -MT jni_wrapper.o -MD -MP -MF .deps/jni_wrapper.Tpo -c -o jni_wrapper.o jni_wrapper.c
mv -f .deps/jni_wrapper.Tpo .deps/jni_wrapper.Po
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/sun-jdk-1.6.0.06/include -I/opt/sun-jdk-1.6.0.06/include/linux     -O2 -mtune=native -march=native -pipe -fPIC -MT x11_systray_window.o -MD -MP -MF .deps/x11_systray_window.Tpo -c -o x11_systray_window.o x11_systray_window.c
mv -f .deps/x11_systray_window.Tpo .deps/x11_systray_window.Po
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -O2 -mtune=native -march=native -pipe -fPIC -shared -Wl -Wl,-O1 -Wl,--sort-common -o libDesktopIndicator.so jni_wrapper.o x11_systray_window.o ../src/logger/liblogger.a -L/usr/X11R6/lib -lX11 -lm -lc -L/opt/sun-jdk-1.6.0.06/jre/lib/i386/ -ljawt
libtool: link: i686-pc-linux-gnu-gcc -O2 -mtune=native -march=native -pipe -fPIC -Wl -Wl,-O1 -Wl,--sort-common -o libDesktopIndicator.so jni_wrapper.o x11_systray_window.o  ../src/logger/liblogger.a -L/usr/X11R6/lib /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl -lm -lc -L/opt/sun-jdk-1.6.0.06/jre/lib/i386/ -ljawt
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[3]: *** [libDesktopIndicator.so] Error 1
make[3]: Leaving directory `/gentoo/tmp/portage/media-tv/tvbrowser-2.6.3/work/tvbrowser-2.6.3/deployment/x11/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gentoo/tmp/portage/media-tv/tvbrowser-2.6.3/work/tvbrowser-2.6.3/deployment/x11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gentoo/tmp/portage/media-tv/tvbrowser-2.6.3/work/tvbrowser-2.6.3/deployment/x11'
make: *** [all] Error 2
 *
 * ERROR: media-tv/tvbrowser-2.6.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4685:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-tv:tvbrowser-2.6.3:20080616-042939.log'.
 * The ebuild environment file is located at '/gentoo/tmp/portage/media-tv/tvbrowser-2.6.3/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info
Comment 1 Erik Zeek 2008-06-16 04:39:06 UTC
Created attachment 157039 [details]
emerge --info
Comment 2 Erik Zeek 2008-06-16 04:39:29 UTC
Created attachment 157041 [details]
emerge log
Comment 3 Erik Zeek 2008-06-16 04:39:51 UTC
Created attachment 157043 [details]
emerge environment
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2008-06-16 20:35:00 UTC
(In reply to comment #1)
> Created an attachment (id=157039) [edit]
> emerge --info

Can you please try with empty LDFLAGS?
LDFLAGS="" emerge =media-tv/tvbrowser-2.6.3
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-16 21:14:59 UTC
I've tested this on ~x86 with gcc-4.1.2, gcc-4.2.3 and gcc-4.3.1. All fail in the same way as reported here. LDFLAGS are empty for this package.

Portage 2.1.5.5 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.23.12-hrt5 i686)
=================================================================
System uname: 2.6.23.12-hrt5 i686 AMD Sempron(tm)
Timestamp of tree: Sun, 15 Jun 2008 22:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks installsources parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://gentoo.osuosl.org/ http://gentoo.oregonstate.edu"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en da"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/misc /usr/local/portage/powertop /usr/local/portage/fonts /usr/local/portage/font-rework"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aim alsa authdaemond avahi bash-completion berkdb bzip2 cairo cdr cgi cjk cli cpudetection cracklib crypt css cups curl dbus djbfft djvu dri dts dvd dvdr dvdread evdev fam fastcgi ffmpeg firefox flac fontconfig fortran g15 gadu gif glib glitz gnutls gpm graphviz hal hbci iconv icq icu idea imap isdnlog jabber java javascript jbig jpeg jpeg2k kde kdeenablefinal lcd lm_sensors logitech-mouse logrotate lzo mad matroska mbox metric midi mikmod mime mmx mmxext mng mono moznopango mp3 mp4 mpeg mplayer msn mudflap musepack ncurses network-cron nls nocd nptl nptlonly offensive ogg openal openexr opengl openmp oscar pam pcre pdf perl php png pop ppds pppd python qt3 qt4 quicktime readline real reflection rle sasl sdl sensord session shorten slang smime sms speex spell spl sse ssl svg tcpd texteffect theora threads tiff translator truetype unicode usb vcd vorbis wavpack win32codecs wmf wxwindows x264 x86 xanim xcb xface xine xml xmlrpc xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="en da" USERLAND="GNU" VIDEO_CARDS="vesa radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 6 Erik Zeek 2008-06-16 21:45:34 UTC
(In reply to comment #5)
> I've tested this on ~x86 with gcc-4.1.2, gcc-4.2.3 and gcc-4.3.1. All fail in
> the same way as reported here. LDFLAGS are empty for this package.

I concur (with gcc-4.3.1 at least).
Comment 7 Bernd Butscheidt 2008-08-30 09:19:08 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I've tested this on ~x86 with gcc-4.1.2, gcc-4.2.3 and gcc-4.3.1. All fail in
> > the same way as reported here. LDFLAGS are empty for this package.
> 
> I concur (with gcc-4.3.1 at least).
> 

Same here on my amd64 even with LDFLAGS=""

Not the gentoo way but a work-around:
the binary from http://www.tvbrowser.org/ version 2.7 works fine.
Comment 8 Markus Rathgeb 2008-10-12 12:37:32 UTC
A workaround is to create a dummy main function.
It works for me.
Comment 9 Matthias Schwarzott gentoo-dev 2009-11-16 10:25:02 UTC
Ebuild removed.