DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23225>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23225

symbolic link causes apr-config and apu-config to guess wrong APR_INCLUDEDIR, 
APU_INCLUDEDIR

           Summary: symbolic link causes apr-config and apu-config to guess
                    wrong APR_INCLUDEDIR, APU_INCLUDEDIR
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Build
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


My build directory is "/export/home/greg/src/httpd-2.0.47". "/export/home/greg" 
is a symbolic link to "../../fs0/export/home/greg":

[telesto:/export/home]$ ls -la
lrwxrwxrwx   1 root     root          26 Jul 14 13:50 greg -
> ../../fs0/export/home/greg

srclib/apr/apr-config and srclib/apr-util/apu-config get confused because of 
this link, and APR_INCLUDEDIR and APU_INCLUDEDIR point to both /fs0 
and /export.  From config.log:

APR_INCLUDEDIR='/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr/include /expor
t/home/greg/src/httpd-2.0.47/srclib/apr/include'
APU_INCLUDEDIR='/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include /
export/home/greg/src/httpd-2.0.47/srclib/apr-util/include'

The apr-util and apr *.h files get listed twice in server/exports_files:

/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_anylock.h
/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_base64.h
/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_buckets.h
[...snip...]
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_anylock.h
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_base64.h
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr-util/include/apr_buckets.h

/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr.h
/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr_allocator.h
/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr_atomic.h
[...snip...]
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr.h
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr_allocator.h
/fs0/export/home/greg/src/httpd-2.0.47/srclib/apr/include/apr_atomic.h

This results in the following build errors:

/export/home/greg/src/httpd-2.0.47/server/exports.c:1554: error: redefinition of
 `ap_hack_apr_base64_encode_len'
/export/home/greg/src/httpd-2.0.47/server/exports.c:672: error: `ap_hack_apr_bas
e64_encode_len' previously defined here
/export/home/greg/src/httpd-2.0.47/server/exports.c:1555: error: redefinition of
 `ap_hack_apr_base64_encode'
/export/home/greg/src/httpd-2.0.47/server/exports.c:673: error: `ap_hack_apr_bas
e64_encode' previously defined here
[...snip...]

A simple workaround is to edit server/exports_files by hand to remove the 
duplicates.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to