ports/144845: [patch] lang/guile: Fails to build on recent 9-CURRENT due to including sys/timeb.h
Scot Hetzel
swhetzel at gmail.com
Thu Mar 18 03:40:02 UTC 2010
>Number: 144845
>Category: ports
>Synopsis: [patch] lang/guile: Fails to build on recent 9-CURRENT due to including sys/timeb.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 18 03:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Scot Hetzel
>Release: FreeBSD 9.0-CURRENT
>Organization:
>Environment:
>Description:
Due to the recent change to add a warning to sys/timeb.h in 9-CURRENT, lang/guile fails to build due to it sets the -Werror flag.
>How-To-Repeat:
Update to a recent 9-CURRENT
cd /usr/ports/lang/guile
make build
./guile-snarf -o stacks.x stacks.c -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -O2 -pipe -march=nocona -fno-strict-aliasing -Wall -Wmissing-prototypes -Werror
./guile-snarf -o stime.x stime.c -DHAVE_CONFIG_H -I.. -I.. -I.. -I/usr/local/include -O2 -pipe -march=nocona -fno-strict-aliasing -Wall -Wmissing-prototypes -Werror
In file included from stime.c:76:
/usr/include/sys/timeb.h:42:2: error: #warning "this file includes
<sys/timeb.h> which is deprecated"
gmake[2]: *** [stime.x] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.6/libguile'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.6'
gmake: *** [all] Error 2
*** Error code 1
Stop in /usr/ports/lang/guile.
>Fix:
The fix to this problem is to remove the check for sys/timeb.h from the configure.in file.
The attached patch provides this fix.
Patch attached with submission follows:
--- files/patch-configure.in-orig 2008-07-22 01:22:18.000000000 +0000
+++ files/patch-configure.in 2010-03-17 21:41:18.430337365 +0000
@@ -1,6 +1,15 @@
---- configure.in 2008-07-09 14:38:42.000000000 +0800
-+++ configure.in 2008-07-09 14:41:01.000000000 +0800
-@@ -692,12 +692,13 @@
+--- configure.in.orig 2008-12-08 17:42:52.000000000 +0000
++++ configure.in 2010-03-17 21:41:00.869992126 +0000
+@@ -622,7 +622,7 @@
+ #
+ AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \
+ regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \
+-sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
++sys/time.h sys/times.h sys/stdtypes.h sys/types.h \
+ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
+ direct.h strings.h])
+
+@@ -725,12 +725,13 @@
# sys/param.h - not in mingw
# pthread.h - only available with pthreads. ACX_PTHREAD doesn't
# check this specifically, we need it for the timespec test below.
@@ -15,7 +24,7 @@
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
AC_CHECK_DECLS([sethostname, strncasecmp])
-@@ -1190,9 +1191,11 @@
+@@ -1260,9 +1261,11 @@
# all; not present on MacOS X or Solaris 10
# pthread_get_stackaddr_np - "np" meaning "non portable" says it
# all; specific to MacOS X
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list