Package: rsplib
Version: 0.8.0-1
Severity: normal
Tags: patch
When building 'rsplib' on amd64/unstable with gcc-4.0,
I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -D_REENTRANT -DINCLUDE_LEAFLINKEDREDBLACKTREE
-DUSE_LEAFLINKEDREDBLACKTREE -Wall -g -DLINUX -D_BSD_SOURCE -D_REENTRANT
-D_THREAD_SAFE -O0 -g -c rspsession.c -MT rspsession.lo -MF
.deps/rspsession.TPlo -MD -MP -fPIC -DPIC -o .libs/rspsession.o
rspsession.c: In function 'rspSessionRead':
rspsession.c:1023: warning: format '%d' expects type 'int', but argument 3 has
type 'ssize_t'
rspsession.c: At top level:
rspsession.c:1144: error: conflicting types for 'rspSessionSelect'
rsplib.h:342: error: previous declaration of 'rspSessionSelect' was here
make[2]: *** [rspsession.lo] Error 1
make[2]: Leaving directory `/rsplib-0.8.0/rsplib'
With the attached patch 'rsplib' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/rsplib-0.8.0/rsplib/rspsession.c ./rsplib/rspsession.c
--- ../tmp-orig/rsplib-0.8.0/rsplib/rspsession.c 2005-03-04
13:58:52.000000000 +0100
+++ ./rsplib/rspsession.c 2005-03-31 14:21:47.911160782 +0200
@@ -1139,7 +1139,7 @@
struct PoolElementDescriptor** pedArray,
unsigned int* pedStatusArray,
const size_t peds,
- const unsigned long long timeout,
+ const card64 timeout,
struct TagItem* tags)
{
struct TagItem mytags[16];
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]