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/03 00:45:35 UTC

DO NOT REPLY [Bug 45327] New: bindist fails to include apache_home/lib/ apr-util-1

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

           Summary: bindist fails to include apache_home/lib/apr-util-1
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dopey@moonteeth.com


This results in Apache 2.2.9 failing to load apr-util-1/apr_ldap-1.so when
required in a bindist situation.  I think the built in envvars generation needs
to handle this additional directory.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #12 from Bojan Smojver <bo...@rexursive.com>  2008-07-10 15:32:02 PST ---
Commenting on Bill's comment:

"In the long term, we have to fix apr-util, really not httpd's problem,
to teach apr-util's apu_dso to hunt in each shlibpath dir and its
apr-1-config subdir."

And your reply:

"Ahh I see. So your thoughts are to fix the bindist relocation problem, having
apr-util look in all the shlibpath dirs to find apr-util-1/* would be the
solution."

We can teach APU to do this easily. I'll have a patch for you to test soon.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #9 from Andy Wang <do...@moonteeth.com>  2008-07-10 09:49:11 PST ---
APU_DSO_LIBDIR appears in
apr-util/config.log:  APU_DSO_LIBDIR='${libdir}/apr-util-1'

and of course apr-util/Makefile: APU_DSO_LIBDIR = ${libdir}/apr-util-1


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Bojan Smojver <bo...@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #11 from Andy Wang <do...@moonteeth.com>  2008-07-10 15:18:20 PST ---
Oh, I'm sorry, I didn't understand exactly where you were going so I only
pasted APU_DSO_LIBDIR=.

fgrep APU_DSO_LIBDIR config.log
APU_DSO_LIBDIR='${libdir}/apr-util-1'
#define APU_DSO_LIBDIR "/opt/ptc/apache2.2/lib/apr-util-1"

However, that doesn't work in the relocated scenario I'm referring to.  It only
works if you always install into the --prefix=blahblahblah build location.

The problem is, we are rebuilding and redistributing Apache, so the --prefix
location can't be guaranteed to always be the install location.  See this
e-mail message from Bill Rowe for a good summary of the exact problem.

http://www.mail-archive.com/dev@httpd.apache.org/msg41176.html

So we have two options:
1) fix for the bindist script and configure script to include APU_DSO_LIBDIR in
the share library path environment variable (LD_LIBRARY_PATH, LIBPATH,
SHLIB_PATH depending on platform)
2) Or the suggestion from Joe about in Comment #2 about just disabling apr-util
DSO support which makes the most sense.  Only reason I reassigned this bug to
APR was based on the e-mail thread above, it seems like maybe the apache folk
would want to visit this bug and come up with the perfect solution for all
worlds :).


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Bojan Smojver <bo...@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #2 from Joe Orton <jo...@redhat.com>  2008-07-04 02:56:34 PST ---
I doubt there is a one-size-fits-all solution here.

1) using "$ORIGIN/lib/apr-util-1/blah.so" as the path rather than a hard-coded 
absolute string would allow a relocatable binary with many ELF dynamic linkers.
This would still allow bin/httpd to work if invoked directly

2) using a relative filename like "apr-util-1/blah.so" as the path would allow
a relocatable binary with (I think) a wider range of linkers, but would mean
bin/httpd could not be invoked directly, only via apachectl

3) if your complaint is specifically about the binary builds created by the
shipped binbuild script, that should simply turn off the DSO support in
apr-util; arguably it should be off by default


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #6 from Bojan Smojver <bo...@rexursive.com>  2008-07-09 14:51:10 PST ---
Sorry, that would be LD_LIBRARY_PATH on Linux and most likely something else on
some other platforms. APR_DSOPATH is a macro.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Andy Wang <do...@moonteeth.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|All                         |APR-util
            Product|Apache httpd-2              |APR
            Version|2.2.9                       |HEAD




--- Comment #3 from Andy Wang <do...@moonteeth.com>  2008-07-08 09:12:34 PST ---
--disable-util-apr does indeed work wonderfully.

Based on the apache-dev thread about this issue, it's possible that the APR
devs might decide to revisit it so I'm marking this as an APR bug.  Feel free
to close as I agree with Joe that a redistributable bindist apache should just
use --disable-util-apr.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bugs@httpd.apache.org       |bugs@apr.apache.org
             Status|ASSIGNED                    |NEW




--- Comment #15 from Will Rowe <wr...@apache.org>  2008-07-10 16:23:06 PST ---
Reviewing the not-quite-right patch, you are headed in the same direction I was
thinking, so I suspect we are on the right track :)

Reassigning to APR, do NOT change the product without flipping the assigned
bug list address


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Bojan Smojver <bo...@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22243|0                           |1
        is obsolete|                            |




--- Comment #14 from Bojan Smojver <bo...@rexursive.com>  2008-07-10 16:15:09 PST ---
(From update of attachment 22243)
Ah, not quite. Let me rework that a bit...


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Andy Wang <do...@moonteeth.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #7 from Andy Wang <do...@moonteeth.com>  2008-07-09 21:14:23 PST ---
"I think the built in envvars generation needs
to handle this additional directory."

Sorry I wasn't clear.  The above statement was meant to state that I added the
apache_home/lib/apr-util-1 directory to the LD_LIBRARY_PATH in the envvars
script and it did indeed work.  However, currently the apache build doesn't
populate this into the envvars directory, which is why I filed this bug.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Dan Stusynski <ds...@ptc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dstusynski@ptc.com




-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #4 from Andy Wang <do...@moonteeth.com>  2008-07-08 09:31:25 PST ---
oops
--disable-util-dso i mean.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #1 from Andy Wang <do...@moonteeth.com>  2008-07-02 15:47:51 PST ---
i left the platform as linux, but we've confirmed the library load problem on
solaris and linux, and at least visually the library structure and envvars
LIBPATH variable show the same characteristics on AIX.


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #10 from Bojan Smojver <bo...@rexursive.com>  2008-07-10 15:03:10 PST ---
I get this on my test build of apr-util (current tip of the 1.3.x branch):
------------------
$ grep APU_DSO_LIBDIR config.log 
APU_DSO_LIBDIR='${libdir}/apr-util-1'
#define APU_DSO_LIBDIR "/home/groups/devel/run/apache/lib/apr-util-1"
------------------

It is that macro that is added to the list gotten from LD_LIBRARY_PATH (if any)
and then searched. This then ends up here:
------------------
$ grep APU_DSO_LIBDIR include/private/apu_config.h
#define APU_DSO_LIBDIR "/home/groups/devel/run/apache/lib/apr-util-1"
------------------

So, as long as your ${libdir} is pointing to the right place during build time,
you should be OK. I am not sure why you don't get that #define...


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #8 from Bojan Smojver <bo...@rexursive.com>  2008-07-09 21:20:01 PST ---
OK, thanks for that. So, that part of the search mechanism works.

The other part is related to APU_DSO_LIBDIR, which gets defined as
$libdir/apr-util-1. Could you go into your apr-util source directory and grep
APU_DSO_LIBDIR in config.log?


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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





--- Comment #13 from Bojan Smojver <bo...@rexursive.com>  2008-07-10 16:05:25 PST ---
Created an attachment (id=22243)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22243)
Add apr-util-APU_MAJOR_VERSION to DSO search patch

Does this help you?


-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Bojan Smojver <bo...@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




-- 
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 45327] bindist fails to include apache_home/lib/ apr-util-1

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


Bojan Smojver <bo...@rexursive.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bojan@rexursive.com




--- Comment #5 from Bojan Smojver <bo...@rexursive.com>  2008-07-09 14:46:51 PST ---
Have you tried setting APR_DSOPATH in your environment? If you do that, does it
still fail to load apr-util-1/apr_ldap-1.so?


-- 
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