[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [bug #46161] make check fails due to missing library in tests
From: |
anonymous |
Subject: |
[Bug-wget] [bug #46161] make check fails due to missing library in tests/Makefile link command |
Date: |
Thu, 08 Oct 2015 20:03:58 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?46161>
Summary: make check fails due to missing library in
tests/Makefile link command
Project: GNU Wget
Submitted by: None
Submitted on: Thu 08 Oct 2015 08:03:57 PM UTC
Category: Build/Install
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name: Kevin Rodgers
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 1.16
Operating System: GNU/Linux
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: Yes
_______________________________________________________
Details:
Here is the relevant output from "make check":
Making check in tests
make[2]: Entering directory `/tmp/wget-1.16/tests'
make unit-tests
make[3]: Entering directory `/tmp/wget-1.16/tests'
cd ../src && make libunittest.a
make[4]: Entering directory `/tmp/wget-1.16/src'
make[4]: `libunittest.a' is up to date.
make[4]: Leaving directory `/tmp/wget-1.16/src'
gcc -g -O2 -o unit-tests ../src/libunittest.a ../lib/libgnu.a -lz -luuid
-lz -luuid
../src/libunittest.a(libunittest_a-ptimer.o)(.text+0x34): In function
`posix_init':
/tmp/wget-1.16/src/ptimer.c:145: undefined reference to `clock_getres'
../src/libunittest.a(libunittest_a-ptimer.o)(.text+0x14e): In function
`ptimer_reset':
/tmp/wget-1.16/src/ptimer.c:169: undefined reference to `clock_gettime'
../src/libunittest.a(libunittest_a-ptimer.o)(.text+0x18d): In function
`ptimer_measure':
/tmp/wget-1.16/src/ptimer.c:169: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[3]: *** [unit-tests] Error 1
make[3]: Leaving directory `/tmp/wget-1.16/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/tmp/wget-1.16/tests'
And here is the patch to fix it:
--- tests/Makefile.orig 2015-10-07 16:29:44.000000000 -0600
+++ tests/Makefile 2015-10-07 16:50:02.000000000 -0600
@@ -1546,7 +1546,7 @@
unit-tests$(EXEEXT): $(unit_tests_OBJECTS) $(unit_tests_DEPENDENCIES)
$(EXTRA_unit_tests_DEPENDENCIES)
@rm -f unit-tests$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(unit_tests_OBJECTS) $(unit_tests_LDADD) $(LIBS)
+ $(AM_V_CCLD)$(LINK) $(unit_tests_OBJECTS) $(unit_tests_LDADD) $(LIBS)
$(LIB_CLOCK_GETTIME)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46161>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-wget] [bug #46161] make check fails due to missing library in tests/Makefile link command,
anonymous <=