This distribution has been tested as part of the cpan-testers
effort to test as many new uploads to CPAN as possible.  See
http://testers.cpan.org/

Please cc any replies to [EMAIL PROTECTED] to keep other
test volunteers informed and to prevent any duplicate effort.

-- 
gcc -c  -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O     -DVERSION=\"1.1\" -DXS_VERSION=\"1.1\" -fPIC 
-I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE  Lastlog.c
Lastlog.xs: In function `getllent':
Lastlog.xs:47: storage size of `llent' isn't known
Lastlog.xs:56: sizeof applied to an incomplete type
Lastlog.xs:56: sizeof applied to an incomplete type
Lastlog.xs: In function `getlluid':
Lastlog.xs:69: storage size of `llent' isn't known
Lastlog.xs:81: sizeof applied to an incomplete type
Lastlog.xs:84: sizeof applied to an incomplete type
Lastlog.xs:84: sizeof applied to an incomplete type
Lastlog.xs: In function `get_lastlog_fd':
Lastlog.xs:103: `_PATH_LASTLOG' undeclared (first use in this function)
Lastlog.xs:103: (Each undeclared identifier is reported only once
Lastlog.xs:103: for each function it appears in.)
Lastlog.xs: In function `llent2hashref':
Lastlog.xs:129: dereferencing pointer to incomplete type
Lastlog.xs:130: dereferencing pointer to incomplete type
Lastlog.xs:131: dereferencing pointer to incomplete type
make: *** [Lastlog.o] Error 1
  /usr/local/bin/make  -- NOT OK

As the README says, struct lastlog is defined in lastlog.h on Solaris,
and USE_LASTLOG_H isn't defined by default.  But even with
-DUSE_LASTLOG_H:

gcc -c  -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O     -DVERSION=\"1.1\" -DXS_VERSION=\"1.1\" -fPIC 
-I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -DUSE_LASTLOG_H Lastlog.c
Lastlog.xs: In function `get_lastlog_fd':
Lastlog.xs:103: `_PATH_LASTLOG' undeclared (first use in this function)
Lastlog.xs:103: (Each undeclared identifier is reported only once
Lastlog.xs:103: for each function it appears in.)
make: *** [Lastlog.o] Error 1

There is no paths.h on Solaris, so _PATH_LASTLOG also needs to be
defined.  On Solaris 7, lastlog is in /var/adm.  So, with an
additional define:

bin@leprss% make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib 
-I/usr/local/lib/perl5/5.6.0/sun4-solaris -I/usr/local/lib/perl5/5.6.0 test.pl
1..5
ok 1
ok 2
ok 3
ok 4
ok 5

The README needs to be modified or some ./configure like discovery
needs to be done.



--

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos leprss.gsfc.nasa.gov 5.7 generic_106541-08 sun4u sparc 
sunw,ultra-5_10 '
    config_args='-Dcc=gcc -Dprefix=/usr/local -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lsec
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Reply via email to