ponie-2 on x86 solaris 2.5.1

[email protected] Tue, 28 Dec 2004 22:07:47 -0600
Newsgroups perl.ponie.dev
Message-ID <OF0F9DA07D.156EAD4F-ON86256F79.0014568C-86256F79.00165534@uscmail.uscourts.gov>
I know its a sort of dead end OS but ...

Using perl 5.8.0 w/ a config that doesn't reference -lrt, however, we'd 
fail w/
Determining some 
sizes................................................Linker failed (see 
test.ldo) at lib/Parrot/Configure/Step.pm line 330
        Parrot::Configure::Step::cc_build() called at config/auto/sizes.pl 
line 52
        Configure::Step::runstep('undef') called at 
lib/Parrot/Configure/RunSteps.pm line 88
 
Parrot::Configure::RunSteps::runsteps('Parrot::Configure::RunSteps','ccflags',' 
:add{ -I/.cpan/build/ponie-2/perl}','debugging',1,'gc','libc') called at 
Configure.pl line 315
error at ./Configure.pl line 47.

test.ldo showed a failure to link -lrt
ld: fatal: library -lrt: not found
ld: fatal: File processing errors. No output written to test
collect2: ld returned 1 exit status

I found numerous mentions of removing -lrt from Solaris builds in 
perl/Changes but:
parrot/config/init/hints/solaris.pl
has:
my $libs = Configure::Data->get('libs');
if ( $libs !~ /-lpthread/ ) {
    $libs .= ' -lpthread';
}
if ( $libs !~ /-lrt\b/ ) {
    $libs .= ' -lrt';
}
Configure::Data->set(
    libs => $libs,
);

I tried adding the sed script -e ' s@ lrt @ @'  trick to:
perl/hints/solaris_2.sh
set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ 
ucb @ @
' -e 's@ sec @ @' -e 's@ crypt @ @' -e 's@ lrt @ @'`

but it didn't help so I commented out the lines in:
parrot/config/init/hints/solaris.pl

While that got it moved along, it now fails:
ops/core_ops.c
ops/io.ops: In function `Parrot_tell_i_i_p':
ops/io.ops:507: warning: right shift count >= width of type
ops/sys.ops: In function `Parrot_gmtime_s_i':
ops/sys.ops:170: too few arguments to function `asctime_r'
ops/sys.ops: In function `Parrot_gmtime_s_ic':
ops/sys.ops:170: too few arguments to function `asctime_r'
ops/sys.ops: In function `Parrot_localtime_s_i':
ops/sys.ops:179: too few arguments to function `asctime_r'
ops/sys.ops: In function `Parrot_localtime_s_ic':
ops/sys.ops:179: too few arguments to function `asctime_r'
make: *** [ops/core_ops.o] Error 1
error at Configure.pl line 49.

which, alas, may be related to -lrt or to sys/time.h.



Andy Bach, Sys. Mangler
Internet: [email protected] 
VOICE: (608) 261-5738  FAX 264-5932

Call out Gouranga be happy!!!
Gouranga Gouranga Gouranga ....
That which brings the highest happiness!!