Package: pnet Severity: normal Tags: patch When building 'pnet' on amd64 with gcc-4.0, I get the following error:
/bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I.././libffi -I. -I.././libffi/include -Iinclude -I.././libffi/src -fexceptions -g -Wall -O2 -Wall -c -o src/x86/ffi64.lo src/x86/ffi64.c cc -DHAVE_CONFIG_H -I. -I.././libffi -I. -I.././libffi/include -Iinclude -I.././libffi/src -fexceptions -g -Wall -O2 -Wall -c src/x86/ffi64.c -o src/x86/ffi64.o src/x86/ffi64.c: In function 'ffi_prep_args': src/x86/ffi64.c:291: error: invalid lvalue in assignment make[5]: *** [src/x86/ffi64.lo] Error 1 make[5]: Leaving directory `/pnet-0.6.12/build-tree/pnet-0.6.12/libffi' With the attached patch 'pnet' can be compiled on amd64 using gcc-4.0. The patch also updates the Build-Depends to use 'libreadline5-dev'. Regards Andreas Jochens diff -urN ../tmp-orig/pnet-0.6.12/debian/control ./debian/control --- ../tmp-orig/pnet-0.6.12/debian/control 2005-02-05 10:00:18.918362219 +0100 +++ ./debian/control 2005-02-05 09:56:06.955147952 +0100 @@ -2,7 +2,7 @@ Section: devel Priority: optional Maintainer: Andrew Mitchell <[EMAIL PROTECTED]> -Build-Depends: cdbs, debhelper (>= 4.1.0), treecc (>= 0.3.0), libreadline4-dev, flex, bison +Build-Depends: cdbs, debhelper (>= 4.1.0), treecc (>= 0.3.0), libreadline5-dev, flex, bison Standards-Version: 3.6.1 Package: pnet diff -urN ../tmp-orig/pnet-0.6.12/debian/patches/gcc4-fix.diff ./debian/patches/gcc4-fix.diff --- ../tmp-orig/pnet-0.6.12/debian/patches/gcc4-fix.diff 1970-01-01 01:00:00.000000000 +0100 +++ ./debian/patches/gcc4-fix.diff 2005-02-05 09:59:22.507926800 +0100 @@ -0,0 +1,12 @@ +diff -urN tmp/libffi/src/x86/ffi64.c pnet-0.6.12/libffi/src/x86/ffi64.c +--- tmp/libffi/src/x86/ffi64.c 2004-10-30 03:32:54.000000000 +0200 ++++ pnet-0.6.12/libffi/src/x86/ffi64.c 2005-02-05 09:58:59.331266105 +0100 +@@ -288,7 +288,7 @@ + gprcount = ssecount = 0; + if (ecif->cif->rtype->type != FFI_TYPE_VOID + && examine_argument (ecif->cif->rtype, 1, &g, &s) == 0) +- (void *)stack->gpr[gprcount++] = ecif->rvalue; ++ stack->gpr[gprcount++] = ecif->rvalue; + + for (i=ecif->cif->nargs, p_arg=ecif->cif->arg_types, p_argv = ecif->avalue; + i!=0; i--, p_arg++, p_argv++) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]