On 17/5/02 10:53 AM, "Thomas Kotzian" <[EMAIL PROTECTED]> wrote:

> i want to port graphviz to fink. - But i get a compile error really late
> in the build process ...
> 
> i have tried to compile/link with  -undefined suppress -flat_namespace
> and -undefined error -twofold_namespace - both give the same error -
> when i remove -dynamiclib from the marked instruction it works, but it
> doesn't give a dynamic library ;->
> 
> do you know any trick or what i have to change to make libtool work??? i
> have tried libtool(1.3...) and libtool14 - both same result.
> 
> attached are the files for graphviz ...
> 
> 
> 
> here is a snapshot of the output ...
> 
> [snip]
> (cd .libs && rm -f libtclhandle.la && ln -s ../libtclhandle.la
> libtclhandle.la)
> /sw/src/graphviz-1.8.5-1/graphviz-1.8.5/tclhandle/.libs
> Making all in gdtclft
> Making all in demo
> make[3]: Für das Target »all« gibt es nichts zu tun.
> /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I..
> -DUSE_TCL_STUBS -I../tclhandle -I../gd -I/sw/include  -I/sw/include  -g
> -O2 -fno-common -Wall -Wno-unknown-pragmas -DNDEBUG -c gdtclft.c
> cc -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_TCL_STUBS -I../tclhandle -I../gd
> -I/sw/include -I/sw/include -g -O2 -fno-common -Wall
> -Wno-unknown-pragmas -DNDEBUG -c gdtclft.c  -fno-common -DPIC -o
> gdtclft.lo
> /bin/sh ../libtool --mode=link cc  -g -O2 -fno-common -Wall
> -Wno-unknown-pragmas -DNDEBUG -L/sw/lib -o libgdtclft.la -rpath
> /sw/lib/graphviz  gdtclft.lo ../tclhandle/libtclhandle.la ../gd/libgd.la
> ../tclstubs/libtclstubs.la -L/sw/lib -lfreetype -lpng -ljpeg  -lz -lc
> mkdir .libs
> rm -fr .libs/libgdtclft.la .libs/libgdtclft.* .libs/libgdtclft.*
> (cd . && ln -s gdtclft.lo gdtclft.o)
> 
> ---MARK---
> cc -dynamiclib -undefined suppress -flat_namespace -o
> .libs/libgdtclft.0.0.0.dylib  gdtclft.lo -all_load
> ../tclhandle/.libs/libtclhandle.al ../gd/.libs/libgd.al
> ../tclstubs/.libs/libtclstubs.al  -L/sw/lib
> ../tclhandle/.libs/libtclhandle.al ../gd/.libs/libgd.al -liconv -lm
> ../tclstubs/.libs/libtclstubs.al -lfreetype -lpng -ljpeg -lz -lc -lc
> -install_name  /sw/lib/graphviz/libgdtclft.0.dylib
> -compatibility_version 1 -current_version 1.0
> ---MARK---
> 
> ld: multiple definitions of symbol _tclhandleAlloc
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleAlloc in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleAlloc in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleDestroy
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleDestroy in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleDestroy in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleFree
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleFree in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleFree in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleFreeIndex
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleFreeIndex in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleFreeIndex in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleIndex
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleIndex in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleIndex in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleInit
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleInit in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleInit in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleReset
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleReset in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleReset in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclhandleString
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleString in section (__TEXT,__text)
> ../tclhandle/.libs/libtclhandle.al(tclhandle.lo) definition of
> _tclhandleString in section (__TEXT,__text)
> [snipped]
> ld: multiple definitions of symbol _Tcl_InitStubs
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _Tcl_InitStubs in section (__TEXT,__text)
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _Tcl_InitStubs in section (__TEXT,__text)
> ld: multiple definitions of symbol _tclIntPlatStubsPtr
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclIntPlatStubsPtr in section (__DATA,__common)
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclIntPlatStubsPtr in section (__DATA,__common)
> ld: multiple definitions of symbol _tclIntStubsPtr
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclIntStubsPtr in section (__DATA,__common)
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclIntStubsPtr in section (__DATA,__common)
> ld: multiple definitions of symbol _tclPlatStubsPtr
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclPlatStubsPtr in section (__DATA,__common)
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclPlatStubsPtr in section (__DATA,__common)
> ld: multiple definitions of symbol _tclStubsPtr
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclStubsPtr in section (__DATA,__common)
> ../tclstubs/.libs/libtclstubs.al(tclStubLib.lo) definition of
> _tclStubsPtr in section (__DATA,__common)
> /usr/bin/libtool: internal link edit command failed
> make[3]: *** [libgdtclft.la] Fehler 1
> make[2]: *** [all-recursive] Fehler 1
> make[1]: *** [all-recursive] Fehler 1
> make: *** [all-recursive-am] Fehler 2
> ### make failed, exit code 2
> Failed: compiling graphviz-1.8.5-1 failed
> 
> Please help!
> Thank you!
> 
> ThomasK.
> 

I tried porting graphviz a couple of weeks ago. I think I got past the
problem you had, but ran into some others...

Attached are the files I used (including a patch). Maybe you might be able
to work around the problems...

Attachment: graphviz.tar.gz
Description: Binary data

Reply via email to