On Thursday, Jan 29, 2004, at 22:40 US/Eastern, Forrest Aldrich wrote:


Yes, indeed in /usr/lib there is:

libperl.a
libperl.so
libperl.so.3
libperl_p.a

Which is the "system" perl version.

I don't know that FreeBSD-5.x is stable enough to upgrade to at this point - but I see now why they took perl out of the distribution.

So, there must be a way to circumvent this issue - perhaps by some makepl_* flags or?


Those are all for the system perl (static and dynamic libs) - not sure what libperl_p.a is for.
Ok, what I remember doing was moving all those lib files out of the way, building a new version
of perl and then linking /usr/bin/perl to my new version of perl - basically upgrading the perl for the
whole system. I can't remember if there were any system dependencies on the stock version of
perl or not - but I don't think there were any, at least nothing major. One thing you will have to be
careful about is rebuilding any perl libs (from CPAN) for your new version of perl. At this point you should
be able to build mod_perl, etc.


Andrew



Thanks,
Forrest


At 10:19 PM 1/29/2004, Andrew Wyllie wrote:


On Thursday, Jan 29, 2004, at 22:11 US/Eastern, Forrest Aldrich wrote:

I'm compiling the perl port on FreeBSD for 5.8... which goes to /usr/local/lib. I have these under /usr/local/lib/perl5:

5.00503         5.8.0           5.8.1           5.8.2           5.8.3
   site_perl

I don't know why the upgrade leaves the other 5.x dirs there.

Actually, those directories should be ok as is.


Check in /usr/lib and see if you see something like libperl.so or something
along those lines.


Andrew

Anyhow, you say removing these will help the compile - but I would think there are some interdependencies?



Forrest


At 08:45 PM 1/29/2004, Andrew Wyllie wrote:


On Thursday, Jan 29, 2004, at 16:52 US/Eastern, Forrest Aldrich wrote:

Does someone know what the problem might be.  This is compiling
mod_perl-current (1.x) in Apache 1.3.29 on FreeBSD-4.9, with either
Perl 5.8.2 or Perl 5.8.3.

I canget the compile/linking to work when I use the "stock" perl
(/usr/bin/perl) but the dependencies for RT require 5.8.

This has been a long-standing sore spot; if someone can help me fix
this, or at least confirm it's a known issue, I would appreciate it.



Thanks in advance.

I remember running into this problem about a year (or more) ago, so my
memory is a bit fuzzy, but
I think the problem had something to do with the perl libs for the
stock perl being installed in /usr/lib,
/usr/lib/perl (or /usr/local/lib). I think I just moved those libs
out of the way, recompiled and everything
worked fine. This will break your stock perl, but I don't recall that
having any effect on anything
else in the system.


Actually, I think this issue was one of the motivators for removing
perl from the base FreeBSD distribution
(in version 5.0 and up).


Hope this helps Andrew





cc -I. -I/usr/local/lib/perl5/5.8.3/mach/CORE -I./os/unix -I./include
-funsigned-char -DMOD_SSL=208116 -DMOD_PERL -DUSE_PERL_SSI
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.3/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include -DEAPI
-fpic -DSHARED_CORE -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.3/BSDPAN
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-I/usr/local/include `./apaci` -L/usr/lib -Wl,-E -o libhttpd.ep
-DSHARED_CORE_TIESTATIC main/http_main.c -L. -lhttpd -lcrypt
-lssl
-lcrypto -Wl,-R/usr/local/lib/perl5/5.8.3/mach/CORE -Wl,-E
-L/usr/local/lib
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.3/mach/CORE -lperl -lm -lcrypt -lutil -lc
./libhttpd.so: warning: mktemp() possibly used unsafely; consider
using mkstemp()
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/ DynaLoader.a(DynaLoader.o): In function `SaveError':
DynaLoader.o(.text+0x89): undefined reference to `Perl_vmess'
DynaLoader.o(.text+0xb3): undefined reference to `Perl_sv_2pv_flags'
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/ DynaLoader.a(DynaLoader.o): In function >>> `XS_DynaLoader_dl_load_file':
DynaLoader.o(.text+0x177): undefined reference to `Perl_sv_2pv_nolen'
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/ DynaLoader.a(DynaLoader.o): In function > `XS_DynaLoader_dl_find_symbol':
DynaLoader.o(.text+0x450): undefined reference to `Perl_sv_2pv_nolen'
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/ DynaLoader.a(DynaLoader.o): In function
`XS_DynaLoader_dl_install_xsub':
DynaLoader.o(.text+0x5c3): undefined reference to `Perl_sv_2pv_nolen'
DynaLoader.o(.text+0x638): undefined reference to `Perl_sv_2pv_nolen'
/usr/local/lib/perl5/5.8.3/mach/auto/DynaLoader/ DynaLoader.a(DynaLoader.o): In function `boot_DynaLoader':
DynaLoader.o(.text+0x7ec): undefined reference to `Perl_sv_2pv_flags'
DynaLoader.o(.text+0x833): undefined reference to `Perl_get_sv'
DynaLoader.o(.text+0x871): undefined reference to `Perl_get_sv'
DynaLoader.o(.text+0x8b6): undefined reference to `Perl_sv_2pv_flags'
./libhttpd.so: undefined reference to `Perl_require_pv'
./libhttpd.so: undefined reference to `Perl_get_cv'
./libhttpd.so: undefined reference to `Perl_get_av'
./libhttpd.so: undefined reference to `Perl_call_pv'
./libhttpd.so: undefined reference to `Perl_mfree'
./libhttpd.so: undefined reference to `Perl_sv_pvn_force_flags'
./libhttpd.so: undefined reference to `Perl_sv_catpvn_flags'
./libhttpd.so: undefined reference to `Perl_eval_sv'
./libhttpd.so: undefined reference to `Perl_sv_catsv_flags'
./libhttpd.so: undefined reference to `Perl_sv_setsv_flags'
./libhttpd.so: undefined reference to `Perl_get_hv'
./libhttpd.so: undefined reference to `Perl_eval_pv'
./libhttpd.so: undefined reference to `Perl_call_sv'
./libhttpd.so: undefined reference to `Perl_call_method'
./libhttpd.so: undefined reference to `Perl_PerlIO_close'
./libhttpd.so: undefined reference to `Perl_malloc'
./libhttpd.so: undefined reference to `PerlIO_findFILE'
./libhttpd.so: undefined reference to `Perl_save_destructor_x'
./libhttpd.so: undefined reference to `PerlIO_open'
*** Error code 1


Stop in /usr/local/src/apache/apache_1.3.29/src.
*** Error code 1

Stop in /usr/local/src/apache/apache_1.3.29.
*** Error code 1

Stop in /usr/local/src/apache/apache_1.3.29.
*** Error code 1

Stop in /usr/local/src/apache/mod_perl-1.29.
bash-2.05b#


--
Reporting bugs: 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





--
Reporting bugs: 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



Reply via email to