Project

General

Profile

Bug #2737

1.4.40 compiling issuses on Debian Wheezy

Added by idfnet 7 months ago. Updated 7 months ago.

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

100%

Missing in 1.5.x:

Description

Trying to compile lighttpd 1.4.40 on Debian Wheezy results in the following error:

libtool: link: gcc -march=native -O2 -pipe -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 -lssl -lcrypto /usr/lib/libfam.so
lighttpd-connections.o: In function `connection_handle_read_state':
connections.c:(.text+0x399): undefined reference to `clock_gettime'
lighttpd-connections.o: In function `connection_state_machine':
connections.c:(.text+0x1e86): undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status

steps to reproduce:

on Debian 7.11 Wheezy (oldstable, amd64):

./configure --prefix=/opt/lighttpd --with-openssl --with-pcre --with-zlib --with-bzip2 --with-fam
make

fix:

export LDFLAGS="-lrt" 
./configure --prefix=/opt/lighttpd --with-openssl --with-pcre --with-zlib --with-bzip2 --with-fam
make

Associated revisions

Revision 1ebc83f1 (diff)
Added by gstrauss 7 months ago

[build_cmake] clock_gettime() -lrt w/ glibc < 2.17 (fixes #2737)

clock_gettime() needs -lrt with glibc < 2.17,
and possibly other platforms

This commit contains fixes for CMake and SCONS
See also 4d920466 which updated configure.ac for same

x-ref:
"1.4.40 compiling issuses on Debian Wheezy"
https://redmine.lighttpd.net/issues/2737

History

#1 Updated by gstrauss 7 months ago

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

Yes, you're right. Thanks for your report. clock_gettime() needs -lrt with glibc < 2.17
Patch forthcoming.

#2 Updated by gstrauss 7 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom