Building gtk-2.6.9: problem and solution
Kris Kennaway
kris at obsecurity.org
Thu Aug 11 00:43:36 GMT 2005
On Thu, Aug 11, 2005 at 10:26:44AM +1000, lukem.freebsd at cse.unsw.edu.au wrote:
> I've been having trouble with portupgrade not succeeding with upgrading
> gtk for a while, and this morning I figured out why. I noticed a lot of
> people with similar compile issues when googling, so I figured one post
> here might save others some time in the future.
>
> The compile would fail with:
> cc -O -pipe -mcpu=pentiumpro -Wall -o timescale timescale.o
> -L/usr/local/lib -L/usr/X11R6/lib ./.libs/libpixops.a -lglib-2.0 -liconv
> -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lm -lintl
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_destroy'
>
> And similar for a bunch of pthread functions.
>
> Listing the symbols in /usr/local/lib/libgthread-2.0.so using nm showed
> that indeed, they were not defined.
>
> Anyway, to cut a long story short, if you link with -pthread as well as
> libgthread, things will build properly.
>
> So, build with "make CFLAGS=-pthread" instead of just "make".
>
> Perhaps a port maintainer would like to make this default behaviour, or
> perhaps my libgthread should have been built differently.
>
> I tried rebuilding glib-2.6.6 to make sure it wasn't the problem.
> Interestingly my AMD-64 box which is also maintained with cvsup and
> portupgrade did not encounter the same problem.
This sounds weird and should of course not be necessary..probably
something else is wrong, but I don't know what it might be.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050810/35cc8c5a/attachment.bin
More information about the freebsd-ports
mailing list