pkgsrc-Bugs archive

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

pkg/25854: ptmx on NetBSD-current messed up BasiliskII



>Number:         25854
>Category:       pkg
>Synopsis:       ptmx on NetBSD-current messed up BasiliskII
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 07 10:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wiese
>Release:        NetBSD 2.0F
>Organization:
Linux User Group Halberstadt
>Environment:
        
        
System: NetBSD schroeder.singeklub.invalid 2.0F NetBSD 2.0F (SCHROEDER) #4: Fri 
Jun 4 22:24:30 CEST 2004 
root%schroeder.singeklub.invalid@localhost:/sys/arch/i386/compile/SCHROEDER i386
Architecture: i386
Machine: i386
>Description:
The ptmx support of NetBSD-current messed up the BasiliskII package.  Its
build aborts with the following message:

#v+
gcc -I/usr/pkg/include -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H  -DOS_netb
d -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASEEMBLY
 -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE -DFPU_IEEE -D_REENTRANT -DDATADIR=\"/u
sr/pkg/share/BasiliskII\" -O2 -I/usr/pkg/include -I/usr/X11R6/include -fomit-fra
me-pointer -c sshpty.c -o obj/sshpty.o
sshpty.c: In function `pty_allocate':
sshpty.c:147: error: `mysig_t' undeclared (first use in this function)
sshpty.c:147: error: (Each undeclared identifier is reported only once
sshpty.c:147: error: for each function it appears in.)
sshpty.c:147: error: parse error before "old_signal"
sshpty.c:154: error: `old_signal' undeclared (first use in this function)
sshpty.c:154: error: `SIGCHLD' undeclared (first use in this function)
sshpty.c:154: error: `SIG_DFL' undeclared (first use in this function)
sshpty.c:182: error: `I_PUSH' undeclared (first use in this function)
gmake: *** [obj/sshpty.o] Error 1
*** Error code 2
[...]
#v-

The problems with SIGCHLD and SIG_DFL errors can obviously be fixed by
including <signal.h> at the beginning of the file, but all other problems
stay.  I couldn't find any header file including a typedef for mysig_t or
a macro I_PUSH.  I guessed mysig_t is just a 'typedef void (*mysigl_t)(int)'
but then you get 'assignment makes pointer from integer without a cast' at
approx. line 157 (after doing the changes).  That's because of the missing
declaration of mysignal().  Besides 'configure', 'config.log' and
'autom4e-2.5x.cache/output.0' I didn't even find the file where it is
_defined_.
>How-To-Repeat:
Try to compile BasiliskII on NetBSD-current.
>Fix:
You can make the package build by commenting out the line

#define HAVE_DEV_PTMX 1

in src/Unix/config.h
>Release-Note:
>Audit-Trail:
>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index