develooper Front page | perl.perl5.porters | Postings from July 2001

macosx/darwin problems

From:
Larry Shatzer
Date:
July 12, 2001 12:53
Subject:
macosx/darwin problems
Message ID:
perl.perl5.porters-40320@nntp.perl.org
Trying to build bleadperl patch number 11314
(I apologize for the length of this email...)

If you have anything you want me to do, let me know, and I'll see what I 
can do...

sh Configure -des -Dusedevel -Uuseperlio -Dprefix=~/perl

[during configure]

Checking return type needed for prefix for Berkeley DB ...
Looking for a random number function...
OK, found random().
Use which function to generate random numbers? [random]
Checking to see how many bits your random() function produces...
try.c: In function `main':
try.c:23: warning: control reaches end of non-void function
How many bits does your random() function produce? [31]

[snip]

Checking how to generate random libraries on your machine...
try.c: In function `main':
try.c:50: warning: implicit declaration of function `select'
Your select() operates on 32 bits at a time.

[end of configure]

[during make]

pp_sys.c: In function `Perl_pp_system':
pp_sys.c:3967: warning: variable `sp' might be clobbered by `longjmp' 
or `vfork'
pp_sys.c:3967: warning: variable `mark' might be clobbered by `longjmp' 
or `vfork'

[snip]

DynaLoader.c: In function `XS_DynaLoader_dl_load_file':
DynaLoader.c:176: warning: unused variable `targ'
DynaLoader.c: In function `XS_DynaLoader_dl_find_symbol':
DynaLoader.c:209: warning: unused variable `targ'

[snip]

DB_File.xs: In function `btree_compare':
DB_File.xs:544: warning: unused variable `Perl___notused'
DB_File.xs: In function `btree_prefix':
DB_File.xs:615: warning: unused variable `Perl___notused'
DB_File.xs: In function `hash_cb':
DB_File.xs:693: warning: unused variable `Perl___notused'
DB_File.xs: In function `ParseOpenInfo':
DB_File.xs:914: warning: assignment from incompatible pointer type
DB_File.xs:957: warning: assignment from incompatible pointer type
DB_File.xs: In function `constant':
DB_File.xs:1618: warning: label `not_there' defined but not used
DB_File.c: In function `XS_DB_File_unshift':
DB_File.c:2032: warning: unused variable `Perl___notused'
DB_File.c: In function `XS_DB_File_pop':
DB_File.c:2090: warning: unused variable `Perl___notused'
DB_File.c: In function `XS_DB_File_shift':
DB_File.c:2136: warning: unused variable `Perl___notused'
DB_File.c: In function `XS_DB_File_push':
DB_File.c:2181: warning: unused variable `Perl___notused'
DB_File.c: In function `XS_DB_File_length':
DB_File.c:2240: warning: unused variable `Perl___notused'

[snip]

IO.c: In function `XS_IO__Handle_setvbuf':
IO.xs:387: warning: `type' might be used uninitialized in this function
IO.xs:388: warning: `size' might be used uninitialized in this function
IO.c: At top level:
IO.xs:45: warning: `not_here' defined but not used

[snip]

poll.c: In function `poll':
poll.c:57: warning: label `again' defined but not used

[snip]

SysV.c: In function `XS_IPC__Msg__stat_pack':
SysV.c:73: warning: unused variable `obj'
SysV.c: In function `XS_IPC__Msg__stat_unpack':
SysV.c:105: warning: unused variable `buf'
SysV.c:104: warning: unused variable `obj'
SysV.c: In function `XS_IPC__Semaphore__stat_unpack':
SysV.c:162: warning: unused variable `ds'
SysV.c:161: warning: unused variable `obj'
SysV.c: In function `XS_IPC__Semaphore__stat_pack':
SysV.c:204: warning: unused variable `obj'

[snip]

NDBM_File.xs: In function `XS_NDBM_File_STORE':
NDBM_File.xs:92: warning: implicit declaration of function `dbm_clearerr'
NDBM_File.c: In function `XS_NDBM_File_error':
NDBM_File.c:301: warning: implicit declaration of function `dbm_error'

[snip]

POSIX.c: In function `XS_POSIX_cuserid':
POSIX.c:3426: warning: unused variable `s'

[snip]

Piece.c:2: undefined or invalid # directive

[snip]

Warning: ignoring non-text typemap file '../typemap'

[end of make]
[start of make test]

make[1]: Nothing to be done for `all'.

[snip]

ext/DB_File/t/db-btree.............FAILED at test 0
ext/PerlIO/t/encoding..............FAILED at test 4
ext/POSIX/POSIX....................FAILED at test 10

[snip]

Failed 4 test scripts out of 408, 99.02% okay.
    ### Since not all tests were successful, you may want to run some
    ### of them individually and examine any diagnostic messages they
    ### produce.  See the INSTALL document's section on "make test".
    ### If you are testing the compiler, then ignore this message
    ### and run
    ###      ./perl harness
    ### in the directory ./t.
    ###
    ### Since most tests were successful, you have a good chance to
    ### get information with better granularity by running
    ###     ./perl harness
    ### in directory ./t.
u=5.96  s=0  cu=349.37  cs=62.51  scripts=408  tests=24118
make[2]: *** [_test_tty] Error 1
make[1]: *** [_test] Error 2
make: *** [test] Error 2
[end of make test]

I tried the perl harness in the t/ dir, and got this

[localhost:~/perl/bleadperl] lshatzer% cd t/
[localhost:~/perl/bleadperl/t] lshatzer% ./perl harness
dyld: ../perl can't open library: 
/Users/lshatzer/perl/lib/5.7.1/darwin-stdio/CORE/libperl.dylib  (No such 
file or directory, errno = 2)

I then made install, since I specified a ~/perl path, not to overwrite 
my system perl, and then ran perl harness

(There are perlio errors when I did -Duseperlio)
I also have removed any that just had ok.

[localhost:~/perl/bleadperl/t] lshatzer% ~/perl/bin/perl5.7.1 harness
base/rs...............................ok, 4/14 skipped:  on non-VMS 
system
io/utf8...............................skipped: not perlio
op/64bitint...........................skipped test on this platform
op/lfs................................skipped: no sparse files?
op/magic..............................ok, 4/41 skipped:  no caseless 
%ENV support
op/pat................................ok, 2/672 skipped:  only in EBCDIC
op/regexp_noamp.......................ok, 4/791 skipped: [no reason 
given]
op/sub_lval...........................ok, 3/64 skipped:  removed test
op/taint..............................ok, 7/174 skipped: various reasons
op/tr.................................ok, 2/70 skipped:  not EBCDIC
../ext/DB_File/t/db-btree.............dubious
         Test returned status 0 (wstat 10, 0xa)
../ext/DB_File/t/db-hash..............ok
../ext/DB_File/t/db-recno.............#
# Some older versions of Berkeley DB version 1 will fail tests 51,
# 53 and 55.
#
# You can safely ignore the errors if you're never going to use the
# broken functionality (recno databases with a modified bval).
# Otherwise you'll have to upgrade your DB library.
#
# If you want to use Berkeley DB version 1, then 1.85 and 1.86 are the
# last versions that were released. Berkeley DB version 2 is continually
# being updated -- Check out http://www.sleepycat.com/ for more details.
#
../ext/DB_File/t/db-recno.............FAILED tests 51, 53, 55
         Failed 3/128 tests, 97.66% okay
../ext/Fcntl/syslfs...................skipped: no sparse files?
../ext/GDBM_File/gdbm.................skipped: GDBM_File was not built
../ext/I18N/Langinfo/Langinfo.........skipped: I18N::Langinfo or POSIX 
unavailable
../ext/IPC/SysV/ipcsysv...............skipped: $Config{d_sem} undefined
../ext/IPC/SysV/t/msg.................skipped: $Config{d_sem} undefined
../ext/IPC/SysV/t/sem.................skipped: $Config{d_sem} undefined
../ext/ODBM_File/odbm.................skipped: ODBM_File was not built
../ext/PerlIO/PerlIO..................skipped: PerlIO not used
../ext/PerlIO/t/encoding..............FAILED test 4
         Failed 1/8 tests, 87.50% okay
../ext/PerlIO/t/scalar................skipped: not perlio
../ext/POSIX/POSIX....................FAILED test 10
         Failed 1/29 tests, 96.55% okay
../ext/Sys/Syslog/syslog..............ok, 3/6 skipped:  syslog doesn't 
accept inet connections)
../ext/Thread/thr5005.................skipped: no use5005threads
../lib/File/Spec......................ok, 53/246 skipped: various reasons
../lib/IPC/SysV.......................skipped: $Config{d_sem} undefined
../lib/Memoize/t/tie_gdbm.............skipped test on this platform
../lib/Net/t/ftp......................skipped test on this platform
../lib/Net/t/nntp.....................skipped test on this platform
../lib/Net/t/smtp.....................skipped test on this platform
../lib/Test/t/mix.....................ok, 1/4 skipped: [no reason 
given], 1/4 unexpectedly succeeded
../lib/Test/t/success.................ok, 1/11 skipped: [no reason given]
../lib/Test/t/todo....................ok, 2/5 unexpectedly succeeded
(I got something similar as below with the make test, but I didn't 
copy/paste it also)
../lib/warnings.......................ok 305/438PROG:
# pp_hot.c [pp_print]
use warnings 'io' ;
print STDIN "anc";
print <STDOUT>;
print <STDERR>;
open(FOO, ">&STDOUT") and print <FOO>;
print getc(STDERR);
print getc(FOO);
####################################################################
# The next test is known to fail on some systems (Linux+old glibc, #
# some *BSDs (including Mac OS X and NeXT), among others.          #
# We skip it for now (on the grounds that it is "just" a warning). #
####################################################################
#read(FOO,$_,1);
no warnings 'io' ;
print STDIN "anc";
EXPECTED:
Filehandle STDIN opened only for input at - line 3.
Filehandle STDOUT opened only for output at - line 4.
Filehandle STDERR opened only for output at - line 5.
Filehandle FOO opened only for output at - line 6.
Filehandle STDERR opened only for output at - line 7.
Filehandle FOO opened only for output at - line 8.
GOT:
Filehandle STDIN opened only for input at - line 3.
Filehandle STDOUT opened only for output at - line 4.
Filehandle STDERR opened only for output at - line 5.
Filehandle STDERR opened only for output at - line 7.
../lib/warnings.......................FAILED test 306
         Failed 1/438 tests, 99.77% okay
Failed Test                 Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
../ext/DB_File/t/db-btree.t    0    10    ??   ??       %  ??
../ext/DB_File/t/db-recno.t              128    3   2.34%  51 53 55
../ext/POSIX/POSIX.t                      29    1   3.45%  10
../ext/PerlIO/t/encoding.t                 8    1  12.50%  4
../lib/warnings.t                        438    1   0.23%  306
  (3 subtests UNEXPECTEDLY SUCCEEDED), 18 tests and 84 subtests skipped.
Failed 5/427 test scripts, 98.83% okay. 6/24118 subtests failed, 99.98% 
okay.

-- Larry



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About