Subject: pkg/32959: Thunderbird fails to compile on OS X because of a missing link to glib in libmailcomps.dylib
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <alex@foxybanana.com>
List: pkgsrc-bugs
Date: 03/01/2006 04:55:00
>Number:         32959
>Category:       pkg
>Synopsis:       Thunderbird fails to compile on OS X because of a missing link to glib in libmailcomps.dylib
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 01 04:55:00 +0000 2006
>Originator:     Alexander Botero-Lowry
>Release:        Darwin 8.0.1
>Organization:
>Environment:
Darwin c028h119.dorm.reed.edu 8.0.1 Darwin Kernel Version 8.0.1: Fri Apr 29 12:15:33 PDT 2005; root:xnu-792.obj/RELEASE_PPC Power Macintosh powerpc
>Description:
Basically when Thunderbird gets to compiling libmailcomps.dylib it fails like this:

g++ -no-cpp-precomp -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/xorg/include -I/usr/include -I/usr/pkg/include/freetype2  -I/usr/pkg/xorg/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/xorg/include -I/usr/include -I/usr/pkg/include/freetype2 -fpascal-strings -no-cpp-precomp -fno-common -fshort-wchar -pipe  -DNDEBUG -DTRIMMED -O2 -fPIC -arch ppc -o libmailcomps.dylib  nsModule.o  nsProfileMigrator.o nsMailProfileMigratorUtils.o nsNetscapeProfileMigratorBase.o nsSeamonkeyProfileMigrator.o nsDogbertProfileMigrator.o nsMailGNOMEIntegration.o  -L/usr/pkg/lib/thunderbird -L/usr/pkg/xorg/lib -L/usr/pkg/lib -L/usr/lib  -Wl,-dead_strip -L../../../dist/bin -L../../../dist/lib  -L../../../dist/lib -lxpcom_compat -L../../../dist/bin -lxpcom -lxpcom_core -L../../../dist/bin -L../../../dist/lib -lplds4 -lplc4
  -lnspr4 -L/usr/pkg/lib/thunderbird -L/usr/pkg/xorg/lib -L/usr/pkg/lib -L/usr/lib   -bundle -lm -lintl -liconv   
ld: warning -L: directory name (/usr/pkgsrc/mail/thunderbird/work/.buildlink/lib/thunderbird) does not exist
ld: Undefined symbols:
_g_filename_from_utf8
_g_find_program_in_path
_g_free
_g_shell_parse_argv
_g_strfreev
make[4]: *** [libmailcomps.dylib] Error 1


>How-To-Repeat:
Compile thunderbird from pkgsrc on Darwin
>Fix:
should just require that one add -lglib to the LIBS for the libraries.