aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/xmhtml
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-04-02 15:56:16 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-04-02 15:56:16 +0000
commit33825b2fcd8925a4c4385ff7ae9b9d22e3d23e96 (patch)
tree13d72c2dee3c820585dc2af6f82fd3eeaeb11027 /x11-toolkits/xmhtml
parentf60fc31a5887eac286ae4e7a83e7b77f27f03f0d (diff)
downloadports-33825b2fcd8925a4c4385ff7ae9b9d22e3d23e96.tar.gz
ports-33825b2fcd8925a4c4385ff7ae9b9d22e3d23e96.zip
Apply patch for:
XmHTML does not build: debug.c:113: initializer element is not constant When trying to build XmHTML-1.1.7_1 on -current as of 7-JAN-2002, I got the following error during build: rm -f .libs/debug.lo cc -O -pipe -DVERSION=1107 -DHAVE_REGEX_H -DHAVE_LIBJPEG -DHAVE_LIBPNG -DMotif -I. -I../include -I../include/common -I../../include -I../../include/common -I../../include/XmHTML -I/usr/X11R6/include -I/usr/local/include -c debug.c -fPIC -DPIC -o .libs/debug.lo debug.c:113: initializer element is not constant gmake[2]: *** [debug.o] Fehler 1 Strangely enough, the build continued without rebuilding the remaining files of this directory. The make install aborted, of course, because parts of the product had not been built. (gmake problem) PR: 34636 Submitted by: gwk@mscsoftware.com Approved by: Lars.Koeller@Uni-Bielefeld.DE
Notes
Notes: svn path=/head/; revision=57207
Diffstat (limited to 'x11-toolkits/xmhtml')
-rw-r--r--x11-toolkits/xmhtml/files/patch-ai80
1 files changed, 80 insertions, 0 deletions
diff --git a/x11-toolkits/xmhtml/files/patch-ai b/x11-toolkits/xmhtml/files/patch-ai
new file mode 100644
index 000000000000..f8947a0e59a9
--- /dev/null
+++ b/x11-toolkits/xmhtml/files/patch-ai
@@ -0,0 +1,80 @@
+--- lib/common/debug.c.old Tue Oct 6 21:58:00 1998
++++ lib/common/debug.c Tue Feb 5 12:08:16 2002
+@@ -110,7 +110,7 @@
+ /*** Private Function Prototype Declarations ****/
+
+ /*** Private Variable Declarations ***/
+-static FILE *__rsd_debug_file = stdout;
++static FILE *__rsd_debug_file;
+
+ /*****
+ * When debug output is send to a file, we register an exit func to close
+@@ -128,7 +128,11 @@
+ #endif
+ {
+ /* close output file */
+- fclose(__rsd_debug_file);
++ if (__rsd_debug_file) {
++ fclose(__rsd_debug_file);
++ __rsd_debug_file = NULL;
++ }
++
+ }
+
+ /*****
+@@ -146,6 +150,7 @@
+ #ifdef __STDC__
+ __rsd_fprintf(char *fmt, ...)
+ {
++ register FILE *fp = (__rsd_debug_file ? __rsd_debug_file : stdout);
+ va_list arg_list;
+ va_start(arg_list, fmt);
+
+@@ -155,15 +160,16 @@
+ char *fmt;
+ va_dcl
+ {
++ register FILE *fp = (__rsd_debug_file ? __rsd_debug_file : stdout);
+ va_list arg_list;
+ va_start(arg_list);
+ #endif /* __STDC__ */
+
+ /* flush to file */
+- vfprintf(__rsd_debug_file, fmt, arg_list);
++ vfprintf(fp, fmt, arg_list);
+ va_end(arg_list);
+
+- fflush(__rsd_debug_file);
++ fflush(fp);
+ }
+
+ /*****
+@@ -298,8 +304,10 @@
+ if((chPtr = strstr(argv[i], ":")) != NULL)
+ {
+ /* close any existing output file */
+- if(__rsd_debug_file != stdout)
++ if(__rsd_debug_file) {
+ fclose(__rsd_debug_file);
++ __rsd_debug_file = NULL;
++ }
+
+ chPtr++; /* skip : */
+ if(!strcmp(chPtr, "pid")) /* <pid>.out */
+@@ -336,14 +344,14 @@
+ fprintf(stderr, "__rsd_setDebugLevels: failed to open "
+ "output file %s (errno = %i), reverting to "
+ "stdout\n", tmp, errno);
+- __rsd_debug_file = stdout;
++ __rsd_debug_file = NULL;
+ }
+ }
+ else
+ {
+ fprintf(stderr, "__rsd_setDebugLevels: missing arg to "
+ "-dfile:, reverting to stdout\n");
+- __rsd_debug_file = stdout;
++ __rsd_debug_file = NULL;
+ }
+ /* remove from cmd line */
+ REMOVE_ARG;