Project

General

Profile

Actions

Bug #2548

closed

cannot build statically compiled lighttpd

Added by bwalker@musings.com about 10 years ago. Updated about 8 years ago.

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

Description

Can not build a statically compiled lighttpd.

When trying to compile a statically built lighttpd, you need to have LIGHTTPD_STATIC defined. On uCLinux, which has no dynamic linking, the file <dlfcn.h> is always included if not on a WIN32 machine. This is not correct for a static build.

Here is the patch..

diff --git a/src/plugin.c b/src/plugin.c
index 55f8b03..bbc9c0d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -6,11 +6,12 @@

 #include <stdio.h>

+
 #ifdef HAVE_VALGRIND_VALGRIND_H
 # include <valgrind/valgrind.h>
 #endif

-#ifndef __WIN32
+#if !defined(__WIN32) && !defined(LIGHTTPD_STATIC)
 # include <dlfcn.h>
 #endif
 /*
@@ -99,7 +100,9 @@ static int plugins_register(server *srv, plugin *p) {
  *
  */

Files

epeg1000e.conf (2.37 KB) epeg1000e.conf mariannaf, 2014-01-15 10:37
php.ini (48.9 KB) php.ini mariannaf, 2014-01-15 10:37

Related issues 1 (0 open1 closed)

Copied from Bug #2545: HTTP 413 - request entity too largeMissing Feedback2014-01-15Actions
Actions #1

Updated by gstrauss about 8 years ago

Straightforward patch. Can it be applied and this ticket closed?

Actions #2

Updated by stbuehler about 8 years ago

  • Description updated (diff)
Actions #3

Updated by stbuehler about 8 years ago

  • Target version changed from 1.4.x to 1.4.40
Actions #4

Updated by stbuehler about 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r3087.

Actions

Also available in: Atom