ports/56063:

Scott M. Likens damm at fpsn.net
Thu Aug 28 01:10:24 UTC 2003


>Number:         56063
>Category:       ports
>Synopsis:       
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 27 18:10:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Scott M. Likens
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
>Environment:


System: FreeBSD acheron.livid.de 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #0: Tue Aug 19 22:18:26 PDT 2003     damm at acheron.livid.de:/usr/src/sys/i386/compile/LIVID i386  


>Description:


ports/net/lft has a slight problem on 4.x servers

GCC 2.95 does not support atol on 4.x, where as 5.x has atol, to
solve this slight problem we must use either a version check, or
use depreciated atoll


>How-To-Repeat:





>Fix:


### begin patch ###

--- lft-2.2/lft.c       Wed May  7 15:43:30 2003
+++ lft/lft.c   Wed Aug 27 17:50:18 2003
@@ -24,7 +24,7 @@
 
 #include "acconfig.h"
 #include <assert.h>
-
+#define INT_MAX ((int))~0U>>1))
 #ifdef __CYGWIN__
 #define __USE_W32_SOCKETS
 #include "windows.h"
@@ -1131,7 +1131,7 @@
       dport = atoi (optarg);
       break;
     case 'q':
-      seq_start = atol (optarg);
+      seq_start = atoll (optarg);
       break;
     case 'w':
       win_len = atoi(optarg);
### end patch ###

submit patch, test, enjoy.  Slight annoyances... but a real problem.


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



More information about the freebsd-ports-bugs mailing list