You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/07/04 14:38:50 UTC

DO NOT REPLY [Bug 45343] New: apxs filters out ':' chars from environment variables

https://issues.apache.org/bugzilla/show_bug.cgi?id=45343

           Summary: apxs filters out ':' chars from environment variables
           Product: Apache httpd-2
           Version: 2.0.63
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: francois.laupretre@ratp.fr


Happens on AIX but could happen anywhere an environment variable (CPPFLAGS,
LDFLAGS,...) contains a ':' character.

The case : On AIX, the LDFLAGS variable I use contains
'-Wl,-blibpath:/build/common'. Apache compiles OK and sets the value correctly
in config_vars.mk. But, when getting the value back from apxs ('apxs -q
LDFLAGS'), it returns '-Wl,-blibpath /build/common', replacing the first ':'
with a space.

So, when trying to link with this string (as when linking mod_jk), the linker
crashes with a message 'ld: 0706-015 The -b libpath option needs a parameter',
which is correct as the linker uses ':' as a separator, and does not understand
the space.

Tracing the problem into apxs, it comes from a substitution at the end of sub
get_vars, which says :

$result =~ s|:| |;

Commenting this line out, everything works fine for me. The problem is that, if
the code contains this substitution, there must be a reason...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45343] apxs filters out ':' chars from environment variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45343

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Jeff Trawick <tr...@apache.org> 2010-05-14 14:45:26 EDT ---
fixed in trunk r944383

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45343] apxs filters out ':' chars from environment variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45343

Bill Cole <ap...@billmail.scconsult.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apachebugz-20090909@billmai
                   |                            |l.scconsult.com
           Platform|Other                       |All
            Version|2.0.63                      |2.2.15
         OS/Version|AIX                         |All

--- Comment #1 from Bill Cole <ap...@billmail.scconsult.com> 2010-05-07 15:11:17 EDT ---
This bug is fully cross-platform, and persists in 2.2.15.  It also causes
builds that use apxs (including mod_jk) to fail on FreeBSD whenever the LDFLAGS
include a multi-element rpath argument, because those elements are
colon-delimited. 

As originally reported, the cause of this breakage is one undocumented line in
apxs substituting space for colon with no obvious justification. The value
being mangled is ultimately read from config_vars.mk, which is entirely 
variable assignments in 'make' syntax. I see nowhere in apxs that a colon would
be added to the string parsed out of that file, and such a substitution does
not make any sense from the perspective of make's assignment syntax. 

The bug can be fixed with this patch:

 --- support/apxs.in.orig    2006-07-11 20:38:44.000000000 -0700
+++ support/apxs.in.fixed    2010-05-07 11:39:18.768583424 -0700
@@ -253,7 +253,6 @@
         }
     }
     $result =~ s|;;$||;
-    $result =~ s|:| |;
     return $result;
 }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45343] apxs filters out ':' chars from environment variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45343


Francois LAUPRETRE <fr...@ratp.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |francois.laupretre@ratp.fr




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org