Bug #2836

component lighthttpd fails to build

Added by Andrew Stormont about 6 years ago. Updated almost 6 years ago.

Status:ResolvedStart date:2012-06-06
Priority:NormalDue date:
Assignee:Andrew Stormont% Done:


Target version:-
Difficulty:Medium Tags:needs-triage


Old versions of libtool passed -z text when linking but newer versions pass -z text. lighthttp is one case where this change causes problems.

Proposed workaround:

diff --git a/components/lighttpd/Makefile b/components/lighttpd/Makefile
index c5f18c8..5cd57ca 100644
--- a/components/lighttpd/Makefile
+++ b/components/lighttpd/Makefile
@@ -20,6 +20,7 @@

+# Copyright (c) 2012 Nexenta Systems, Inc.  All rights reserved.
 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

@@ -40,8 +41,10 @@ include ../../make-rules/ips.mk


-# libtool linking will fail unless we re-create configure.
-COMPONENT_PREP_ACTION = ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
+# libtool passes -z defs when linking which is a bit severe in this case,
+# we drop it in favor of -z text.
+       sed -i "s/no_undefined_flag=' -z defs'/no_undefined_flag=' -z text'/g" configure)

 # lighttpd is logging using __FILE__ macro. Cloning will make this happen
 # using just source file names (without full absolute paths).

Related issues

Blocks illumian-userland - Bug #2721: illumian-userland fails to build in its entirety New 2012-05-12


#1 Updated by Andrew Stormont about 6 years ago

  • Project changed from illumos-userland to illumian-userland
  • Assignee set to Andrew Stormont

#2 Updated by Andrew Stormont almost 6 years ago

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

Fixed in 664462a077d44878be9da44ca0d5b3d271d60176.

Also available in: Atom