Hmm, I managed to get it to work with either -fpic or -fPIC after switching to shared perl. Also built with -m64.
I noticed Apache (at least 2.0.52) configures/compiles for -fPIC automagically. But once it loads, oooohhhh it is BIGGGGG. (note lotta Apache modules, Apache::Request, CGI loaded via startup.pl). PID Size Share VSize Rss M Elapsed LastReq Srvd Client Virtual Host Request (first 64 chars) 5: 2525 94.4M 88.3M 94.4M 8.8M _ 0.000s 0.000s 0 2: 2522 94.4M 88.3M 94.4M 8.8M _ 0.000s 0.000s 0 4: 2524 94.4M 88.3M 94.4M 8.8M _ 0.000s 0.000s 0 3: 2523 94.4M 88.3M 94.4M 8.8M _ 0.000s 0.000s 0 0: 2520 94.4M 88.3M 94.4M 8.8M 1: 2521 108M 97.0M 108M 13.7M W 0.000s 0.000s 0 10.1.54.95 testbox2 GET /sys-monitor HTTP/1.1 Total: 608169K ( 580M) size, 145465K ( 139M) approx real size (-shared) > -----Original Message----- > From: Matthew Berk [mailto:[EMAIL PROTECTED] > Sent: Monday, December 20, 2004 8:44 AM > To: modperl@perl.apache.org > Subject: Re: compile problems > > Found a solution worth writing about. I went through the perl > configuration interactively, specifying the following non-defaults: > > - compile perl as shared > - use gcc, not cc, as the compiler > - provide -fPIC to the compiler > *****CONFIDENTIALITY NOTICE***** This e-mail and any files or attachments may contain confidential and privileged information. If you have received this message in error, please notify the sender at the above e-mail address and delete it and all copies from your system. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html