GNOME Bugzilla – Bug 567913
Unrecognized argument in LIBS ignored: '-pthread'
Last modified: 2018-09-21 16:46:07 UTC
Hi guys, When I tried to install Gnome2::GConf from CPAN, I saw the following error message: Including generated API documentation... Unrecognized argument in LIBS ignored: '-pthread' Writing Makefile for Gnome2::GConf I couldn't make the package until I replaced -pthread with -lpthread in Makefile. I think it's a minor bug. Please correct me if I'm wrong. Thanks, Cheng
I met the same problem when I was installed Goo::Canvas. Thanks, Cheng
I didn't see any problem with Gnome2::Wnck Thanks, Cheng
When you say you "couldn't make the package until I replaced -pthread with -lpthread in Makefile", do you mean that compilation or linking fails without this change? What's the exact error message? This happens because ExtUtils::MakeMaker (the module we use for generating the Makefile) strips any linker flags it doesn't know, among which is -pthread. So the real fix would be for ExtUtils::MakeMaker to not strip this flag. Simply replacing -pthread by -lpthread works around this problem (since EU::MM recognizes -l<...> flags), but is not a real solution since, according to the gcc man page: -pthread ... This option sets flags for both the preprocessor and linker. ...
Yes, the compilation or linking fails without the change. I'm now pretty sure the bug is from ExtUtils::Maker. EU::MM may be right to generate -pthread, but my gcc-4.3 on openSUSE-11.1 didn't recognize it. It's possibly the openSUSE's bug, who knows. Thanks, Cheng
Nine years later, is this still a problem? If so, which versions are you running?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!