Subject: lib/25427: libc is missing some *_r support functions(?)
To: None <gnats-bugs@gnats.NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 05/02/2004 11:14:24
>Number:         25427
>Category:       lib
>Synopsis:       libc is missing some *_r support functions(?)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 02 09:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD sunny-weather.duskware.de 2.0E NetBSD 2.0E (SUNNY) #0: Sun May 2 00:04:47 CEST 2004 martin@sunny-weather.duskware.de:/usr/src/sys/arch/sparc64/compile/SUNNY sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Trying to build pkgsrc/lang/perl58-thread on -current does not work:

`sh  cflags "optimize='-O2 -pipe'" pp_sys.o` -DPIC -fPIC pp_sys.c
          CCCMD =  gcc -DPERL_CORE -c -fno-strict-aliasing -I/usr/pkg/include -O2 -pipe  -Wall
pp_sys.c: In function `Perl_pp_gprotoent':
pp_sys.c:4888: warning: implicit declaration of function `getprotobyname_r'
pp_sys.c:4896: warning: implicit declaration of function `getprotobynumber_r'
pp_sys.c:4903: warning: implicit declaration of function `getprotoent_r'
pp_sys.c: In function `Perl_pp_gservent':
pp_sys.c:4980: warning: implicit declaration of function `getservbyname_r'
pp_sys.c:4996: warning: implicit declaration of function `getservbyport_r'
pp_sys.c:5003: warning: implicit declaration of function `getservent_r'
pp_sys.c: In function `Perl_pp_sprotoent':
pp_sys.c:5076: warning: implicit declaration of function `setprotoent_r'
pp_sys.c:5076: error: structure has no member named `_protoent_data'
pp_sys.c: In function `Perl_pp_sservent':
pp_sys.c:5087: warning: implicit declaration of function `setservent_r'
pp_sys.c:5087: error: structure has no member named `_servent_data'
pp_sys.c: In function `Perl_pp_eprotoent':
pp_sys.c:5122: warning: implicit declaration of function `endprotoent_r'
pp_sys.c:5122: error: structure has no member named `_protoent_data'
pp_sys.c: In function `Perl_pp_eservent':
pp_sys.c:5134: warning: implicit declaration of function `endservent_r'
pp_sys.c:5134: error: structure has no member named `_servent_data'
*** Error code 1

I'm filing this as a lib bug, instead of a pkgsrc bug, since I'm not sure
if perl is correct here, but for now I'm assuming it is. If someone could
tell me this (or some of this) features are optional and will not apear
in our libc in the future, and point me to the proper #ifdefs to check,
I'll change category to pkg and fix the perl package instead.

>How-To-Repeat:

Just build perl58-thread

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: