NetBSD Problem Report #12308
Received: (qmail 14850 invoked from network); 1 Mar 2001 21:37:09 -0000
Message-Id: <200103012137.f21Lb3X00349@colwyn.zhadum.de>
Date: Thu, 1 Mar 2001 22:37:03 +0100 (CET)
From: Matthias Scheler <tron@colwyn.zhadum.de>
Reply-To: tron@colwyn.zhadum.de
To: gnats-bugs@gnats.netbsd.org
Subject: "jpilot-syncmal" package cannot be built
X-Send-Pr-Version: 3.95
>Number: 12308
>Category: pkg
>Synopsis: "jpilot-syncmal" package cannot be built
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 01 21:38:00 +0000 2001
>Closed-Date: Sun Mar 04 06:35:55 +0000 2001
>Last-Modified: Sun Mar 04 06:35:55 +0000 2001
>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:
State-Changed-From-To: open->feedback
State-Changed-By: jlam
State-Changed-When: Thu Mar 1 16:15:12 PST 2001
State-Changed-Why:
I've committed a change to define __unix__ in the appropriate header.
I think this should fix the compilation problem you experienced. I've
also made the change you suggested in the second half of the PR. Please
let me know if things are still broken.
Thanks!
-- jlam
State-Changed-From-To: feedback->closed
State-Changed-By: jlam
State-Changed-When: Sat Mar 3 22:35:19 PST 2001
State-Changed-Why:
PR fixed as confirmed by PR author.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.