httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Issac Goldstand via RT" <bug-libapr...@rt.cpan.org>
Subject [rt.cpan.org #66085] make test fails at "test_cgi" because of missing LD_LIBRARY_PATH on SunOS with /opt/csw/lib/*
Date Wed, 23 Feb 2011 15:44:00 GMT
<URL: https://rt.cpan.org/Ticket/Display.html?id=66085 >

If you use  
$ CPPFLAGS="-I/opt/csw/lib" LDFLAGS="-L/opt/csw/lib"  ./configure ... 

will that make it work?  I don't have access to a SunOS machine to test 
on, but off the top of my head, I believe it should do the trick...

On Wed Feb 23 10:20:13 2011, marcoep@gmail.com wrote:
> Hi there,
> 
> I have libiconv and other stuff in '/opt/csw/lib', so I configure 
this way:
> 
>   $ cat config.nice
>   #! /bin/sh
>   #
>   # Created by configure
>   CPPFLAGS="-I/opt/csw/lib"; export CPPFLAGS
>   LDFLAGS="-L/opt/csw/lib"; export LDFLAGS
>   ./configure '--with-apache2-apxs=/opt/apache22/bin/apxs' 
>   'LDFLAGS=-L/opt/csw/lib' 'CPPFLAGS=-I/opt/csw/lib' "$@"
> 
> It compiles fine, but it fails at "make test" on test_cgi:
> 
>   Test Summary Report
>   -------------------
>   t/cgi.t        (Wstat: 0 Tests: 31 Failed: 31)
>   Failed tests:  1-31
> 
> with many cries in 't/logs/error_log':
> 
>    ld.so.1: test_cgi: fatal: libiconv.so.2: open failed: No such file 
>    or directory
> 
> Indeed, anything gets correctly linked against iconv, f.i.:
> 
>   $ ldd module/t/cgi-bin/.libs/test_cgi  | egrep -i iconv
>         libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
> 
> but the running httpd/mod_cgi doesn't know about '/opt/csw/lib' (most
> modules are DSO; I set the correct LD_LIBRARY_PATH).
> 
> Adding the following snippet in 't/conf/extra.conf.in' solves the 
issue:
> 
>   <IfModule mod_env.c>
>     PassEnv LD_LIBRARY_PATH
>   </IfModule>
> 
> 
> Cheers,
> 
>   ^m'e
> 
> 
> 


-- 
-----
Maybe in order to understand mankind, we have to look at the word 
itself: "Mankind". Basically, it's made up of two separate words -
 "mank" and "ind". What do these words mean ? It's a mystery, just as 
is mankind.
 --Unknown

Mime
View raw message