Fixing gcc 3.3 compile failures

Kris Kennaway kris at obsecurity.org
Thu Jul 17 20:28:39 PDT 2003


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
@@ -542,21 +542,20 @@
 
   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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030717/34025049/attachment.bin


More information about the freebsd-current mailing list