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)



> 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
-I/usr/local/pkgsrc/pkgsrc-cvs/gcc34/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
-I/usr/local/pkgsrc/pkgsrc-cvs/gcc34/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
-I/usr/local/pkgsrc/pkgsrc-cvs/gcc34/include
-I/usr/local/pkgsrc/pkgsrc-cvs/include/freetype2  -include
../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/jemalloc.pp
jemalloc.c
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

http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Thread-Local.html

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:1.9.0.5) Gecko/2008121810
Firefox/3.0.5

This means, I can now install this package completely automated via
pkg_chk. Great work, many thanks!

-- 
Joern Clausen
joernc%gmail.com@localhost
http://www.oe-files.de/oefiles/
http://thebloeg.blogspot.com/


Home | Main Index | Thread Index | Old Index