Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235147 - media-gfx/graphviz-2.20.2 fails to compile on prefixed Mac OS X
Summary: media-gfx/graphviz-2.20.2 fails to compile on prefixed Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High major (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 22:33 UTC by Michał Bartoszkiewicz
Modified: 2008-08-20 18:20 UTC (History)
0 users

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 Michał Bartoszkiewicz 2008-08-18 22:33:51 UTC
Emerging media-gfx/graphviz-2.20.2 fails with:
/bin/sh ../../libtool --tag=CC   --mode=link i686-apple-darwin9-gcc  -O2 -pipe -march=nocona -fno-common -Wall -version-info 4:0:0 -no-undefined -L/Volumes/Gentoo/usr/lib -o libgvc.la -rpath /Volumes/Gentoo/usr/lib gvrender.lo gvlayout.lo gvdevice.lo gvloadimage.lo gvcontext.lo gvjobs.lo gvevent.lo gvplugin.lo gvconfig.lo gvtextlayout.lo gvusershape.lo gvc.lo no_builtins.lo demand_loading.lo ../../lib/common/libcommon_C.la ../../lib/pack/libpack_C.la ../../lib/cdt/libcdt.la ../../lib/graph/libgraph.la ../../lib/pathplan/libpathplan.la /usr/lib/libexpat.la -lexpat  -lz -lm ../../libltdl/libltdlc.la -Wl,-unexported_symbol,_lt_*  -lz -lm
libtool: link: cannot find the library `../../libltdl/libltdlc.la' or unhandled argument `../../libltdl/libltdlc.la'
make[3]: *** [libgvc.la] Error 1
make[3]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/media-gfx/graphviz-2.20.2/work/graphviz-2.20.2/lib/gvc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/media-gfx/graphviz-2.20.2/work/graphviz-2.20.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/media-gfx/graphviz-2.20.2/work/graphviz-2.20.2'
make: *** [all] Error 2


emerge --info:
Portage 2.2.00.11421-prefix (default-prefix/darwin/macos/10.5/x86, gcc-4.0.1, unavailable, 9.4.0 i386)
=================================================================
System uname: Darwin-9.4.0-i386-32bit
Timestamp of tree: Mon, 18 Aug 2008 21:09:02 +0000
distcc 2.18.5-Apple.1 powerpc-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.9.6-r2, 1.10.1-r1
sys-devel/gcc-config: 1.4.0-r04.5
sys-devel/libtool:   1.5.26
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/Volumes/Gentoo/usr/portage/distfiles"
EPREFIX="/Volumes/Gentoo"
FEATURES="ccache collision-protect distlocks nostrip parallel-fetch preserve-libs sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LDFLAGS=""
PKGDIR="/Volumes/Gentoo/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="/Volumes/Gentoo/var/tmp"
PORTDIR="/Volumes/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Volumes/Gentoo/usr/local/portage"
SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay"
USE="X aac aqua bash-completion bzip2 cairo cddb coreaudio curl dvd ftp gif gmp graphviz iconv ipv6 jpeg jpeg2k lzo mad mmx mp2 mp3 ncurses neon objc objc++ ogg pcre perl png pnm prefix python quicktime readline speex spell sqlite sse ssl subversion svg tga theora tiff truetype unicode urandom vim-syntax vorbis webdav x264 x86-macos xml xvid 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, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-08-20 16:07:54 UTC
(In reply to comment #0)

> libtool: link: cannot find the library `../../libltdl/libltdlc.la' or unhandled
> argument `../../libltdl/libltdlc.la'
> make[3]: *** [libgvc.la] Error 1
> make[3]: Leaving directory

Ugh, what is with all these bugs that only appear on macos. </rant>

Long story short, works for me on linux but I found this intersting:

lib/gvc/Makefile:
AM_CPPFLAGS = \
    -I$(top_srcdir) \
    -I$(top_srcdir)/lib/common \
    -I$(top_srcdir)/lib/pathplan \
    -I$(top_srcdir)/lib/graph \
    -I$(top_srcdir)/lib/cdt \
    $(INCLTDL) -I$(top_srcdir)/libltdl \
    -DGVLIBDIR=\"$(pkglibdir)\"   

Notice the libltdl bit in there ^^ That doesn't exist in ${S} because of the below bit:

In the ebuild:
    # This is an old version of libtool
    rm -rf libltdl
    sed -i -e '/libltdl/d' configure.ac || die

SO, my conclusion is that apple libtool is freaking out and not doing something right. grobian: please provide input. thx.
Comment 2 Fabian Groffen gentoo-dev 2008-08-20 16:14:13 UTC
The thing is it is linking to liblibtooldynamicloaderc or something (libltdlc), the question is why isn't that file found.  I thought I fixed such thing before.

Apple libtool is hopefully NOT involved, because then everything breaks down.
Comment 3 Michał Bartoszkiewicz 2008-08-20 17:07:49 UTC
cofigure.ac contains:
  if test "x$DARWIN9" = "xyes"; then
     AC_LIBLTDL_CONVENIENCE
     LIBLTDL="$LIBLTDL -Wl,-unexported_symbol,_lt_*"
  else
     AC_LIBLTDL_INSTALLABLE
  fi
So it does something differently on Mac OS -- and probably removing libltdl interferes with that.
Comment 4 Fabian Groffen gentoo-dev 2008-08-20 17:12:05 UTC
that explains why it works for me, which means it should just work for you if you sed -i -e 's/\$DARWIN9/forgetit/' configure.ac

Can you try that little workaround, then I'll commit it?
Comment 5 Michał Bartoszkiewicz 2008-08-20 17:38:45 UTC
It compiles fine with this change and seems to work.
But this workaround worries me a little -- there must be some reason for the if...
Comment 6 Fabian Groffen gentoo-dev 2008-08-20 18:20:09 UTC
Yes and no.  We have a slightly different environment, but it wouldn't be the first time some upstream think they do something good, which turns out bad.