- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems getting DSO mod_perl2 to install into...
Operating System - HP-UX
1752786
Members
5721
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО09-29-2009 10:00 AM
тАО09-29-2009 10:00 AM
Re: Problems getting DSO mod_perl2 to install into apache2
Well? Kobylka,
That sed statement is a typo in the forum entry, but not in my script. But I considered using sed to change .so to .sl a huge hint I was really screwing things up anyway.
What got me was when you told me I made perl static. Of course I made it static! Is there any other way? Well...uh...YEAH! You are right. When I rebuilt perl it asked "do you wish to use Dynamic Loading?" This time I said YES.
"name of share library [default libperl.sl]. And I chose libperl.sl.
After I built perl-5.8.8 again, I tried to build mod_perl2 as a dyanmic shared object again.
Well this time it BUILT.
I can see an apache/modules/mod_perl.sl showed up.
Now there was one other thing I did.
When I built perl before I had -fPIC in the ccflags for gcc. This time I used -fpic.
Why did I make this change? It was merely a guess. But it looks like +Z ..or is it +z is to hpux-cc as -fPIC or is it -fpic is to gcc.
I need to go over this part again. You two guys would know of a site that gives an explanation of the gcc -fPIC vs -fpic would you?
Meanwhile......
I hope I didn't jinx myself. I just got it built. But that's not the same as using it. I'll start making an apache website that uses perl.
steve
That sed statement is a typo in the forum entry, but not in my script. But I considered using sed to change .so to .sl a huge hint I was really screwing things up anyway.
What got me was when you told me I made perl static. Of course I made it static! Is there any other way? Well...uh...YEAH! You are right. When I rebuilt perl it asked "do you wish to use Dynamic Loading?" This time I said YES.
"name of share library [default libperl.sl]. And I chose libperl.sl.
After I built perl-5.8.8 again, I tried to build mod_perl2 as a dyanmic shared object again.
Well this time it BUILT.
I can see an apache/modules/mod_perl.sl showed up.
Now there was one other thing I did.
When I built perl before I had -fPIC in the ccflags for gcc. This time I used -fpic.
Why did I make this change? It was merely a guess. But it looks like +Z ..or is it +z is to hpux-cc as -fPIC or is it -fpic is to gcc.
I need to go over this part again. You two guys would know of a site that gives an explanation of the gcc -fPIC vs -fpic would you?
Meanwhile......
I hope I didn't jinx myself. I just got it built. But that's not the same as using it. I'll start making an apache website that uses perl.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2009 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2009 11:22 AM
тАО09-29-2009 11:22 AM
Re: Problems getting DSO mod_perl2 to install into apache2
Hello Steve!
> But it looks like +Z ..or is it +z is to hpux-cc as -fPIC or is it -fpic is to gcc.
Yes, they both generate pic code.
Here an explanation for -f options under gcc:
http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Code-Gen-Options.html#Code-Gen-Options
+z,+Z for HP C:
http://docs.hp.com/en/14672/Help/options.htm#option+capZ
Kind regards,
Kobylka
> But it looks like +Z ..or is it +z is to hpux-cc as -fPIC or is it -fpic is to gcc.
Yes, they both generate pic code.
Here an explanation for -f options under gcc:
http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Code-Gen-Options.html#Code-Gen-Options
+z,+Z for HP C:
http://docs.hp.com/en/14672/Help/options.htm#option+capZ
Kind regards,
Kobylka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2009 11:34 AM
тАО09-29-2009 11:34 AM
Re: Problems getting DSO mod_perl2 to install into apache2
-fpic
Generate position-independent code (PIC) suitable for use in a shared library,...
-fPIC
If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table.
So -fpic generates code.
And -fPIC emits code.
I looked up emit. To eject. To discharge. To send out. To vent. To throw out. To give out.
One makes pies. The other one throws them at me?
I'll rerun this with -fPIC anyway because that is what I was using for years.
Thanks for the help both of you.
Generate position-independent code (PIC) suitable for use in a shared library,...
-fPIC
If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table.
So -fpic generates code.
And -fPIC emits code.
I looked up emit. To eject. To discharge. To send out. To vent. To throw out. To give out.
One makes pies. The other one throws them at me?
I'll rerun this with -fPIC anyway because that is what I was using for years.
Thanks for the help both of you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2009 01:47 PM
тАО09-29-2009 01:47 PM
Re: Problems getting DSO mod_perl2 to install into apache2
>I looked up emit.
They probably shouldn't use emit because it is so close to the pronunciation of omit.
>I'll rerun this with -fPIC
+Z generates more code than +z, so if you don't have a "large" executable or shlib, you should first try +z (-fpic) then go to +Z (-fPIC) when you get the linker error.
They probably shouldn't use emit because it is so close to the pronunciation of omit.
>I'll rerun this with -fPIC
+Z generates more code than +z, so if you don't have a "large" executable or shlib, you should first try +z (-fpic) then go to +Z (-fPIC) when you get the linker error.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP