NetBSD-Bugs archive

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

bin/48883: sed update uses non portable REG_STARTEND

>Number:         48883
>Category:       bin
>Synopsis:       sed update uses non portable REG_STARTEND
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 08 22:50:00 +0000 2014
>Originator:     Justin Cormack
>Release:        HEAD 20140806
The sed update from FreeBSD sed a couple of days ago now requires REG_STARTEND 
support in its regex.h to build. As this is required for cross building NetBSD, 
a cross build fails on a host without support, with:

#   compile  sed/misc.lo
cc -O 
-I/home/justin/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 
-c -o misc.lo.o    /home/justin/src/tools/sed/../../usr.bin/sed/misc.c
mv misc.lo.o misc.lo
#   compile  sed/process.lo
cc -O 
-I/home/justin/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 
-c -o process.lo.o    /home/justin/src/tools/sed/../../usr.bin/sed/process.c
/home/justin/src/tools/sed/../../usr.bin/sed/process.c: In function 'regexec_e':
/home/justin/src/tools/sed/../../usr.bin/sed/process.c:665:49: error: 
'REG_STARTEND' undeclared (first use in this function)
/home/justin/src/tools/sed/../../usr.bin/sed/process.c:665:49: note: each 
undeclared identifier is reported only once for each function it appears in

Our man page for regex(3) says of REG_STARTEND:

This is an
extension, compatible with but not specified by IEEE Std
1003.2-1992 (``POSIX.2''), and should be used with caution
in software intended to be portable to other systems.

>How-To-Repeat: on host without REG_STARTEND support in regex library.

Home | Main Index | Thread Index | Old Index