Subject: Re: pkg/32753
To: None <darwin-pkg-people@netbsd.org, gnats-admin@netbsd.org,>
From: Idar Tollefsen <idart@performancedesign.no>
List: pkgsrc-bugs
Date: 02/06/2006 02:10:02
The following reply was made to PR pkg/32753; it has been noted by GNATS.
From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/32753
Date: Mon, 06 Feb 2006 02:56:44 +0100
This is a multi-part message in MIME format.
--------------060905000708070807000208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Actually, scratch that patch. It worked fine on my system, but when
transfered to another system, it started to spit out these messages:
dyld: Symbol not found: _feenableexcept
Referenced from: /usr/pkg/bin/dot
Expected in: dynamic lookup
Attached is the NSGetEnviron() solution I was talking about in the form
of a patch against lib/ast/pathpath.c. This solves the initial problem
of the unresolved _environ symbol, but the build fails later with the
following:
gcc -pipe -dynamiclib -o .libs/libgvplugin_usershape_gd.1.0.0.dylib
.libs/gvplugin_usershape_gd.o .libs/gvusershape_gd.o
-L/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib
-L/usr/pkg/pkgsrc/graphics/graphviz/work/.x11-buildlink/lib
../../lib/gd/.libs/libgvgd.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libfontconfig.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libfreetype.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libexpat.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libjpeg.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libpng.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libiconv.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libintl.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libc.dylib
/usr/lib/libiconv.dylib -mabi=altivec -maltivec -mtune=G4 -mcpu=7450
-install_name /usr/pkg/lib/graphviz/libgvplugin_usershape_gd.1.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
ld: Undefined symbols:
_Dttree
_agerr
_dtclose
_dtopen
_gmalloc
_safefile
/usr/bin/libtool: internal link edit command failed
*** Error code 1
Stop.
bmake: stopped in
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/plugin
*** Error code 1
I have not found a solution for these yet.
--------------060905000708070807000208
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="patch-lib:ast:pathpath.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-lib:ast:pathpath.c"
--- lib/ast/pathpath.c.orig 2006-02-06 00:45:47.000000000 +0100
+++ lib/ast/pathpath.c 2006-02-06 00:55:13.000000000 +0100
@@ -33,7 +33,12 @@
#include <unistd.h>
/* #include <option.h> */
+#if defined(__APPLE__) && defined(__MACH__)
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
extern char **environ;
+#endif
char **opt_info_argv;
char *pathpath(register char *path, const char *p, const char *a, int mode)
--------------060905000708070807000208--