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

Bug 286005

Summary: media-libs/libopenraw-0.0.8 fails due to undeclared function
Product: Gentoo/Alt Reporter: Heiko <lil_tux>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: binki
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=24088
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix against current svn to fix the issue.

Description Heiko 2009-09-22 19:00:24 UTC
When compiling media-libs/libopenraw-0.0.8 it fails due to undeclared function get_current_dir_name() in testsuite/testsuite.cpp. This only happens for non-GNU targets like OSX and probably any BSD.

Reproducible: Always

Steps to Reproduce:
1.emerge media-libs/libopenraw
2.
3.

Actual Results:  
Making all in testsuite
  CC    testsuite.o
  CC    testsuitetags.o
  CC    testsuitehandler.o
  CC    xmlhandler.o
testsuite.cpp: In function 'int main(int, char**)':
testsuite.cpp:856: error: 'get_current_dir_name' was not declared in this scope
make[3]: *** [testsuite.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 * ERROR: media-libs/libopenraw-0.0.8 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh: 51: <call call-ebuildshell 'src_compile'>
 *             environment:105: <call src_compile>
 *             environment:175: <call _eapi2_src_compile>
 *               ebuild.sh:700: 		emake || die "emake failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

>>> Failed to emerge media-libs/libopenraw-0.0.8, Log file:


Expected Results:  
Complete merge.

Upstream report: https://bugs.freedesktop.org/show_bug.cgi?id=24088

emerge --info
Portage 2.2.00.14200-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.0.0 i386)
=================================================================
System uname: Darwin-10.0.0-i386-64bit
Timestamp of tree: Mon, 21 Sep 2009 08:30:25 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-lang/python:     2.6.2-r01.4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.9.6-r2, 1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.1
ACCEPT_KEYWORDS="~x64-macos"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -pipe -march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -momit-leaf-frame-pointer"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -momit-leaf-frame-pointer"
DISTDIR="/Volumes/Home/Heiko/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/Volumes/Home/Heiko/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Volumes/Home/Heiko/Gentoo/"
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="/Volumes/Home/Heiko/Gentoo/var/tmp"
PORTDIR="/Volumes/Home/Heiko/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Volumes/Home/Heiko/Development/GentooPrefixOverlay.git"
SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay"
USE="aqua bash-completion bzip2 cairo calendar cgi cleartype cli coreaudio cracklib crypt ctype curl dbus dirac encode exif extra-tools faac faad fastcgi ffmpeg filter flac gd gmp gstreamer gtk hash iconv id3tag imap ipv6 jpeg jpeg2k json lzo mad memcache mhash mmx mmxext mng mp3 mysql mysqli ncurses network objc objc++ ogg openexr opengl pcre phonon php png pnm posix prefix qt4 raw readline reflection schroedinger session smp sndfile sockets speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 subversion suhoshin svg tga theora threads tiff truetype twolame unicode vim-syntax vorbis webkit x64-macos xml xmlreader xsl xvid zip 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Heiko 2009-09-22 19:08:38 UTC
Created attachment 204961 [details, diff]
Fix against current svn to fix the issue.

The applied patch was provided to upstream as well.
Comment 2 Heiko 2009-09-22 19:14:58 UTC
After applying the patch the package can be keyworded ~x64-macos, if you like to (tested with testsuite on 10.6.1).
Comment 3 Fabian Groffen gentoo-dev 2010-12-11 11:12:17 UTC
this patch was in already for ages, but credited under bug #288051