Bug 115791 - [PATCH] net-mgmt/aguri: fix GCC 4.2 builds
Summary: [PATCH] net-mgmt/aguri: fix GCC 4.2 builds
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 21:00 UTC by Hung-Yi Chen
Modified: 2007-09-02 15:00 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (175 bytes, patch)
2007-08-24 21:00 UTC, Hung-Yi Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2007-08-24 21:00:04 UTC
Fix build breakage under gcc 4.2

Fix: 

extern char *fmt_string;
-extern int read_count;
 extern struct timeval start_time, end_time;
 extern int debug;
 extern int time_slot;
--- patch-aguri.h ends here -----J85s13BrYXX8y09oLSTSQ5DZ0cByPd7w3EXtM7rYuGk7B2PQ
Content-Type: text/plain; name="patch-Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch-Makefile"

--- Makefile.orig       2003-03-13 13:01:28.000000000 +0800
+++ Makefile    2007-08-25 02:34:34.000000000 +0800
@@ -11,9 +11,9 @@
 	scripts/makeimages.pl scripts/density.pl

 CFLAGS=		-O2 -Wall -DNDEBUG
-DEFINES=		-DINET6 -DAGURI_STATS $(SYS_DEFINES) # -DXTREE
-INCLUDES=		-I. $(COMPAT_INCLUDES) $(SYS_INCLUDES) # -I/usr/X11R6/include
-LIBS=		$(SYS_LIBS) -lpcap # -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11
+DEFINES=		-DINET6 -DAGURI_STATS $(SYS_DEFINES) -DXTREE
+INCLUDES=		-I. $(COMPAT_INCLUDES) $(SYS_INCLUDES) -I${X11BASE}/include
+LIBS=		$(SYS_LIBS) -lpcap -R${X11BASE}/lib -L${X11BASE}/lib -lX11

 all: $(PROG)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-24 21:00:12 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Yann Berthier 2007-09-01 12:42:42 UTC
   Hello,

On Fri, 24 Aug 2007, at 20:00, Edwin Groothuis wrote:

> Maintainer of net-mgmt/aguri,
> 
> Please note that PR ports/115791 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.

   Yes please !

   and thx to submitter
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-09-02 14:55:49 UTC
arved       2007-09-02 13:55:44 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/aguri       Makefile 
  Added files:
    net-mgmt/aguri/files patch-aguri.h 
  Log:
  Fix build with gcc42
  
  PR:             115791
  Submitted by:   Hung-Yi Chen <gaod@hychen.org>
  Approved by:    Yann Berthier <yb@bashibuzuk.net>
  
  While here replace USE_XLIB with USE_XORG
  
  Revision  Changes    Path
  1.5       +5 -1      ports/net-mgmt/aguri/Makefile
  1.1       +10 -0     ports/net-mgmt/aguri/files/patch-aguri.h (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2007-09-02 14:55:55 UTC
State Changed
From-To: feedback->closed

Committed, thanks!