Bug #2836

component lighthttpd fails to build

Added by Andrew Stormont almost 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2012-06-06
Priority:Normal Due date:
Assignee:Andrew Stormont % Done:

100%

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

Description

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

 PATCH_LEVEL=0

-# 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.
+COMPONENT_PREP_ACTION = ( cd $(@D) ; \
+       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

History

Updated by Andrew Stormont almost 2 years ago

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

Updated by Andrew Stormont almost 2 years ago

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

Fixed in 664462a077d44878be9da44ca0d5b3d271d60176.

Also available in: Atom PDF