After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 567913 - Unrecognized argument in LIBS ignored: '-pthread'
Unrecognized argument in LIBS ignored: '-pthread'
Status: RESOLVED INCOMPLETE
Product: gnome-perl
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2009-01-15 21:40 UTC by John Chain
Modified: 2018-09-21 16:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description John Chain 2009-01-15 21:40:28 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
Comment 1 John Chain 2009-01-15 21:48:07 UTC
I met the same problem when I was installed Goo::Canvas.

Thanks,
Cheng
Comment 2 John Chain 2009-01-15 21:55:11 UTC
I didn't see any problem with Gnome2::Wnck

Thanks,
Cheng
Comment 3 Torsten Schoenfeld 2009-01-18 15:29:50 UTC
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.
  ...
Comment 4 John Chain 2009-01-18 16:50:05 UTC
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
Comment 5 André Klapper 2018-08-27 12:02:52 UTC
Nine years later, is this still a problem? 
If so, which versions are you running?
Comment 6 André Klapper 2018-09-21 16:46:07 UTC
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!