Subject: pkg/12308: "jpilot-syncmal" package cannot be built
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 03/01/2001 22:37:03
>Number:         12308
>Category:       pkg
>Synopsis:       "jpilot-syncmal" package cannot be built
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 01 13:38:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        2001/03/01
>Organization:
Matthias Scheler                                         http://core.de/~tron/
>Environment:
System: NetBSD colwyn.zhadum.de 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (COLWYN) #0: Tue Feb 27 11:54:13 CET 2001 tron@colwyn.zhadum.de:/src/sys/compile/COLWYN i386


>Description:
The "jpilot-syncmal" packages cannot be build under NetBSD 1.5.1_ALPHA
and today's NetBSD-current (1.5S) on the "i386" port:

cc -O2 -DMALSYNC -I/usr/pkgsrc/comms/malsync/work/malsync/mal/common -I/usr/pkgsrc/comms/malsync/work/malsync/mal/client/common -I/usr/pkgsrc/comms/malsync/work/malsync/mal/client/unix -I/usr/pkg/include/jpilot -DPACKAGE=\"syncmal\" -DVERSION=\"0.60\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_UTIME_NULL=1 -I/usr/X11R6/include -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/X11R6/include -I/usr/pkg/include -c /usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c  -fPIC -DPIC -o /usr/pkgsrc/comms/malsync/work/malsync/mal/common/.libs/AGBufferedNet.o
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c: In function `AGNetGetError':
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:804: `errno' undeclared (first use in this function)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:804: (Each undeclared identifier is reported only once
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:804: for each function it appears in.)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:806: `EINPROGRESS' undeclared (first use in this function)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:808: `EAGAIN' undeclared (first use in this function)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:810: `EALREADY' undeclared (first use in this function)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:812: `EISCONN' undeclared (first use in this function)
/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.c:807: warning: unreachable code at beginning of switch statement
gmake: *** [/usr/pkgsrc/comms/malsync/work/malsync/mal/common/AGBufferedNet.lo] Error 1
*** Error code 2

Furthermore the package uses an old ugly hack in "bsd.pkg.mk" to get the
sources of "malsync":

BUILD_DEPENDS+=         ${MALSRC}/client/unix/MAL31UserConfig.c:${MALDIR}:patch

This leads to problems like experienced in the "Mesa-glx" package. It would
be much better to include "malsync_2.0.5.src.tar.gz" in the list of
distribution files for the "jpilot-syncmal" package and extract it there.

>How-To-Repeat:
cd /usr/pkgsr/comms/jpilot-syncmal
make

>Fix:
None provided.

>Release-Note:
>Audit-Trail:
>Unformatted: