On Mon, Aug 28, 2006 at 04:17:51AM +0100, Mikolaj Kucharski wrote:
> On Mon, Aug 28, 2006 at 03:15:47AM +0100, Mikolaj Kucharski wrote:
> > On Fri, Aug 11, 2006 at 04:20:12PM +0200, Adriaan Misc wrote:
> > > Under Gnome gimp dumps core on saving an image.
> > >
> > > --------error message --------
> > > gimp:/usr/local/lib/libgthread-2.0.so.1000.3: undefined symbol
> > > 'pthread_mutex_trylock'
> > > lazy binding failed!
> > >
> > > (script-fu:16248): LibGimpBase-WARNING **: script-fu: wire_read(): error
> > >
> > > [1] + Segmentation fault gimp (core dumped)
> > > -------- end of error message ----------
> >
> > I can confirm that I have the same behaviour.
>
> After I applayed attached patch to gtk+2 port I don't have undefined
> symbol errors from
>
> /usr/local/bin/gdk-pixbuf-query-loaders
>
> between gtk+2 @exec's. This however doesn't resolve problem with gimp. I
> just want to ask am I going in good direction with resolution for this
> problem? Should I recompile gimp with -pthread like gtk+2?
>
> Problem is related to gnome-vfs2. I think gtk+2 is trying to load
>
> /usr/local/lib/gtk-2.0/2.4.0/filesystems/libgnome-vfs.so
>
> which uses -pthread and gimp doesn't. So add -pthrad to LDFLAGS and
> CPPFLAGS like in gtk+2?
When I recompiled gimp with attached patch (similar to gtk+2) problem
with undefined symbol and segmentation fault disapears. Any comments,
please?
--
best regards
q#
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/gimp/stable/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile 2006/08/03 19:56:08 1.17
+++ Makefile 2006/08/28 03:56:21
@@ -3,6 +3,7 @@
COMMENT= "GNU Image Manipulation Program"
DISTNAME= gimp-2.2.12
+PKGNAME= ${DISTNAME}p0
SHARED_LIBS= gimp-2.0 200.12 \
gimpbase-2.0 200.12 \
gimpcolor-2.0 200.12 \
@@ -41,7 +42,7 @@
WANTLIB= ICE SM X11 Xext Xmu Xpm Xrender Xt atk-1.0.0.0 c \
fontconfig freetype glib-2.0.0.0 gmodule-2.0.0.0 \
gobject-2.0.0.0 jpeg.>=62 lcms.>=1 m pango-1.0.0.0 \
- pangocairo-1.0.0.0 pangoft2-1.0.0.0 png.>=4 \
+ pangocairo-1.0.0.0 pangoft2-1.0.0.0 png.>=4 pthread \
ncurses xml2 z cairo glitz
MODULES= devel/gettext
@@ -56,8 +57,8 @@
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --disable-print --without-gtkhtml2 --without-librsvg \
--disable-sse
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
-I${X11BASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
-I${X11BASE}/include -pthread" \
+ LDFLAGS="-L${LOCALBASE}/lib -pthread"
FLAVORS= altivec
FLAVOR?=