I'm seeing the same problem on OpenBSD 2.9, my details
are below :
> On Wed, 2003-02-05 at 07:07, Stas Bekman wrote:
>> John Eisenschmidt wrote:
>> > OpenBSD 3.2
>> > Perl 5.6.1
I'm seeing the same problem with perl 5.8.0
>> >
>> > I'm trying to build MP 1.99_08 for Apache 2.0.44, and I'm not quite
>> > sure where I'm messing up. Apache built fine, building the config for
>> > MP went fine:
>> >
>> > jweisen@kaitain$ sudo perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
>> > MP_INST_APACHE2=1
>> >
>> > ...
>> >
>> > *** mod_perl dso library will be built as mod_perl.so
>> > *** mod_perl static library will be built as mod_perl.a
>> > *** You'll need to add the following to httpd.conf:
>> > *** LoadModule perl_module modules/mod_perl.so
>> >
>> > But the actual make doesn't go so well:
>> >
>> > jweisen@kaitain$ sudo make
>> >
>> > ...
>> >
>> > ranlib: mod_perl.so: Inappropriate file type or format
>> > *** Error code 1
>> >
>> > Stop in /usr/local/src/mod_perl-1.99_08/src/modules/perl (line 149 of
>> > Makefile.modperl).
>> > *** Error code 1
>> >
>> > Stop in /usr/local/src/mod_perl-1.99_08 (line 459 of Makefile).
>> >
>> > I dug back a couple months in the mailing lists and I'm not seeing
>> > anything applicable. Any help would be appreciated.
>>
>> Actually there were several reports of a similar failure for mod_perl 2.0 and
>> even more for mod_perl 1.0. It looks like you've snipped too much and you
>> don't show what are the unresolved symbols, which seems to be the cause of the
>> error:
>>
>> ranlib: mod_perl.so: Inappropriate file type or format
>
> I got that fixed by using 'gmake' instead of 'make' , not sure why
> exactly.
I just replaced RANLIB in the top level Makefile for mod_perl
with /bin/true :) I didn't try with gmake.
>
> But now, all builds fine, but the server fails to start with this
> interestingly new error :
>
> waiting for server to start: .Can't make loaded symbols global on this
> platform while loading
I see this :
steel1# ./httpd
Segmentation fault (core dumped)
But that's probably because of my touching mod_perl.so :) so I won't
waste the list's time with guff from the core file.
I recall having similar problems with 1.99.07 a while ago
and putting it in the 'too hard' basket for a while, but
now I need to get this going and don't want to swap O/S's
to something else just yet!
>/home/gozer/opt/src/apache.org/mod_perl/2/cvs/blib/arch/Apache2/auto/Apache/Const/Const.so
> at /usr/libdata/perl5/i386-openbsd/5.8.0/DynaLoader.pm line 229.
> Can't make loaded symbols global on this platform while loading
> /home/gozer/opt/src/apache.org/mod_perl/2/cvs/blib/arch/Apache2/auto/APR/Const/Const.so
> at /usr/libdata/perl5/i386-openbsd/5.8.0/DynaLoader.pm line 229.
>
> Any clues? I'll look at it a bit more in depth tonight.
Did you have any luck?
Output from my build/config.pl, if that helps at all? :
steel1# /usr/local/perl/bin/perl build/config.pl
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/apache-2.0.44
MP_GENERATE_XS => 1
MP_INST_APACHE2 => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache-2.0.44/bin/httpd -V
Server version: Apache/2.0.44
Server built: Feb 19 2003 23:11:38
Server's Module Magic Number: 20020903:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/local/apache-2.0.44"
-D SUEXEC_BIN="/usr/local/apache-2.0.44/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** /usr/local/perl/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=openbsd, osvers=2.9, archname=OpenBSD.i386-openbsd-thread-multi
uname='openbsd steel1 2.9 generic#2 i386 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pthread -fno-strict-aliasing -I/usr/local/include',
optimize='-O2',
cppflags='-pthread -fno-strict-aliasing -I/usr/local/include -I/opt/local/include -pthread -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.3 20010125 (prerelease)', gccosandvers='openbsd2.9'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-pthread -L/usr/local/lib'
libpth=/usr/local/lib /opt/local/lib /usr/lib
libs=-lm -lc_r -lutil
perllibs=-lm -lc_r -lutil
libc=/usr/lib/libc.so.26.2, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=define, ccdlflags=' '
cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under openbsd
Compiled at Oct 4 2002 14:10:32
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/local/perl/lib/5.8.0/OpenBSD.i386-openbsd-thread-multi
/usr/local/perl/lib/5.8.0
/usr/local/perl/lib/site_perl/5.8.0/OpenBSD.i386-openbsd-thread-multi
/usr/local/perl/lib/site_perl/5.8.0
/usr/local/perl/lib/site_perl
.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: Problem Building 1.99_08 on OpenBSD Philippe M. Chiasson
- Re: Problem Building 1.99_08 on OpenBSD Philippe M. Chiasson
- Carl Brewer