pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39085 (firefox3 compile problem: undefined symbol main)

The following reply was made to PR pkg/39085; it has been noted by GNATS.

From: "=?ISO-8859-1?Q?J=F6rn_Clausen?=" <>
Subject: Re: pkg/39085 (firefox3 compile problem: undefined symbol main)
Date: Thu, 18 Dec 2008 12:16:15 +0100

 > All of the reported problems should be fixed with firefox-3.0.5nb1,
 > please try this.
 I still get
 gcc -o jemalloc.o -c  -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS  -I. -I.
 -I../../dist/include   -I../../dist/include/jemalloc
 -I../../dist/include/nspr -I/usr/local/pkgsrc/pkgsrc-cvs/include
 -I../../dist/sdk/include    -fPIC
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/python2.4 -I/usr/include
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/freetype2  -Wno-long-long -O
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/python2.4 -I/usr/include
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/freetype2 -fno-strict-aliasing
 -pthreads  -DNDEBUG -DTRIMMED -O2
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/python2.4 -I/usr/include
 -I/usr/local/pkgsrc/pkgsrc-cvs/include/freetype2  -include
 ../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/jemalloc.pp
 jemalloc.c:1029: error: thread-local storage not supported for this target
 The offending line is
 static __thread arena_t *arenas_map;
 My gcc does not like the "__thread" keyword.
 Tim Zingelman had the opposite experience, but supposedly with the
 same setup (Solaris 10, lang/gcc34, Solaris linker). He pointed me to
 this page
 I have no idea, when and how GCC decides, if __thread is supported or
 not (at compile time of GCC, or at runtime). When I compile the
 package with "PKG_DEFAULT_OPTIONS=-mozilla-jemalloc", everything
 compiles and installs flawlessly. And it works :)
 Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/2008121810
 This means, I can now install this package completely automated via
 pkg_chk. Great work, many thanks!
 Joern Clausen

Home | Main Index | Thread Index | Old Index