Project

General

Profile

Actions

Bug #2737

closed

1.4.40 compiling issuses on Debian Wheezy

Added by idfnet over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
build_cmake
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by gstrauss over 7 years 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.

Actions #2

Updated by gstrauss over 7 years ago

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

Also available in: Atom