Package: cernlib
Version: 2004.11.04-3
Severity: normal
Tags: patch
When building 'cernlib' on amd64/unstable with gcc-4.0,
I get the following error:
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c: At top level:
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2523: error: static
declaration of 'token' follows non-static declaration
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2466: error: previous
implicit declaration of 'token' was here
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2579: error: conflicting
types for 'ioctl'
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2579: note: a parameter
list with an ellipsis can't match an empty parameter name list declaration
/usr/include/sys/ioctl.h:42: error: previous declaration of 'ioctl' was here
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2646: error: static
declaration of 'catch' follows non-static declaration
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c:2602: error: previous
declaration of 'catch' was here
Failing command: gcc -g -c -O3 -I/cernlib-2004.11.04/build/packlib/cspack
-I/cernlib-2004.11.04/src/packlib/cspack
-I/cernlib-2004.11.04/src/packlib/cspack/tcpaw
-I/cernlib-2004.11.04/src/include -Dlinux -D__x86_64__ -D_POSIX_SOURCE
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
-DFUNCPROTO=15 -DNARROWPROTO -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX
-DCERNLIB_QMGLIBC -DCERNLIB_QMLXIA64
-DCERNLIB_DEBIAN -DDEBIAN_VERSION=\"2004.11.04-3\"
/cernlib-2004.11.04/src/packlib/cspack/tcpaw/tcpaw.c -o archive/tcpaw.o
make[5]: *** [archive/tcpaw.o] Error 1
make[5]: Leaving directory `/cernlib-2004.11.04/build/packlib/cspack/tcpaw'
With the attached patch 'cernlib' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/cernlib-2004.11.04/debian/generic/patches/052-gcc-fix
./debian/generic/patches/052-gcc-fix
--- ../tmp-orig/cernlib-2004.11.04/debian/generic/patches/052-gcc-fix
1970-01-01 01:00:00.000000000 +0100
+++ ./debian/generic/patches/052-gcc-fix 2005-04-04 20:23:19.468879924
+0200
@@ -0,0 +1,51 @@
+--- tcpaw.c 2005-04-03 22:36:29.000000000 +0200
++++ src/packlib/cspack/tcpaw/tcpaw.c 2005-04-04 19:20:16.764117641 +0200
+@@ -2393,10 +2393,11 @@
+ char *ku_prop( /* char *prompt */ );
+
+ #ifndef _WIN32
+- char *malloc(), *index(), *getpass(), *getuid();
++ char *index(), *getpass(), *getuid();
+ #endif
+
+ static FILE *cfile;
++static rnetrc(), token();
+
+ ruserpass(host, aname, apass)
+ char *host, **aname, **apass;
+@@ -2576,14 +2577,16 @@
+ #endif
+
+ #ifndef __convexc__
+-extern int kill(), ioctl(), getpid();
++extern int kill(), getpid();
+ #endif /* __convexc__ */
+ static int intrupt;
+
+ /*** NOTE MAXPASSWD IS DEFINED AS 8 IN ALL STANDARD UNIX SYSTEMS, BUT THIS
+ *** GIVES US PROBLEMS INTERWORKING WITH VMS AND CRAY-SECURID SYSTEMS. ***/
+ #define MAXPASSWD 20 /* max significant characters in password */
+
++static void (*sig)(), catch();
++
+ char *
+ getpass(prompt)
+ char *prompt;
+@@ -2599,7 +2602,6 @@
+ register int c;
+ FILE *fi;
+ static char pbuf[ MAXPASSWD + 1 ];
+- void (*sig)(), catch();
+
+ if((fi = fopen("/dev/tty", "r")) == NULL)
+ return((char*)NULL);
+--- iconwidget.c 2005-04-03 22:36:27.000000000 +0200
++++ src/packlib/kuip/code_motif/iconwidget.c 2005-04-04 19:30:27.103682107
+0200
+@@ -31,7 +31,6 @@
+ /* _Xm routine definitions */
+ void _XmHighlightBorder ();
+ void _XmUnhighlightBorder ();
+-void _XmDrawShadow ();
+
+ /* Motif1.1 ( except apollo, hpux has _XmPrimitive... with two args only
+ * Gunter 30-jan-95
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]