Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484078 - =games-board/xboard-4.7.2[Xaw3d] compile failure: undefined reference to `main'
Summary: =games-board/xboard-4.7.2[Xaw3d] compile failure: undefined reference to `main'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-07 10:06 UTC by Ulrich Müller
Modified: 2013-09-07 12:25 UTC (History)
0 users

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


Attachments
build.log (build.log,98.44 KB, text/plain)
2013-09-07 10:06 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2013-09-07 10:06:50 UTC
Created attachment 358140 [details]
build.log

Fails at linking time with lots of undefined references:

x86_64-pc-linux-gnu-gcc  -march=core2 -ggdb -O2 -pipe -Wall -Wno-parentheses  -W
l,-O1 -Wl,--as-needed -o xboard backend.o book.o childio.o gamelist.o ngamelist.
o lists.o moves.o parser.o pgntags.o uci.o board.o draw.o dialogs.o engineoutput
.o nengineoutput.o evalgraph.o nevalgraph.o history.o nhistory.o menus.o usounds
.o usystem.o   -lm -lXaw3d -lXpm  -lSM -lICE   -lXmu -lX11 -lXt   -lrsvg-2 -lm -
lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crt1.o: In function `_s
tart':
(.text+0x20): undefined reference to `main'
backend.o: In function `Mark':
/var/tmp/portage/games-board/xboard-4.7.2/work/xboard-4.7.2/backend.c:7005: undefined reference to `fromY'
[...]
/var/tmp/portage/games-board/xboard-4.7.2/work/xboard-4.7.2/usystem.c:292: undef
ined reference to `SaveSettings'
collect2: error: ld returned 1 exit status
make[2]: *** [xboard] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-board/xboard-4.7.2/work/xboard-4.7.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-board/xboard-4.7.2/work/xboard-4.7.2'
make: *** [all] Error 2


Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.10-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.10-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6570_@_2.10GHz-with-gentoo-2.2
KiB Mem:     3975324 total,   1829768 free
KiB Swap:    8388572 total,   8179788 free
Timestamp of tree: Sat, 07 Sep 2013 06:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.3.2-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo emacs ulm
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -ggdb -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.osuosl.org/"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/repo/portage"
PORTDIR_OVERLAY="/repo/layman/emacs /repo/ulm"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr ansi audiofile bash-completion bbdb berkdb bluetooth branding bzip2 cairo caps cdda cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus directfb dri dts dvd dvdr elisp emacs emboss emerald encode exif expat fam fbcon ffmpeg filecaps firefox flac fontconfig fortran gd gdbm gif gimp glitz glut gmp gnuplot gpg gpm gsl gtk gtkhtml guile iconv idea ieee1394 imagemagick imap inotify ipv6 java jbig jpeg kpathsea latex lcms libcaca libnotify logrotate lua mad math metric mmx mng modules motif mp3 mp4 mpeg mudflap mule multilib ncurses networking nls nocd nptl nsplugin offensive ogg opengl openmp pam pango pcmcia pcre pdf pkcs11 plotutils png policykit portage portaudio postgres ppds preview-latex qa qt3support qt4 readline recode regex ruby sbcl sdl session skey smp sox spell sse sse2 ssl startup-notification svg t1lib tcpd tex tiff truetype udev udisks unicode upower usb userlocales vorbis wifi wxwidgets wxwindows x264 xattr xcb xft xml xpm xulrunner xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

games-board/xboard-4.6.2 was built with the following:
USE="Xaw3d default-font (multilib) -zippy"
Comment 1 Ulrich Müller gentoo-dev 2013-09-07 11:14:34 UTC
Hm, AC_ARG_WITH(PACKAGE, ...) will already assign the with_PACKAGE variable, so there's no need to assign it explicitly.
Comment 2 Julian Ospald 2013-09-07 11:18:51 UTC
I am not sure what you are talking about.
Comment 3 Julian Ospald 2013-09-07 11:19:39 UTC
+  07 Sep 2013; Julian Ospald <hasufell@gentoo.org> xboard-4.7.2.ebuild,
+  +files/xboard-4.7.2-Xaw3d.patch:
+  fix build with Xaw3d wrt #484078
Comment 4 Julian Ospald 2013-09-07 11:26:22 UTC
also note:

--with-Xaw3d            use Xaw3d front-end (not fully supported anymore)

maybe we should make a note in metadata.xml? But it only true for 4.7.2
Comment 5 Ulrich Müller gentoo-dev 2013-09-07 12:20:08 UTC
(In reply to Julian Ospald (hasufell) from comment #2)
> I am not sure what you are talking about.

In files/xboard-4.7.2-configure-switches.patch:

 AC_ARG_WITH([Xaw],
             [AS_HELP_STRING([--with-Xaw],[use Xaw front-end (default)])],
-            [with_Xaw=yes],
-            [with_Xaw=no])
+            [with_Xaw="$withval"],
+            [with_Xaw="no"])

AC_ARG_WITH sets both the "withval" and "with_Xaw" variables, so the explicit assignments are redundant.
Comment 6 Julian Ospald 2013-09-07 12:25:04 UTC
(In reply to Ulrich Müller from comment #5)
> (In reply to Julian Ospald (hasufell) from comment #2)
> > I am not sure what you are talking about.
> 
> In files/xboard-4.7.2-configure-switches.patch:
> 
>  AC_ARG_WITH([Xaw],
>              [AS_HELP_STRING([--with-Xaw],[use Xaw front-end (default)])],
> -            [with_Xaw=yes],
> -            [with_Xaw=no])
> +            [with_Xaw="$withval"],
> +            [with_Xaw="no"])
> 
> AC_ARG_WITH sets both the "withval" and "with_Xaw" variables, so the
> explicit assignments are redundant.

with_Xaw="no" is not set explicitly, it will be empty