pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/42082: sysutils/p5-Sys-Utmp compilation error (NetBSD 4.0 / i386)

>Number:         42082
>Category:       pkg
>Synopsis:       sysutils/p5-Sys-Utmp compilation error (NetBSD 4.0 / i386)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 17 16:25:00 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386     pkgsrc current 2009-09-17
        Prince of Songkla University
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 i386
Architecture: i386
Machine: i386
        sysutils/p5-Sys-Utmp dectalres its own utmpname() function
        which returns void.

        /usr/include/utmp.h declares utmpname() as returning int.


        I use pkg_comp with NetBSD 4.0 release sets installed, and libkver.
        This makes a NetBSD 4.0 release environment (I don't use x* sets,
        but pkgsrc modular xorg, but that is irrelevant here).  In fact,
        with the possible exception of "4.0 release" all of this is irrelevant.

        In that environment I see ...

===> Building for p5-Sys-Utmp-1.6
cp lib/Sys/Utmp/ blib/lib/Sys/Utmp/
cp lib/Sys/ blib/lib/Sys/
/usr/pkg/bin/perl /usr/pkg/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap 
/usr/pkg/lib/perl5/5.10.0/ExtUtils/typemap  Utmp.xs > Utmp.xsc && mv Utmp.xsc 
cc -c    -fno-strict-aliasing -pipe -O2  -I/usr/include     -I/usr/include    
-DVERSION=\"1.6\"  -DXS_VERSION=\"1.6\" -DPIC -fPIC 
"-I/usr/pkg/lib/perl5/5.10.0/i386-netbsd-thread-multi/CORE"  -DNOUTFUNCS Utmp.c
Utmp.xs:60: error: conflicting types for 'utmpname'
/usr/include/utmp.h:64: error: previous declaration of 'utmpname' was here
*** Error code 1

make: stopped in /pkg_comp/obj/pkgsrc/sysutils/p5-Sys-Utmp/4x/Sys-Utmp-1.6
*** Error code 1

make: stopped in /usr/pkgsrc/sysutils/p5-Sys-Utmp
*** Error code 1

        Line 64 of (the NetBSD 4.0) /usr/include/utmp.h is

int utmpname(const char *);

        The error occurs with ...

static char _ut_name[] = _PATH_UTMP;

void utmpname(char *filename)
   strcpy(_ut_name, filename);

        Why does this not use utmpname() from libwhatever ???

Home | Main Index | Thread Index | Old Index