You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/07/29 05:33:54 UTC
DO NOT REPLY [Bug 51581] New: APR wrapper compilation error
https://issues.apache.org/bugzilla/show_bug.cgi?id=51581
Bug #: 51581
Summary: APR wrapper compilation error
Product: Tomcat 7
Version: 7.0.19
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
AssignedTo: dev@tomcat.apache.org
ReportedBy: zhangyu1898@yahoo.com
Classification: Unclassified
CFLAGS='-m64' ./configure --with-apr=/usr/local/apr --with-ssl=/usr/local/ssl
--with-java-home=/usr/local/jdk
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_meth.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object; recompile
with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libtcnative-1.la] error 1
make: *** [all-recursive] error 1
use
CFLAGS='-m64 -fPIC' ./configure --with-apr=/usr/local/apr
--with-ssl=/usr/local/ssl --with-java-home=/usr/local/jdk
still give me same error
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51581] APR wrapper compilation error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51581
Rainer Jung <ra...@kippdata.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2011-07-29 08:59:34 UTC ---
The compiler complains about your OpenSSL build and suggests tu use other flags
for that. Please check your OpenSSL.
There are usually two ways to fx this:
- either provide shared libraries for OpenSSL. Check OpenSSL-Docs how to do
this.
- or if you want to build against statically linked OpenSSL (the complicated
way), you might try with "-fPIC" added when compiling OpenSSL, but I don't
think it'll help
- I expect you can work around the problem by linking against OpenSSL with
-Bdirect (or -Wl,-Bdirect depending on where you set the flag).
It's a known problem with OpenSSl which pops up every now and then in
variations:
http://rt.openssl.org/Ticket/Display.html?id=1226
http://rt.openssl.org/Ticket/Display.html?id=1521
http://rt.openssl.org/Ticket/Display.html?id=2466
etc.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51581] APR wrapper compilation error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51581
zhangyu1898@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zhangyu1898@yahoo.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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51581] APR wrapper compilation error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51581
--- Comment #2 from zhangyu1898@yahoo.com 2011-08-01 04:05:37 UTC ---
solution: compile openssl with shared option.
all problem solved.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org