Bug 825153 - srpm rebuild fails
srpm rebuild fails
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: numad (Show other bugs)
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Jan Synacek
: EasyFix, Patch
Depends On:
Blocks: 836160 830919
  Show dependency treegraph
Reported: 2012-05-25 05:02 EDT by Ales Zelinka
Modified: 2013-02-21 03:57 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-02-21 03:57:28 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
[Patch] Remove -lpthread from Makefile (209 bytes, patch)
2012-09-11 02:41 EDT, Jan Synacek
no flags Details | Diff

  None (edit)
Description Ales Zelinka 2012-05-25 05:02:10 EDT
Description of problem:
The -lpthread from Makefile's
numad: numad.o -lpthread

causes this error on some x64_64 machines:
+ export LANG
+ unset DISPLAY
+ make 'CFLAGS=-std=gnu99 -g' LDFLAGS=-lpthread
Makefile:61: .depend: No such file or directory
cc -MM -DDEPS_RUN -I. numad.c > .depend.X && mv .depend.X .depend
cc -std=gnu99 -g -I. -D__thread=""   -c -o numad.o numad.c
cc -lpthread  numad.o /usr/lib/libpthread.so   -o numad
/usr/bin/ld: skipping incompatible /lib/libpthread.so.0 when searching for /lib/libpthread.so.0
/usr/bin/ld: cannot find /lib/libpthread.so.0
collect2: ld returned 1 exit status
make: *** [numad] Error 1

Version-Release number of selected component (if applicable):

How reproducible:
on some machines, not sure what's the difference

Additional info:
-lpthread is also added via spec file, the makefile one isn't necessary
Comment 1 Petr Holasek 2012-09-05 09:12:45 EDT
I've got the same error with raw git repo 334278ff3d774 from fedorahosted.org on F17. Suprisingly, fedpkg scratch-build was completed successfully.
Comment 2 Jan Synacek 2012-09-11 02:41:38 EDT
Created attachment 611666 [details]
[Patch] Remove -lpthread from Makefile

Remove -lpthread from Makefile so the flag only gets added from the specfile.
Comment 12 errata-xmlrpc 2013-02-21 03:57:28 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.