pkgsrc-Bugs archive

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

pkg/46003: bootstrap failed on Linux with gcc 4.6.1 because of libutil.h location



>Number:         46003
>Category:       pkg
>Synopsis:       bootstrap failed on Linux with gcc 4.6.1  because of libutil.h 
>location
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 11:55:00 +0000 2012
>Originator:     Litvinov Sergey
>Release:        Linux Ubuntu
>Organization:
>Environment:
Linux desktop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012 i686 
athlon i386 GNU/Linux
>Description:
Bootstrap fails with the following error

gcc -O2 -Wno-error -I/usr/include -Wno-error  -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type 
-Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022 
-I/media/sdb2/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch 
-DHAVE_NBCOMPAT_H=1 
-I/media/sdb2/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat
 -I/usr/include -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -DFTP_COMBINE_CWDS -c 
common.c
In file included from 
/media/sdb2/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat/nbcompat/util.h:39:0,
                 from 
/media/sdb2/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:67,
                 from common.c:37:
/usr/include/libutil.h:33:2: error: #warning "Deprecated header, use 
<bsd/libutil.h> or libbsd-overlay.pc instead." [-Werror=cpp]
cc1: all warnings being treated as errors

*** Error code 1

Stop.
bmake: stopped in 
/media/sdb2/src/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch
*** Error code 1

Stop.
bmake: stopped in /media/sdb2/src/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
bmake: stopped in /media/sdb2/src/pkgsrc/pkgtools/pkg_install
===> exited with status 1
aborted.

>How-To-Repeat:
On Ubuntu Linux with gcc 4.6.1
SH=/bin/bash ./bootstrap --ignore-user-check --prefix=$HOME/netbsd
>Fix:
I changed here to bypass on my system.

RCS file: /cvsroot/pkgsrc/pkgtools/libnbcompat/files/nbcompat/util.h,v
retrieving revision 1.2
diff -u -r1.2 util.h
--- util.h      29 Apr 2008 05:46:08 -0000      1.2
+++ util.h      12 Feb 2012 11:49:28 -0000
@@ -36,7 +36,7 @@
 # include <util.h>
 #endif
 #if HAVE_LIBUTIL_H
-# include <libutil.h>
+# include <bsd/libutil.h>
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index