Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403869 - media-tv/xbmc-11.0_beta3[mysql,-pvr]: build fails with missing mysql references
Summary: media-tv/xbmc-11.0_beta3[mysql,-pvr]: build fails with missing mysql references
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Xbox project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 10:05 UTC by Martin Dummer
Modified: 2012-02-16 04:31 UTC (History)
3 users (show)

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


Attachments
build log (build.log.bz2,44.18 KB, application/x-bzip)
2012-02-15 21:17 UTC, Martin Dummer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dummer 2012-02-15 10:05:10 UTC
when trying to emerge media-tv/xbmc-11.0_beta3 with useflag mysql set, then ebuild aborts.
The relevant error message in the build.log is

xbmc/dbwrappers/dbwrappers.a(Database.o): In function `CDatabase::Connect(DatabaseSettings const&, bool)':
Database.cpp:(.text+0x16fb): undefined reference to `dbiplus::MysqlDatabase::MysqlDatabase()'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1


emerging without mysql useflag runs fine


Reproducible: Always

Steps to Reproduce:
1.USE=mysql emerge -av xbmc
2.USE=-mysql emerge -av xbmc

Actual Results:  
The ebuild in step 1 fails.
The ebuild in step 2 is successful.

Expected Results:  
Both ebuilds should complete without errors.

martin@bln9716n ~ $ emerge --info
Portage 2.2.0_alpha86 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.5-gentoo-nouveau7 x86_64)
=================================================================
System uname: Linux-3.2.5-gentoo-nouveau7-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Wed, 15 Feb 2012 07:45:01 +0000
distcc[674] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo vdr-devel MD-s-Lokales-Overlay prometheanfire
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10 AdobeFlash-10.1 googleearth Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --ask-enter-invalid --quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""                                                                                                                                                                                                           
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo "                                                                                                                                                     
LANG="C"                                                                                                                                                                                                            
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                   
LINGUAS="de"                                                                                                                                                                                                        
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vdr-devel /usr/local/portage /var/lib/layman/prometheanfire"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi akonadi alsa amd64 ao apng audiofile bash-completion berkdb bluetooth branding bzip2 cairo captury cardbus cdda cdr cisco cli consolekit cracklib cron crypt css cups curl cxx dbus declarative device-mapper dhcpcd disk-partition dri dts dvb dvd dvdr ebook embedded emboss emerald enca encode exif extras fam ffmpeg firefox flac fontconfig fortran g3dvl gd gdbm gdu geolocation gif gimp git glitz gnutls gphoto2 gpm gstreamer gtk httpd hybrid-auth iconv icu id3tag ieee1394 ipod ipv6 java jpeg kde kipi kvm lame laptop lcms ldap lensfun libass libcaca libnotify libproxy live lm_sensors logrotate lzo macvtap mad minizip mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multilib musicbrainz mysql ncurses networkmanager nfsv3 nfsv4 nls nptl nptlonly nsplugin ntlm ntp nvidia ogg old-daemons openexr opengl openipmi openmp pam pango pcre pdf phonon plasma pm-utils png policykit ppds pppd python qemu qt3support qt4 rdesktop rdp readline resolvconf rss samba sasl sdl semantic-desktop session smi smp sndfile snmp spell sql sse sse2 sse3 ssl ssse3 startup-notification stl svg symlink sysfs tcpd test-programs threads threadsafe thumbnail tiff truetype udev unicode usb utils v4l v4l2 vcd vdpau vim-syntax vnc vorbis webkit wifi x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" 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 mmap_emul 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 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 stage tables krita karbon braindump" CAMERAS="canon 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="userspace" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia nouveau" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Dummer 2012-02-15 10:06:56 UTC
I will upload the build.log only upon request because it's ~900kB size....
Comment 2 Robert Malek 2012-02-15 10:45:15 UTC
Can confirm, same behavior here.

@Martin: what use-flags do you use for mysql?
Comment 3 Martin Dummer 2012-02-15 12:38:55 UTC
(In reply to comment #2)
> @Martin: what use-flags do you use for mysql?

dev-db/mysql-5.1.61 berkdb community embedded perl ssl
virtual/mysql-5.1 embedded -minimal -static
Comment 4 Robert Malek 2012-02-15 13:24:01 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > @Martin: what use-flags do you use for mysql?
> 
> dev-db/mysql-5.1.61 berkdb community embedded perl ssl
> virtual/mysql-5.1 embedded -minimal -static

It seems to me not a problem with mysqll, rather then with pvr and the nomythtv patch.

If if remove the epatch xbmc-9999-nomythtv.patch source from the ebuild, the package compiles fine!
I actually do not have any pvr package installed, so i can't test how it's work with mythtv or vdr.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-15 15:33:46 UTC
(In reply to comment #1)
> I will upload the build.log only upon request because it's ~900kB size....

Compress it: bzip2 /path/to/build.log, then attach it.
Comment 6 Martin Dummer 2012-02-15 21:17:57 UTC
Created attachment 302075 [details]
build log
Comment 7 SpanKY gentoo-dev 2012-02-16 04:31:44 UTC
should be all set now in the tree; thanks for the report!

Commit message: Revise mysql patch to work
http://sources.gentoo.org/media-tv/xbmc/files/xbmc-9999-nomythtv.patch?r1=1.3&r2=1.4