bin/77648: compiling syslog.c fails on 5-STABLE

Tuure Laurinolli tuure at laurinolli.net
Thu Feb 17 09:40:22 PST 2005


>Number:         77648
>Category:       bin
>Synopsis:       compiling syslog.c fails on 5-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 17 17:40:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Tuure Laurinolli
>Release:        RELENG_5_3
>Organization:
>Environment:
FreeBSD vortex.home.lan 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #12: Wed Jan 12 03:50:31 EET 2005     root at vortex.home.lan:/usr/obj/usr/src/sys/VORTEX  i386
>Description:
When doing buildworld of RELENG_5, compiling fails in the following way:

cc -g -O -pipe -march=pentium3 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/gen/syslog.c
/usr/src/lib/libc/gen/syslog.c: In function `connectlog':
/usr/src/lib/libc/gen/syslog.c:365: error: `_PATH_LOG_PRIV' undeclared (first use in this function)
/usr/src/lib/libc/gen/syslog.c:365: error: (Each undeclared identifier is reported only once
/usr/src/lib/libc/gen/syslog.c:365: error: for each function it appears in.)
*** Error code 1

Stop in /usr/src/lib/libc.

_PATH_LOG_PRIV is actually defined in /usr/src/sys/sys/syslog.h, but the file installed on the system (v 1.24) is used instead of the file to-be-installed in RELENG_5 (v 1.24.2.2). The old version does nto define _PATH_LOG_PRIV
>How-To-Repeat:
make buildworld on RELENG_5 sources on RELENG_5_3
>Fix:
I could upgrade the header file in /usr/include/sys by hand, but that isn't a nice solution. Adding /usr/src/sys/sys to libc Makefile did not help, I guess it gets added to the search path after the include paths defined in environment.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list