Project

General

Profile

Bug #2741

Compile error: undefined reference to `clock_gettime'

Added by kgkg almost 3 years ago. Updated almost 3 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
build_cmake
Target version:
Start date:
2016-07-22
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

After I run make in 1.4.40 I get following errors:
lighttpd-connections.o: In function `connection_handle_read_state':
/usr/src/lighttpd-1.4.40/src/connections.c:695: undefined reference to `clock_gettime'
lighttpd-connections.o: In function `connection_state_machine':
/usr/src/lighttpd-1.4.40/src/connections.c:1003: undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status
make3: * [lighttpd] Error 1
make3: Leaving directory `/usr/src/lighttpd-1.4.40/src'
make2:
[all] Error 2
make2: Leaving directory `/usr/src/lighttpd-1.4.40/src'
make1:
[all-recursive] Error 1
make1: Leaving directory `/usr/src/lighttpd-1.4.40'
make: *
[all] Error 2

Addintional info:
- system: Debian 7.11 (most recent update)
- There are no errors in ./configure.
- I checked for librt library:
root@m5219:/usr/src/lighttpd-1.4.40# find / name librt.so
/usr/lib/x86_64-linux-gnu/librt.so
previous version 1.4.39 compiled without any errors.

History

#1

Updated by kgkg almost 3 years ago

Ouput of libtool command before error:

libtool: link: gcc -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o lighttpd lighttpd-server.o lighttpd-response.o lighttpd-connections.o lighttpd-network.o lighttpd-configfile.o lighttpd-configparser.o lighttpd-request.o lighttpd-proc_open.o lighttpd-base64.o lighttpd-buffer.o lighttpd-log.o lighttpd-keyvalue.o lighttpd-chunk.o lighttpd-http_chunk.o lighttpd-stream.o lighttpd-fdevent.o lighttpd-stat_cache.o lighttpd-plugin.o lighttpd-joblist.o lighttpd-etag.o lighttpd-array.o lighttpd-data_string.o lighttpd-data_count.o lighttpd-data_array.o lighttpd-data_integer.o lighttpd-md5.o lighttpd-data_fastcgi.o lighttpd-vector.o lighttpd-fdevent_select.o lighttpd-fdevent_libev.o lighttpd-fdevent_poll.o lighttpd-fdevent_linux_sysepoll.o lighttpd-fdevent_solaris_devpoll.o lighttpd-fdevent_solaris_port.o lighttpd-fdevent_freebsd_kqueue.o lighttpd-data_config.o lighttpd-inet_ntop_cache.o lighttpd-crc32.o lighttpd-connections-glue.o lighttpd-configfile-glue.o lighttpd-http-header-glue.o lighttpd-network_write.o lighttpd-network_linux_sendfile.o lighttpd-network_write_mmap.o lighttpd-network_write_no_mmap.o lighttpd-network_freebsd_sendfile.o lighttpd-network_writev.o lighttpd-network_solaris_sendfilev.o lighttpd-network_openssl.o lighttpd-splaytree.o lighttpd-status_counter.o lighttpd-safe_memclear.o lighttpd-network_darwin_sendfile.o -Wl,--export-dynamic  -L/usr/lib/x86_64-linux-gnu -lpcre -ldl

#2

Updated by gstrauss almost 3 years ago

  • Status changed from New to Fixed
  • Target version changed from 1.4.x to 1.4.41

Yes, sorry. This has been fixed in 4d920466 and 1ebc83f11 and will be part of lighttpd 1.4.41

Also available in: Atom