Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285932 - mp3splt-2.2.5 compilation fails
Summary: mp3splt-2.2.5 compilation fails
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 10:52 UTC by Jan Hackel
Modified: 2010-04-28 07:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hackel 2009-09-22 10:52:20 UTC
Building mp3splt (2.2.5, 2.2.3 too I think) fails with lots of undefined symbols.

Reproducible: Always

Steps to Reproduce:




This is a clip from the ebuild output.

>>> Compiling source in /var/tmp/portage/media-sound/mp3splt-2.2.5/work/mp3splt-2.2.5 ...
make -j1                                                                                 
make  all-recursive                                                                      
make[1]: Entering directory `/var/tmp/portage/media-sound/mp3splt-2.2.5/work/mp3splt-2.2.5'
Making all in src                                                                          
make[2]: Entering directory `/var/tmp/portage/media-sound/mp3splt-2.2.5/work/mp3splt-2.2.5/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libmp3splt    -Wall -O2 -march=native -fomit-frame-pointer -pipe -I../libmp3splt/include/ -I../../libmp3splt/include/ -I../libmp3splt/include/libmp3splt/ -I../../libmp3splt/include/libmp3splt/ -c mp3splt.c                        
mp3splt.c: In function ‘free_main_struct’:                                                       
mp3splt.c:200: warning: implicit declaration of function ‘mp3splt_stop_split’                    
mp3splt.c:249: warning: implicit declaration of function ‘mp3splt_free_state’                    
mp3splt.c: In function ‘process_confirmation_error’:                                             
mp3splt.c:733: warning: implicit declaration of function ‘mp3splt_get_strerror’                  
mp3splt.c:733: warning: assignment makes pointer from integer without a cast                     
mp3splt.c:751: error: ‘SPLT_DEWRAP_OK’ undeclared (first use in this function)                   
mp3splt.c:751: error: (Each undeclared identifier is reported only once                          
mp3splt.c:751: error: for each function it appears in.)                                          
mp3splt.c: In function ‘parse_query_arg’:                                                        
mp3splt.c:819: error: ‘SPLT_FALSE’ undeclared (first use in this function)
... And so on ...

The problem seems to be that mp3splt.c includes <libmp3splt/mp3splt.h> but the compiler call does not -Include /usr/include but /usr/include/libmp3splt.

A workaround is to symlink /usr/include/libmp3splt/ to /usr/include/libmp3splt/libmp3splt
Comment 1 Sebastian Luther (few) 2009-09-22 16:16:42 UTC
Please provide "emerge --info media-libs/libmp3splt".
Comment 2 Arttu Valo 2009-09-22 17:34:50 UTC
I believe upstream has fixed the problem in their SVN trunk, and it was a wrong path in their m4 scripts:

http://mp3splt.svn.sourceforge.net/viewvc/mp3splt/mp3splt-project/trunk/newmp3splt/m4/mp3splt.m4?r1=463&r2=502

I think we could apply that as a patch, and drop the ${PN} part from the ebuild's --with-mp3splt-libraries option (leaving only /usr/include).

But then again, I may be wrong as I don't understand how can it currently work nicely on amd64-multilib with the includes and paths given.
Comment 3 Jan Hackel 2009-09-23 11:36:37 UTC
emerge --info media-libs/libmp3splt
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.2.2, glibc-2.9_p20081201-r2, 2.6.28-tuxonice-r3-suspend i686)                                                                                   
=================================================================                                
                        System Settings                                                          
=================================================================                                
System uname: Linux-2.6.28-tuxonice-r3-suspend-i686-Genuine_Intel-R-_CPU_T2600_@_2.16GHz-with-gentoo-2.0.1                                                                                        
Timestamp of tree: Mon, 21 Sep 2009 06:15:01 +0000                                               
app-shells/bash:     4.0_p28                                                                     
dev-java/java-config: 1.3.7, 2.1.8-r1                                                            
dev-lang/python:     2.4.4-r9, 2.5.4-r2, 2.6.2-r1                                                
dev-python/pycrypto: 2.0.1-r6                                                                    
dev-util/cmake:      2.6.4                                                                       
sys-apps/baselayout: 2.0.1                                                                       
sys-apps/openrc:     0.4.3-r3                                                                    
sys-apps/sandbox:    1.6-r2                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                               
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                    
sys-devel/binutils:  2.18-r3                                                                     
sys-devel/gcc-config: 1.4.1                                                                      
sys-devel/libtool:   2.2.6a                                                                      
virtual/os-headers:  2.6.27-r2                                                                   
ACCEPT_KEYWORDS="x86"                                                                            
CBUILD="i686-pc-linux-gnu"                                                                       
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"                                            
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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                            
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"                                          
DISTDIR="/usr/portage/distfiles"                                                                 
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                    
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ "                                            
LC_ALL="en_US.UTF-8"                                                                             
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 asf bash-completion berkdb bitmap-fonts bluetooth bzip2 cddb cdr cli consolekit cracklib crypt cups dbus divx dri dts dvd encode fam ffmpeg firefox flac fortran gdbm gif gpm gtk hal htmlhandbook iconv ipv6 isdnlog isight jpeg jpeg2k kde lm_sensors mmx mono mp3 mpeg mudflap musepack ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pmu png pppd python qt3 qt4 quicktime readline reflection rtsp samba sdl session speex spl sse sse2 ssl svg sysfs tcpd tetex theora tiff timidity truetype truetype-fonts type1-fonts unicode v4l vcd vorbis wifi x264 x86 xcomposite xinerama xml xorg xprint xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="synaptics keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="vesa fglrx fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-libs/libmp3splt-0.5.6 was built with the following:
USE=""
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-04-28 07:14:32 UTC
Try 2.2.8 that was just added to portage. It builds and works here.