Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222033 - games-strategy/wesnoth-1.4.2 fails to build with USE="dedicated server"
Summary: games-strategy/wesnoth-1.4.2 fails to build with USE="dedicated server"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 08:00 UTC by Philipp Riegger
Modified: 2008-05-20 05:50 UTC (History)
0 users

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


Attachments
Patch on ebuild forcing libsdl with X (wesnoth.patch,452 bytes, patch)
2008-05-17 10:48 UTC, Tomáš Chvátal (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2008-05-14 08:00:02 UTC
Wesnoth does not build. I have no idea, why. This is an x86 system with some ~x86 packages.

Reproducible: Always

Steps to Reproduce:
1.emerge wesnoth

Actual Results:  
Making all in m4
Making all in src
clipboard.cpp: In member function 'Display* XHelper::dpy()':
clipboard.cpp:107: error: 'struct SDL_SysWMinfo' has no member named 'info'
clipboard.cpp: In member function 'Window XHelper::window()':
clipboard.cpp:112: error: 'struct SDL_SysWMinfo' has no member named 'info'
clipboard.cpp: In member function 'void XHelper::acquire()':
clipboard.cpp:122: error: 'struct SDL_SysWMinfo' has no member named 'info'
clipboard.cpp: In member function 'void XHelper::release()':
clipboard.cpp:130: error: 'struct SDL_SysWMinfo' has no member named 'info'
clipboard.cpp: In function 'void handle_system_event(const SDL_Event&)':
clipboard.cpp:184: error: 'struct SDL_SysWMmsg' has no member named 'event'
clipboard.cpp:191: error: 'XA_PRIMARY' was not declared in this scope
clipboard.cpp:217: error: 'XA_ATOM' was not declared in this scope
clipboard.cpp: In function 'void copy_to_clipboard(const std::string&)':
clipboard.cpp:258: error: 'XA_PRIMARY' was not declared in this scope
clipboard.cpp: In function 'std::string copy_from_clipboard()':
clipboard.cpp:342: error: 'XA_STRING' was not declared in this scope
make[2]: *** [clipboard.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 *
 * ERROR: games-strategy/wesnoth-1.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2568:  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/games-strategy:wesnoth-1.4.2:20080514-073730.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/wesnoth-1.4.2/temp/environment'.
 *

 * GNU info directory index is up-to-date.


Expected Results:  
It builds and installs

chris ~ # emerge -pv wesnoth
 * Overlay eclasses override eclasses from PORTDIR:
 * 
 *   '/usr/portage/local/layman/java-experimental/eclass/ant-tasks.eclass'
 *   '/usr/portage/local/layman/java-experimental/eclass/mercurial.eclass'
 * 
 * It is best to avoid overridding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to run `emerge --regen` after each time that you run `emerge
 * --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
 * would like to disable this warning.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] games-strategy/wesnoth-1.4.2 [1.2.8] USE="dedicated server -editor -lite -nls -static% -tools (-gnome%) (-kde%)" 0 kB 

Total: 1 package (1 upgrade), Size of downloads: 0 kB
chris ~ # emerge --info
 * Overlay eclasses override eclasses from PORTDIR:
 * 
 *   '/usr/portage/local/layman/java-experimental/eclass/ant-tasks.eclass'
 *   '/usr/portage/local/layman/java-experimental/eclass/mercurial.eclass'
 * 
 * It is best to avoid overridding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to run `emerge --regen` after each time that you run `emerge
 * --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
 * would like to disable this warning.
Portage 2.1.5_rc10 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 VIA Esther processor 1300MHz
Timestamp of tree: Tue, 13 May 2008 21:15:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=i686 -Os -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/share/hddtemp/hddtemp.db /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -mtune=i686 -Os -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg collision-protect distlocks fixpackags parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://gentoo.inode.at/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="*.la"
LDFLAGS=""
LINGUAS="en de"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages/chris"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found --exclude=/profiles/default-linux/x86/*/stoile"
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/portage/local/layman/stoile /usr/portage/local/layman/sunrise /usr/portage/local/layman/nouveau /usr/portage/local/layman/banshee /usr/portage/local/layman/java-overlay /usr/portage/local/layman/java-experimental"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt ctype cups fortran gd gdbm gif gmp gsl hardened idn imagemagick ipv6 isdnlog jpeg jpeg2k ldap logrotate midi mmx mudflap mysql ncurses nptl nptlonly openmp pam pcre perl pic pie png pppd python readline reflection session snmp spl sse sse2 ssl tcpd test tetex threads tiff truetype unicode vhosts vorbis x86 xml xorg zlib" 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" APACHE2_MPMS="prefork" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jan Drábek 2008-05-16 16:03:55 UTC
Same problem in my fresh instalation. In my case it fails even though I am not
having dedicated use flag.

ortage 2.1.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.7-r2,
2.6.25-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
5400+
Timestamp of tree: Fri, 16 May 2008 15:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
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.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer -msse3"
CHOST="x86_64-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/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/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="cs"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi additions alsa amd amd64
apache2 archive arts berkdb bluetooth bzip2 cairo calendar captury cdr cli
cracklib crypt ctype cups dbus dhcp directfb dri dts dv dvd dvdr dvdread editor
encode exif fame fat fbcon fbsplash ffmpeg flac fortran ftp gd gdbm gif glitz
gpm gtk hal hdaps highlight history htmlhandbook iconv icq imap imlib inotify
ipv6 irc isdnlog jabber java jingle jpeg jpeg2k kde kdehiddenvisibility ladspa
lame laptop libcaca libnotify libwww live lm_sensors mad matroska mbrola
messenger midi mikmod mmx mmxext mp3 mpeg mplayer msn mudflap multilib mysql
mysqli ncurses network nls nptl nptlonly nsplugin ntfs objc++ ogg openal opengl
openmp oscar oss pam pcre pdf perl php pie png ppds pppd prediction python qt3
qt3support qt4 rar readline recode reflection reiserfs samba scanner sdk sdl
semantic-desktop server session slang spell spl sql sse sse2 ssl ssse3
subversion svg taglib tcpd telepathy themes theora tiff tools truetype unicode
usb v4l vnc vorbis wifi x264 xcb xcomposite xine xinerama xml xmlreader
xmlwriter xorg xsl xv xvid xvmc zip" ALSA_CARDS="ali5451 als4000 atiixp
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801
hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem
ymfpci" 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 auth_digest
authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter
headers ident imagemap include info log_config logio mem_cache mime mime_magic
negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite
setenvif so speling status unique_id userdir usertrack vhost_alias"
APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga
vesa dummy"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2008-05-17 10:42:13 UTC
It requires libsdl with X useflag enabled...
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-05-17 10:48:15 UTC
Created attachment 153411 [details, diff]
Patch on ebuild forcing libsdl with X

With libsdl +X wesnoth compiles with server and dedicated USE
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2008-05-17 11:10:36 UTC
Upstream might fix that, opened bug: https://gna.org/bugs/index.php?11698
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2008-05-17 20:23:32 UTC
We will have to wait for 1.5 version if we really don't want X server as dep. So keep tight and wait for new release :]
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2008-05-20 05:50:00 UTC
Thanks for the patch and bug report.  In portage.