FreeBSD Port: transfig-3.2.4 - patch to fix compilation on CURRENT

Joachim Strömbergson watchman at ludd.luth.se
Wed Sep 10 03:44:53 PDT 2003


Aloha!

While building avr-libc, I stumbled on a problem with the transfig port 
and gcc in CURRENT:

<snip>
===>  Building for transfig-3.2.4_1
...
...
In file included from ../fig2dev.h:25,
                  from genbox.c:22:
/usr/include/varargs.h:34:2: #error "<varargs.h> is obsolete with this 
version of GCC."
/usr/include/varargs.h:35:2: #error "Change your code to use <stdarg.h> 
instead."
*** Error code 1
</snip>

I have changed <varargs.h> to <stdarg.h> and now the transfig port 
compiles fine. Patch included below:

<include>
--- fig2dev.h       Wed Sep 10 12:40:13 2003
+++ fig2dev.h      Wed Sep 10 12:40:01 2003
@@ -22,7 +22,7 @@
  #include <sys/file.h>
  #include <signal.h>
  #include <string.h>
-#include <varargs.h>
+#include <stdarg.h>
  #include <pwd.h>
  #include <errno.h>
  #include <time.h>
</include>

-- 
Med vänlig hälsning, Cheers!

Joachim Strömbergson
============================================================================
Joachim Strömbergson - ASIC designer, nice to *cute* animals.
     snail:                  phone:                     mail & web:
Sävenäsgatan 5A        +46 31 - 27 98 47          watchman at ludd.luth.se
416 72 Göteborg        +46 733 75 97 02           www.ludd.luth.se/~watchman
============================================================================



More information about the freebsd-ports mailing list