- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- compile problem Apache1.3.23 with mod_ssl with gcc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2002 02:43 PM
тАО02-05-2002 02:43 PM
I am trying to compile Apache_1.3.23 and mod_ssl with gcc. I am getting error while linking (ld). The error as follows:
library must be position independent. Use +z or +Z to recompile.
I did try with -fPIC flag with gcc, but no luck. If i try +z option with gcc, it gives error as "no such file of directory".
Any help!!!
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2002 04:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2002 10:37 PM
тАО02-05-2002 10:37 PM
Re: compile problem Apache1.3.23 with mod_ssl with gcc
What does "gcc -v ..." say?
Hardy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2002 06:01 AM
тАО02-06-2002 06:01 AM
Re: compile problem Apache1.3.23 with mod_ssl with gcc
thanks for the reply.
I am using gmake, but non GNU ld. where can i get GNU ld? what is the package name at hpux.cs.utah.edu that contains GNU ld?
I even tried using "-fpic -shared", but no luck. If i give -shared option for gcc, it gives "excecute permission denied" while configure and make for some script and exits. I am running as root.
Any inputs gratly appreciated. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2002 08:38 AM
тАО02-06-2002 08:38 AM
Re: compile problem Apache1.3.23 with mod_ssl with gcc
library must be position independent. Use +z or +Z to recompile.
I did give CC="cc +Z" and CC="cc +z".
The ouput of gcc -v :
gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: single
gcc version 3.0.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2002 10:28 PM
тАО02-07-2002 10:28 PM
Re: compile problem Apache1.3.23 with mod_ssl with gcc
Do you want to generate 32- or 64-bit code?
I don't think you should use GNUs ld, HP ld will be fine, but you have to use GNU as.
The error with the "+z or +Z" comes from HPs ld. It says that the compiled code (the objects) do not contain position independant code. "+z or +Z" are the options for HPs cc to create position independant objects. If you use gcc you have to set options "-fpic" instead. "-fpic" is one of the "Options for Code Generation Conventions" you find in the gcc manual (http://gcc.gnu.org/onlinedocs/).
If you call the linker through gcc you have to set the "-shared" option, which is one of the "Options for linking" in the gcc manual.
This is my experience with gcc 2.95.3.
Hardy