Bug 54108 - [PATCH] port misc/afbackup does not build on 5.1
Summary: [PATCH] port misc/afbackup does not build on 5.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vadim Belman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-04 19:20 UTC by Alexander Marx
Modified: 2003-09-03 10:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Marx 2003-07-04 19:20:14 UTC
ports/misc/afbackup fails to build on 5.1 systems

Fix: The below fix corrects this problem. Verified to compile on 5.1-RELEASE
 and 4.8-STABLE.



#define        NO_ERROR        0--q7Wus8GGj6ob3N1J2oBZBh3a8yX8u8sDVqIVCMcQG7ds0Dyi
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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>
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#
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2003-07-07 10:23:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->voland@catpipe.net

Over to maintainer. 
Looks good for me, please approve or reject this patch.
Comment 2 Kirill Ponomarev freebsd_committer freebsd_triage 2003-09-03 10:40:30 UTC
State Changed
From-To: open->closed

Committed, thanks!