Date: Fri, 04 Jul 2003 20:18:31 +0200 From: Alexander Marx <mad@madness.at> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/54108: [PATCH] port misc/afbackup does not build on 5.1 Message-ID: <E19YV8h-000IfL-DT@cronos.madness.at> Resent-Message-ID: <200307041820.h64IKEc2082324@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 54108 >Category: ports >Synopsis: [PATCH] port misc/afbackup does not build on 5.1 >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 Jul 04 11:20:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Alexander Marx <mad@madness.at> >Release: FreeBSD 5.1-RELEASE i386 >Organization: >Environment: FreeBSD cube.madness.at 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Jun 13 01:00:38 CEST 2003 root@cube.madness.at:/usr/obj/usr/src/sys/CUBE1 i386 >Description: ports/misc/afbackup fails to build on 5.1 systems >How-To-Repeat: cube# make NO_GUI=yes ===> afbackup-3.3.5_2 is marked as broken: Does not compile. after commenting out th OSVERSION check in the makefile it starts to build, but bails out with some syntax errors in utils.h cube# make NO_GUI=yes ===> Building for afbackup-3.3.5_2 (cd intl; make all) ... SD_5 -DOSNAME=FreeBSD_5 -D_THREAD_SAFE -DHAVE_DES_ENCRYPTION -DUSE_ZLIB -DLOCALEDIR=\"/usr/local/share/afbackup/locale\" __numset.c In file included from __numset.c:2: utils.h:202: syntax error before "time_from_datestr" utils.h:202: warning: data definition has no type or storage class utils.h:203: syntax error before "strint2time" utils.h:203: warning: data definition has no type or storage class utils.h:219: syntax error before "UChar" utils.h:222: syntax error before "UChar" *** Error code 1 Stop in /usr/ports/misc/afbackup/work/afbackup-3.3.5. *** Error code 1 Stop in /usr/ports/misc/afbackup. cube# >Fix: The below fix corrects this problem. Verified to compile on 5.1-RELEASE and 4.8-STABLE. --- utils.h.orig Sat Jun 28 02:00:49 2003 +++ utils.h Sat Jun 28 02:04:23 2003 @@ -10,6 +10,8 @@ #include <string.h> #include <math.h> #include <x_types.h> +#include <time.h> +#include <sys/types.h> #define NO_ERROR 0 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19YV8h-000IfL-DT>