Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2007 18:44:41 GMT
From:      Alex Stangl <alex@stangl.us>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/118936: sysutils/hal fails to compile on FreeBSD v6.0
Message-ID:  <200712211844.lBLIifnn002520@www.freebsd.org>
Resent-Message-ID: <200712211850.lBLIo11m007474@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118936
>Category:       ports
>Synopsis:       sysutils/hal fails to compile on FreeBSD v6.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 21 18:50:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alex Stangl
>Release:        6.0 (__FreeBSD_version 600034)
>Organization:
>Environment:
FreeBSD scout.stangl.us 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Attempting to build sysutils/hal under FreeBSD 6.0 produces the following error.
#if guard block at line 62 doesn't seem to have the correct version number.

cc -O2 -fno-strict-aliasing -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -o .libs/hald-probe-volume hald_probe_volume-freebsd_dvd_rw_utils.o hald_probe_volume-probe-volume.o  -L/usr/local/lib /usr/local/lib/libglib-2.0.so -licui18n /usr/local/lib/libpcre.so -lvolume_id ../../../hald/freebsd/libprobe/.libs/libhald_freebsd_probe.so /usr/ports/sysutils/hal/work/hal-0.5.8.20071216/libhal/.libs/libhal.so /usr/local/lib/libdbus-1.so -pthread /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lcam  -Wl,--rpath -Wl,/usr/local/lib
hald_probe_volume-probe-volume.o(.text+0x592): In function `main':
: undefined reference to `isonum_731'
gmake[5]: *** [hald-probe-volume] Error 1



>How-To-Repeat:
in FreeBSD version 600034,

$ cd /usr/ports/sysutils/hal
$ make

>Fix:
Change hal-0.5.8.20071216/hald/freebsd/probing/probe-volume.c, 
line 62 guard for ISO number definition should be:

#if __FreeBSD_version < 600101

instead of 

#if __FreeBSD_version < 600000


(By my reckoning, the new ISO number definitions got added to iso.h between 600100 and 600101.)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712211844.lBLIifnn002520>