Project

General

Profile

[Solved] Trying to compile under CentOS 6.10

Added by notpeter almost 5 years ago

Trying to use scons to compile lighttpd following the INSTALL directions

[root@50e549c65030 lighttpd-1.4.53]# scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install
scons: Reading SConscript files ...
Checking for C header file arpa/inet.h... yes
Checking for C header file crypt.h... yes
Checking for C header file fcntl.h... yes
Checking for C header file getopt.h... yes
Checking for C header file inttypes.h... yes
Checking for C header file linux/random.h... yes
Checking for C header file netinet/in.h... yes
Checking for C header file poll.h... yes
Checking for C header file pwd.h... yes
Checking for C header file stdint.h... yes
Checking for C header file stdlib.h... yes
Checking for C header file string.h... yes
Checking for C header file strings.h... yes
Checking for C header file sys/devpoll.h... no
Checking for C header file sys/epoll.h... yes
Checking for C header file sys/event.h... no
Checking for C header file sys/filio.h... no
Checking for C header file sys/mman.h... yes
Checking for C header file sys/poll.h... yes
Checking for C header file sys/port.h... no
Checking for C header file sys/prctl.h... yes
Checking for C header file sys/resource.h... yes
Checking for C header file sys/select.h... yes
Checking for C header file sys/sendfile.h... yes
Checking for C header file sys/socket.h... yes
Checking for C header file sys/time.h... yes
Checking for C header file sys/uio.h... yes
Checking for C header file sys/un.h... yes
Checking for C header file sys/wait.h... yes
Checking for C header file syslog.h... yes
Checking for C header file unistd.h... yes
Checking for C header file winsock2.h... no
Checking for C header file sys/resource.h... yes
Checking for C header file netinet/in.h... yes
Checking for C header file sys/event.h... no
Checking for C header file sys/mman.h... yes
Checking for C header file sys/select.h... yes
Checking for C header file sys/socket.h... yes
Checking for C header file sys/uio.h... yes
Checking for C header file sys/un.h... yes
Checking for C function arc4random_buf()... no
Checking for C function chroot()... yes
Checking for C function clock_gettime()... no
Checking for C function dup2()... yes
Checking for C function epoll_ctl()... yes
Checking for C function explicit_bzero()... no
Checking for C function fork()... yes
Checking for C function getcwd()... yes
Checking for C function gethostbyname()... yes
Checking for C function getloadavg()... yes
Checking for C function getopt()... yes
Checking for C function getrlimit()... yes
Checking for C function getuid()... yes
Checking for C function inet_ntoa()... yes
Checking for C function inet_ntop()... yes
Checking for C function inet_pton()... yes
Checking for C function issetugid()... no
Checking for C function jrand48()... yes
Checking for C function kqueue()... no
Checking for C function localtime_r()... yes
Checking for C function lstat()... yes
Checking for C function madvise()... yes
Checking for C function memset_s()... no
Checking for C function memset()... yes
Checking for C function mmap()... yes
Checking for C function munmap()... yes
Checking for C function pathconf()... yes
Checking for C function pipe2()... yes
Checking for C function poll()... yes
Checking for C function port_create()... no
Checking for C function posix_fadvise()... yes
Checking for C function prctl()... yes
Checking for C function select()... yes
Checking for C function send_file()... no
Checking for C function sendfile()... yes
Checking for C function sendfile64()... yes
Checking for C function sigaction()... yes
Checking for C function signal()... yes
Checking for C function socket()... yes
Checking for C function srandom()... yes
Checking for C function stat()... yes
Checking for C function strchr()... yes
Checking for C function strdup()... yes
Checking for C function strerror()... yes
Checking for C function strftime()... yes
Checking for C function strstr()... yes
Checking for C function strtol()... yes
Checking for C function writev()... yes
Checking for C function getentropy()... no
Checking for C function getrandom()... no
Checking for C type pid_t... yes
Checking for C type size_t... yes
Checking for C type off_t... yes
Checking for C library crypt... yes
Checking for C function crypt()... yes
Checking for C function crypt_r()... yes
Checking for C type socklen_t... yes
Checking for C type struct sockaddr_storage... yes
Checking for clock_gettime(CLOCK_MONOTONIC, (struct timespec*)0) in C library rt... yes
Checking for IPv6 support...yes
Checking for weak symbol support...yes
Checking for tm_gmtoff in struct tm...yes
Checking for C library dl... yes
Checking for C library fcgi... yes
ValueError: list.remove(x): x not in list:
File "/home/customer/lighttpd-1.4.53/SConstruct", line 676:
SConscript('src/SConscript', exports = 'env', variant_dir = 'sconsbuild/build', duplicate = 0)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 614:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/home/customer/lighttpd-1.4.53/src/SConscript", line 262:
fullstatic_libs.remove('pthread')


Replies (1)

RE: Trying to compile under CentOS 6.10 - Added by gstrauss almost 5 years ago

I don't have a CentOS 6.10 system, but a quick look at the error

File "/home/customer/lighttpd-1.4.53/src/SConscript", line 262:
fullstatic_libs.remove('pthread')

suggests that you might try adjusting the condition:
--- a/src/SConscript
+++ b/src/SConscript
@@ -259,7 +259,8 @@ fullstatic_libs = GatherLibs(env, fullstaticlib)
 fullstatic_linkflags = [staticenv['LINKFLAGS'], '-static']
 if (('pthread' in fullstatic_libs) or ('pcre' in fullstatic_libs)) and (platform.system() == 'Linux'):
        fullstatic_linkflags += ['-Wl,--whole-archive','-lpthread','-Wl,--no-whole-archive']
-       fullstatic_libs.remove('pthread')
+       if 'pthread' in fullstatic_libs:
+               fullstatic_libs.remove('pthread')
 if 'gcc_s' in fullstatic_libs:
        fullstatic_linkflags += ['-static-libgcc']
        fullstatic_libs.remove('gcc_s')

    (1-1/1)