pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34016: [PATCH] elm varargs-related compile failure



>Number:         34016
>Category:       pkg
>Synopsis:       elm does not compile with GCC3.4. Use stdargs.h instead of 
>varargs.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 17 08:15:00 +0000 2006
>Originator:     Roman Valls
>Release:        Linux 2.6.17-1.2145_FC5smp
>Organization:
LCAC
>Environment:
System: Linux fabre-ng.ac.upc.edu 2.6.17-1.2145_FC5smp #1 SMP Sat Jul 1 
13:19:14 EDT 2006 i686 i686 i386 GNU/Linux
Architecture: i686
Machine: i686

[admin@fabre-ng]~% gcc -v
Reading specs from 
/users/Soft/PKG/gcc34/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: /Soft/BUILD/ia32.Linux/lang/gcc34/work/gcc-3.4.6/configure 
--enable-languages='c' 'c++' 'java' 'objc' --with-system-zlib --enable-shared 
--enable-__cxa_atexit --enable-long-long --with-local-prefix=/Soft/PKG/gcc34 
--with-libiconv-prefix=/usr --prefix=/Soft/PKG/gcc34
Thread model: posix
gcc version 3.4.6

>Description:
        In file included from ../hdrs/mcprtlib.h:56,
                 from mcprt.c:47:
                 
/users/Soft/PKG/gcc34/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/include/varargs.h:4:2:
 #error "GCC no longer implements <varargs.h>."
                 
/users/Soft/PKG/gcc34/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/include/varargs.h:5:2:
 #error "Revise your code to use <stdarg.h>."

>How-To-Repeat:
        bmake elm
>Fix:
        
$NetBSD$

--- hdrs/mcprtlib.h.orig        2006-07-17 09:11:16.000000000 +0200
+++ hdrs/mcprtlib.h
@@ -46,16 +46,8 @@ up-to-date.  Many thanks.
 08/10/90   1 nazgul    Initial version
 */
 
-/* taken from Xm/lib/VaSimple.h
-   currently no one defines MISSING_STDARG_H */
- 
-#ifdef I_STDARG
 # include <stdarg.h>
 # define Va_start(a,b) va_start(a,b)
-#else
-# include <varargs.h>
-# define Va_start(a,b) va_start(a)
-#endif
 
 #define MCFree         0x0010                  /* Reminder to MCPrintFree */
 #define MCCatalog      0x0100                  /* Probably came from catalog */


$NetBSD$

--- src/curses.c.orig   2006-07-17 09:28:40.000000000 +0200
+++ src/curses.c
@@ -47,11 +47,7 @@ static char rcsid[] = "@(#)$Id: curses.c
 #include "s_elm.h"
 
 #include <assert.h>
-#ifdef I_STDARG
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
+#include <stdarg.h>
 
 #define S_(sel, str)   catgets(elm_msg_cat, ElmSet, (sel), (str))
 

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index