fix print/gv (was: Re: Fixing gcc 3.3 compile failures)

From: Lukas Ertl <l.ertl_at_univie.ac.at>
Date: Fri, 18 Jul 2003 19:31:23 +0200 (CEST)
On Thu, 17 Jul 2003, 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/gv-3.5.8_3.log

In file included from Aaa.c:49:
Aaa_intern.h:44:27: pasting "/" and "Xlib" does not give a valid
preprocessing token
Aaa_intern.h:44:27: pasting "h" and ">" does not give a valid
preprocessing token
Aaa_intern.h:45:32: pasting "/" and "Xresource" does not give a valid
preprocessing token
Aaa_intern.h:45:32: pasting "h" and ">" does not give a valid
preprocessing token

etc. etc.

Put this patch as patch-source::paths.h into ports/print/gv/files:

---8<---
--- source/paths.h.orig	Sun Apr  6 00:00:00 1997
+++ source/paths.h	Fri Jul 18 19:18:09 2003
_at__at_ -34,9 +34,9 _at__at_
 #   define INC_XMU(aaa) <XMU_DIRECTORY/aaa>
 #   define INC_XAW(aaa) <XAW_DIRECTORY/aaa>
 #else
-#   define INC_X11(aaa) <X11/##aaa##>
-#   define INC_XMU(aaa) <X11/Xmu/##aaa##>
-#   define INC_XAW(aaa) <X11/Xaw3d/##aaa##>
+#   define INC_X11(aaa) <X11/aaa>
+#   define INC_XMU(aaa) <X11/Xmu/aaa>
+#   define INC_XAW(aaa) <X11/Xaw3d/aaa>
 #endif

 #endif /* _PATHS_H_ */
---8<---

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl_at_univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien                   http://mailbox.univie.ac.at/~le/
Received on Fri Jul 18 2003 - 08:31:49 UTC

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