Re: Fixing gcc 3.3 compile failures

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Thu, 17 Jul 2003 20:28:37 -0700
On Thu, Jul 17, 2003 at 07:52:00PM -0700, Kris Kennaway wrote:

> Most of the new compile failures are caused by 3 or 4 types of failure
> mode (all of which have to do with stricter standards compliance in
> the new compiler suite).  I haven't yet looked at how to fix most of
> them: if you figure out a patch for a class of failures, please post
> it in response to this email so we can all see how to do it.

http://bento.freebsd.org/errorlogs/i386-5-latest/nap-1.5.1.log
...
title.h:7:1: missing terminating " character
...

A fix is similar to this:

--- src/nap.c.orig	Thu Jul 17 20:21:08 2003
+++ src/nap.c	Thu Jul 17 20:22:02 2003
_at__at_ -542,21 +542,20 _at__at_
 
   if (!getval("connection")) {
     if (!info.daemon) {
-      wp(NULL, "
-          Connection | Number
-          -------------------
-          Unknown    |  0
-          14.4       |  1
-          28.8       |  2
-          33.6       |  3
-          56.7       |  4
-          64K ISDN   |  5
-          128K ISDN  |  6
-          Cable      |  7
-          DSL        |  8
-          T1         |  9
-          T3 or >    | 10
-\n");
+      wp(NULL, "\
+          Connection | Number\n\
+          -------------------\n\
+          Unknown    |  0\n\
+          14.4       |  1\n\
+          28.8       |  2\n\
+          33.6       |  3\n\
+          56.7       |  4\n\
+          64K ISDN   |  5\n\
+          128K ISDN  |  6\n\
+          Cable      |  7\n\
+          DSL        |  8\n\
+          T1         |  9\n\
+          T3 or >    | 10\n");
       wp(NULL, "How fast is your internet connection?\n");
       wp(NULL, "Please choose 0--10 from the chart: [4] ");
       ans = nap_getline(stdin);

Be careful not to introduce or remove any newlines when you patch
this.

Kris

Received on Thu Jul 17 2003 - 18:28:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC