Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73708 - dev-libs/glib-2.4.8 fails to build using pthreads
Summary: dev-libs/glib-2.4.8 fails to build using pthreads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 12:40 UTC by Nick Dimiduk (RETIRED)
Modified: 2006-04-12 10:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,112.15 KB, text/plain)
2004-12-07 12:42 UTC, Nick Dimiduk (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Dimiduk (RETIRED) gentoo-dev 2004-12-07 12:40:34 UTC
I'll attach my config.log.  Here's the last of the output:

gcc: unrecognized option `-pthreads'
ld: can't locate file for: -lpthreads
make[4]: *** [child-test] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
Comment 1 Nick Dimiduk (RETIRED) gentoo-dev 2004-12-07 12:42:27 UTC
Created attachment 45460 [details]
config.log
Comment 2 Kito (RETIRED) gentoo-dev 2004-12-07 13:13:55 UTC
First odd thing is that it doesnt seem to be picking up arch/machine:

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
[...]
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
[...]


But anyway, in darwin libpthreads.dylib is just a symlink as the pthread symbols are rolled into libSystem. You might try replacing '-pthreads with -lSystem or possibly -framework System.If you get symbol errors/warning, do man dylib and test the other options, i.e. -dynamic dynamic_load or something similar, 

 Even if it builds, darwin pthreads is pretty skinny compared to linux, so it'll be hit or miss if it actually works. Using this method I did get pthread support in ecasound working though, so its worth a shot.
Comment 3 Lina Pezzella (RETIRED) gentoo-dev 2005-02-03 15:18:19 UTC
kito: taking a look at 'configure', this would take a lot of patching to get working properly.
On my system, this error doesn't cause the ebuild to fail. Is there even a value in getting the
"skinny" darwin version of pthreads working with this?
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-02-12 17:09:13 UTC
Fixed in CVS.