Re: mod-perl on Solaris 2.6
Hi, Finally, i have it working. Thanks to all those who replied. Although, i still don't know the exact cause of the previous failures but i suspect it was threaded perl builds cause some debugging thru' gdb shows something related to threads. Unfortunately, i deleted the debug dump. Anyway, here are the changes i made while making perl :- 1. Used Solaris tools (NO GNU binutils) 2. Disabled largefiles support 3. Disabled threads I tried with using Solaris tools and enabling largefile support and threads but it didn't work, so the culprit has to be largefile support or threads. Since threads is an experimental feature, i figured it must be the culprit. Whatever, thanks everyone. Siddhartha Jain - Original Message - From: "JONES, WILLIAM C" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 7:18 PM Subject: Re: mod-perl on Solaris 2.6 > > You wrote: > > Date: Tue, 9 Jan 2001 00:16:46 +0530 > To: <[EMAIL PROTECTED]> > From: "Siddhartha Jain" <[EMAIL PROTECTED]> > Subject: Re: mod-perl on Solaris 2.6 > Message-ID: <00c201c079a3$5a678de0$1a01010a@Sid> > > Applying patches was the first thing i did after installing the OS (kind > of > a standard practise with me). So, yes everything i've done has been > after > installing the patches. > > Siddhartha > -- -- > --- > > > > Hmmm Is uselargefiles enabled under Perl? > mod_perl and Apache do not like uselargefiles under > Solaris - this is a known bug. What does > > perl -V > > (that's a capital V) say? > > I had this same problem, but when I manually set > uselargefiles=false - the compile and test afterwards > was successful >
Re: mod-perl on Solaris 2.6
You wrote: Date: Tue, 9 Jan 2001 00:16:46 +0530 To: <[EMAIL PROTECTED]> From: "Siddhartha Jain" <[EMAIL PROTECTED]> Subject: Re: mod-perl on Solaris 2.6 Message-ID: <00c201c079a3$5a678de0$1a01010a@Sid> Applying patches was the first thing i did after installing the OS (kind of a standard practise with me). So, yes everything i've done has been after installing the patches. Siddhartha --- Hmmm Is uselargefiles enabled under Perl? mod_perl and Apache do not like uselargefiles under Solaris - this is a known bug. What does perl -V (that's a capital V) say? I had this same problem, but when I manually set uselargefiles=false - the compile and test afterwards was successful
Re: mod-perl on Solaris 2.6
> From: Jeff Beard <[EMAIL PROTECTED]> > Date: Mon, 08 Jan 2001 12:48:58 -0700 (MST) > Subject: Re: mod-perl on Solaris 2.6 > > Check out the mailing list archive for something I posted > a while back. It boiled down to not using GNU binutils for > anything. Including GCC. Partly, I agree. Gcc is fine for Solaris 2.5, 7 and 8, if you use the package from sunfreeware.com, and install all relevant patches. Don't use any other gnu bintools though, especially not the linker. (Well, at least not with a "stock" Solaris system. :) I have been building perl for years with that combo, and mod_perl/Apache for just over a year, and while it does require that you know what you are doing, (and it certainly sounds like Siddhartha does), it always works fine for me. Siddhartha, have you tried the $HOME/.makepl_args.mod_perl file-method to build mod_perl/Apache?? If you set this file up properly, you can build/install mod_perl/Apache with the standard: perl Makefile.pl make make test make install all from within the mod_perl distribution dir. This is documented in the INSTALL document of the mod_perl distribution, and there is a commented sample/template in eg/makepl_args.mod_perl (note there is no leading . here) of the distribution. (And once Doug relases another version of mod_perl with no _ in the version number, you will be able to do "install mod_perl" from the CPAN shell, which downloads and builds the latest versions of everything, hopefully:) Also, make sure your LD_LIBRARY_PATH and PATH vars are set properly. (I have never had to use the LD_PRELOAD var, and I build a lot of software for Solaris from C source) If you use tcsh, (or any shell that supports it) try "which perl" and "which gcc", and "whereis perl" and "whereis gcc", and make sure that you are really getting what you think. And make sure that any sym-links/links (like maybe /usr/bin/perl) point to where you want them. I always try to make sure that my build environments can only see what I want them to see, and no other versions of anything. One other thing, look at the output of perl -V, and see if the flags to gcc for building perl are the same as what are being passed to gcc for building mod_perl/Apache. They should be, but something might be screwing them up in your enviornment, so check anyway. :) David McCabe Unix System Administrator Le Groupe Videotron [EMAIL PROTECTED] (514) 380 4433 "We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the works of Shakespeare. Now, thanks to the Internet, we know this is not true." - Robert Wilensky UCB
Re: mod-perl on Solaris 2.6
Is the answer using LD_PRELOAD? But i remember having compiled successfully on Solaris 7 x86. Anyway, please tell me if there is anyway other than using the LD_PRELOAD option. Siddhartha - Original Message - From: "Jeff Beard" <[EMAIL PROTECTED]> To: "Siddhartha Jain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 1:18 AM Subject: Re: mod-perl on Solaris 2.6 > Check out the mailing list archive for something I posted > a while back. It boiled down to not using GNU binutils for > anything. Including GCC. > > --Jeff > > -- > Jeff Beard > _ > Web: www.cyberxape.com > Email: jeff at cyberxape dot com > Earth: Boulder, CO, USA > > On Mon, 8 Jan 2001, Siddhartha Jain wrote: > > > Hi, > > > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > > perl-5.6. If i compile it statically, i get a core dump on running apache > > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > > ends having tried all sorts of combinations. Could someone help me? > > > > Siddhartha Jain > > > >
Re: mod-perl on Solaris 2.6
Check out the mailing list archive for something I posted a while back. It boiled down to not using GNU binutils for anything. Including GCC. --Jeff -- Jeff Beard _ Web:www.cyberxape.com Email: jeff at cyberxape dot com Earth: Boulder, CO, USA On Mon, 8 Jan 2001, Siddhartha Jain wrote: > Hi, > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > perl-5.6. If i compile it statically, i get a core dump on running apache > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > ends having tried all sorts of combinations. Could someone help me? > > Siddhartha Jain >
Re: mod-perl on Solaris 2.6
And i tried every possible way given in the INSTALL.* - Original Message - From: "Danny Rathjens" <[EMAIL PROTECTED]> To: "Siddhartha Jain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 12:08 AM Subject: Re: mod-perl on Solaris 2.6 > Siddhartha Jain wrote: > > > > Hi, > > > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > > perl-5.6. If i compile it statically, i get a core dump on running apache > > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > > ends having tried all sorts of combinations. Could someone help me? > > > > Siddhartha Jain > > I just did this myself(migrating our cluster from linux to solaris(not by choice)). > I am using perl-5.6,apache_1.3.14, and mod_perl-1.24_01 on Solaris2.7 though. > > One thing to check is to make sure the same compiler is being used to > compile all the various parts. (e.g. I installed gcc in /usr/local > so I put /usr/local/bin first in my path, also made a symlink cc -> gcc) > > What commands did you use to configure? > vanilla mod_perl, like this?: > cd ../mod_perl-x.xx > perl Makefile.PL DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache APACHE_SRC=../apache_1.3.14/src > make > -- > struct Programmer/Analyst 'Danny Rathjens' {this.place = "MyCity.com";} > I know you believe you understood what you think I said, but I > am not sure you realize that what you heard is not what I meant. >
Re: mod-perl on Solaris 2.6
Okay ... the compiler i've been using all along is gcc-2.95.2. If i compile only apache, it runs fine but if i add any kind of mod_perl, it crashes. Siddhartha - Original Message - From: "Danny Rathjens" <[EMAIL PROTECTED]> To: "Siddhartha Jain" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 12:08 AM Subject: Re: mod-perl on Solaris 2.6 > Siddhartha Jain wrote: > > > > Hi, > > > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > > perl-5.6. If i compile it statically, i get a core dump on running apache > > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > > ends having tried all sorts of combinations. Could someone help me? > > > > Siddhartha Jain > > I just did this myself(migrating our cluster from linux to solaris(not by choice)). > I am using perl-5.6,apache_1.3.14, and mod_perl-1.24_01 on Solaris2.7 though. > > One thing to check is to make sure the same compiler is being used to > compile all the various parts. (e.g. I installed gcc in /usr/local > so I put /usr/local/bin first in my path, also made a symlink cc -> gcc) > > What commands did you use to configure? > vanilla mod_perl, like this?: > cd ../mod_perl-x.xx > perl Makefile.PL DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache APACHE_SRC=../apache_1.3.14/src > make > -- > struct Programmer/Analyst 'Danny Rathjens' {this.place = "MyCity.com";} > I know you believe you understood what you think I said, but I > am not sure you realize that what you heard is not what I meant. >
Re: mod-perl on Solaris 2.6
Applying patches was the first thing i did after installing the OS (kind of a standard practise with me). So, yes everything i've done has been after installing the patches. Siddhartha - Original Message - From: "Khachaturov, Vassilii" <[EMAIL PROTECTED]> To: "'Siddhartha Jain'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 12:02 AM Subject: RE: mod-perl on Solaris 2.6 > Did you rebuild Perl since then? > > -Original Message- > From: Siddhartha Jain [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 08, 2001 1:38 PM > To: [EMAIL PROTECTED] > Subject: Re: mod-perl on Solaris 2.6 > > > oh! Sorry, i didn't mention but i have already applied all the latest Sun > recommended patches on the machine. Now what? >
Re: mod-perl on Solaris 2.6
Siddhartha Jain wrote: > > Hi, > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > perl-5.6. If i compile it statically, i get a core dump on running apache > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > ends having tried all sorts of combinations. Could someone help me? > > Siddhartha Jain I just did this myself(migrating our cluster from linux to solaris(not by choice)). I am using perl-5.6,apache_1.3.14, and mod_perl-1.24_01 on Solaris2.7 though. One thing to check is to make sure the same compiler is being used to compile all the various parts. (e.g. I installed gcc in /usr/local so I put /usr/local/bin first in my path, also made a symlink cc -> gcc) What commands did you use to configure? vanilla mod_perl, like this?: cd ../mod_perl-x.xx perl Makefile.PL DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache APACHE_SRC=../apache_1.3.14/src make -- struct Programmer/Analyst 'Danny Rathjens' {this.place = "MyCity.com";} I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant.
RE: mod-perl on Solaris 2.6
Did you rebuild Perl since then? -Original Message- From: Siddhartha Jain [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 1:38 PM To: [EMAIL PROTECTED] Subject: Re: mod-perl on Solaris 2.6 oh! Sorry, i didn't mention but i have already applied all the latest Sun recommended patches on the machine. Now what?
Re: mod-perl on Solaris 2.6
oh! Sorry, i didn't mention but i have already applied all the latest Sun recommended patches on the machine. Now what? - Original Message - From: "Jimi Thompson" <[EMAIL PROTECTED]> To: "Siddhartha Jain" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 08, 2001 11:55 PM Subject: Re: mod-perl on Solaris 2.6 > You need to run, do not walk, immediately to www.sun.com and apply all > of the Solaris patches to your machine. > > Siddhartha Jain wrote: > > > > Hi, > > > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > > perl-5.6. If i compile it statically, i get a core dump on running apache > > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > > ends having tried all sorts of combinations. Could someone help me? > > > > Siddhartha Jain
Re: mod-perl on Solaris 2.6
You need to run, do not walk, immediately to www.sun.com and apply all of the Solaris patches to your machine. Siddhartha Jain wrote: > > Hi, > > I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris > 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also > perl-5.6. If i compile it statically, i get a core dump on running apache > and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" > error. I had compiled perl-5.6 using Solaris's malloc and later i compiled > perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits > ends having tried all sorts of combinations. Could someone help me? > > Siddhartha Jain begin:vcard n:Thompson;Jimi tel;pager:877-309-2784 tel;cell:817-980-7863 tel;work:817-619-3612 x-mozilla-html:FALSE url:http://www.link.com org:Link.com;Unix Team, IT version:2.1 email;internet:[EMAIL PROTECTED] title:Web Master adr;quoted-printable:;;2200 Arlington Downs Rd =0D=0AMail Stop 148=0D=0A;Arlington;TX;76011;USA fn:Jimi Thompson end:vcard
mod-perl on Solaris 2.6
Hi, I have been trying to compile mod-perl (various 1.21 to 1.24_01 ) on Solaris 2.6 with apache (various 1.3.11 to 1.3.14) with perl-5.005003 and also perl-5.6. If i compile it statically, i get a core dump on running apache and if i compile it via apxs, i get a "Symbol not found main, in libperl.so" error. I had compiled perl-5.6 using Solaris's malloc and later i compiled perl-5.005 with perl's malloc but nothing helped. I am mostly at my wits ends having tried all sorts of combinations. Could someone help me? Siddhartha Jain