Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111504 - Problem while emerge media-gfx/graphviz-2.6
Summary: Problem while emerge media-gfx/graphviz-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 13:52 UTC by Dirk Schoenberger
Modified: 2006-04-12 10:53 UTC (History)
1 user (show)

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


Attachments
graphviz-2.6-macos.patch (graphviz-2.6-macos.patch,519 bytes, patch)
2005-11-04 13:57 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2005-11-04 13:52:37 UTC
While trying to emerge media-gfx/graphviz-2.6 I ran ito the following problem

(cd .libs/libexpr.lax/libsfio.a && ar x /var/tmp/portage/graphviz-2.6/work/graphviz-2.6/lib/
expr/../../lib/sfio/.libs/libsfio.a)
rm -fr .libs/libexpr.lax/libvmalloc.a
mkdir -p .libs/libexpr.lax/libvmalloc.a
Extracting /var/tmp/portage/graphviz-2.6/work/graphviz-2.6/lib/expr/../../lib/vmalloc/.libs/
libvmalloc.a
(cd .libs/libexpr.lax/libvmalloc.a && ar x /var/tmp/portage/graphviz-2.6/work/graphviz-2.6/lib/
expr/../../lib/vmalloc/.libs/libvmalloc.a)
gcc -dynamiclib  -o .libs/libexpr.1.0.0.dylib  .libs/excc.o .libs/excontext.o .libs/exdata.o .libs/
exerror.o .libs/exeval.o .libs/exexpr.o .libs/exlexname.o .libs/exopen.o .libs/exrewind.o .libs/
extoken.o .libs/extype.o .libs/exzero.o .libs/exparse.o  .libs/libexpr.lax/libast.a/chresc.o .libs/
libexpr.lax/libast.a/chrtoi.o .libs/libexpr.lax/libast.a/error.o .libs/libexpr.lax/libast.a/fmtbuf.o .libs/
libexpr.lax/libast.a/fmtesc.o .libs/libexpr.lax/libast.a/pathaccess.o .libs/libexpr.lax/libast.a/pathbin.o 
.libs/libexpr.lax/libast.a/pathcanon.o .libs/libexpr.lax/libast.a/pathcat.o .libs/libexpr.lax/libast.a/
pathexists.o .libs/libexpr.lax/libast.a/pathfind.o .libs/libexpr.lax/libast.a/pathgetlink.o .libs/
libexpr.lax/libast.a/pathpath.o .libs/libexpr.lax/libast.a/strcopy.o .libs/libexpr.lax/libast.a/
strerror.o .libs/libexpr.lax/libast.a/stresc.o .libs/libexpr.lax/libast.a/strmatch.o .libs/libexpr.lax/
libast.a/strton.o  .libs/libexpr.lax/libsfio.a/sfclose.o .libs/libexpr.lax/libsfio.a/sfclrlock.o .libs/
libexpr.lax/libsfio.a/sfcvt.o .libs/libexpr.lax/libsfio.a/sfdisc.o .libs/libexpr.lax/libsfio.a/sfdlen.o .libs/
libexpr.lax/libsfio.a/sfexcept.o .libs/libexpr.lax/libsfio.a/sfexit.o .libs/libexpr.lax/libsfio.a/
sfextern.o .libs/libexpr.lax/libsfio.a/sffcvt.o .libs/libexpr.lax/libsfio.a/sffilbuf.o .libs/libexpr.lax/
libsfio.a/sfflsbuf.o .libs/libexpr.lax/libsfio.a/sfgetd.o .libs/libexpr.lax/libsfio.a/sfgetl.o .libs/
libexpr.lax/libsfio.a/sfgetm.o .libs/libexpr.lax/libsfio.a/sfgetr.o .libs/libexpr.lax/libsfio.a/
sfgetu.o .libs/libexpr.lax/libsfio.a/sfllen.o .libs/libexpr.lax/libsfio.a/sfmode.o .libs/libexpr.lax/
libsfio.a/sfmove.o .libs/libexpr.lax/libsfio.a/sfmutex.o .libs/libexpr.lax/libsfio.a/sfnew.o .libs/
libexpr.lax/libsfio.a/sfnotify.o .libs/libexpr.lax/libsfio.a/sfnputc.o .libs/libexpr.lax/libsfio.a/
sfopen.o .libs/libexpr.lax/libsfio.a/sfpkrd.o .libs/libexpr.lax/libsfio.a/sfpoll.o .libs/libexpr.lax/
libsfio.a/sfpool.o .libs/libexpr.lax/libsfio.a/sfpopen.o .libs/libexpr.lax/libsfio.a/sfprintf.o .libs/
libexpr.lax/libsfio.a/sfprints.o .libs/libexpr.lax/libsfio.a/sfpurge.o .libs/libexpr.lax/libsfio.a/
sfputd.o .libs/libexpr.lax/libsfio.a/sfputl.o .libs/libexpr.lax/libsfio.a/sfputm.o .libs/libexpr.lax/
libsfio.a/sfputr.o .libs/libexpr.lax/libsfio.a/sfputu.o .libs/libexpr.lax/libsfio.a/sfraise.o .libs/
libexpr.lax/libsfio.a/sfrd.o .libs/libexpr.lax/libsfio.a/sfread.o .libs/libexpr.lax/libsfio.a/
sfreserve.o .libs/libexpr.lax/libsfio.a/sfresize.o .libs/libexpr.lax/libsfio.a/sfscanf.o .libs/libexpr.lax/
libsfio.a/sfseek.o .libs/libexpr.lax/libsfio.a/sfset.o .libs/libexpr.lax/libsfio.a/sfsetbuf.o .libs/
libexpr.lax/libsfio.a/sfsetfd.o .libs/libexpr.lax/libsfio.a/sfsize.o .libs/libexpr.lax/libsfio.a/sfsk.o .libs/
libexpr.lax/libsfio.a/sfstack.o .libs/libexpr.lax/libsfio.a/sfstrtod.o .libs/libexpr.lax/libsfio.a/
sfswap.o .libs/libexpr.lax/libsfio.a/sfsync.o .libs/libexpr.lax/libsfio.a/sftable.o .libs/libexpr.lax/
libsfio.a/sftell.o .libs/libexpr.lax/libsfio.a/sftmp.o .libs/libexpr.lax/libsfio.a/sfungetc.o .libs/
libexpr.lax/libsfio.a/sfvprintf.o .libs/libexpr.lax/libsfio.a/sfvscanf.o .libs/libexpr.lax/libsfio.a/
sfwr.o .libs/libexpr.lax/libsfio.a/sfwrite.o  .libs/libexpr.lax/libvmalloc.a/malloc.o .libs/libexpr.lax/
libvmalloc.a/vmbest.o .libs/libexpr.lax/libvmalloc.a/vmclear.o .libs/libexpr.lax/libvmalloc.a/vmclose.o 
.libs/libexpr.lax/libvmalloc.a/vmdcheap.o .libs/libexpr.lax/libvmalloc.a/vmdebug.o .libs/libexpr.lax/
libvmalloc.a/vmdisc.o .libs/libexpr.lax/libvmalloc.a/vmexit.o .libs/libexpr.lax/libvmalloc.a/
vmlast.o .libs/libexpr.lax/libvmalloc.a/vmopen.o .libs/libexpr.lax/libvmalloc.a/vmpool.o .libs/
libexpr.lax/libvmalloc.a/vmprivate.o .libs/libexpr.lax/libvmalloc.a/vmprofile.o .libs/libexpr.lax/
libvmalloc.a/vmregion.o .libs/libexpr.lax/libvmalloc.a/vmsegment.o .libs/libexpr.lax/libvmalloc.a/
vmset.o .libs/libexpr.lax/libvmalloc.a/vmstat.o .libs/libexpr.lax/libvmalloc.a/vmstrdup.o .libs/
libexpr.lax/libvmalloc.a/vmtrace.o .libs/libexpr.lax/libvmalloc.a/vmwalk.o   ../../lib/cdt/.libs/
libcdt.dylib -lc  -install_name  /usr/lib/graphviz/libexpr.1.dylib -Wl,-compatibility_version -Wl,2 -Wl,-
current_version -Wl,2.0
ld: Undefined symbols:
_environ
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libexpr.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

According to the log, the -no-undef patch is applied, but there still seem to be places where this flag is 
not used.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.3.0 Power 
Macintosh)
===============================================================
==
System uname: 8.3.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/
share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang 
tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Fabian Groffen gentoo-dev 2005-11-04 13:54:43 UTC
j4rg0n: didn't you fix this one?
Comment 2 Fabian Groffen gentoo-dev 2005-11-04 13:57:21 UTC
Created attachment 72135 [details, diff]
graphviz-2.6-macos.patch

I made a patch when trying to fix graphviz to get around the environ thing, but
stumbled upon numerous other bugs when fixing it.  Maybe it is of any use.
Comment 3 Dirk Schoenberger 2005-11-04 14:27:15 UTC
> I made a patch when trying to fix graphviz to get around the environ thing, but
> stumbled upon numerous other bugs when fixing it.  Maybe it is of any use.

With the pach graphviz emerges on my system

Possible problems / missing options left: 
- configure says something about missing fontconfig
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-11-09 13:12:11 UTC
Yes I thought I did. It compiles just fine here. I'm going to need some more info to try to reproduce this.
Comment 5 Fabian Groffen gentoo-dev 2005-11-09 13:56:12 UTC
reproducable for me.

Added environ patch which made it work for me and Dirk.