Package: asn1c
Version: 0.9.14-1
Severity: normal
Tags: patch

When building 'asn1c' on amd64/unstable with gcc-4.0,
I get the following error:

if /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I..  
-I../libasn1parser -I../libasn1fix   -g -Wall -O2 -Wall -Wshadow -Wcast-qual 
-Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT 
asn1c_fdeps.lo -MD -MP -MF ".deps/asn1c_fdeps.Tpo" -c -o asn1c_fdeps.lo 
asn1c_fdeps.c; \
then mv -f ".deps/asn1c_fdeps.Tpo" ".deps/asn1c_fdeps.Plo"; else rm -f 
".deps/asn1c_fdeps.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I../libasn1parser -I../libasn1fix -g -Wall 
-O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -MT asn1c_fdeps.lo -MD -MP -MF 
.deps/asn1c_fdeps.Tpo -c asn1c_fdeps.c  -fPIC -DPIC -o .libs/asn1c_fdeps.o
asn1c_fdeps.c: In function 'asn1c_activate_dependency':
asn1c_fdeps.c:19: error: invalid lvalue in assignment
make[3]: *** [asn1c_fdeps.lo] Error 1
make[3]: Leaving directory `/asn1c-0.9.14/libasn1compiler'

With the attached patch 'asn1c' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/asn1c-0.9.14/libasn1compiler/asn1c_fdeps.c 
./libasn1compiler/asn1c_fdeps.c
--- ../tmp-orig/asn1c-0.9.14/libasn1compiler/asn1c_fdeps.c      2004-08-19 
15:45:27.000000000 +0200
+++ ./libasn1compiler/asn1c_fdeps.c     2005-06-15 22:12:28.000000000 +0200
@@ -16,7 +16,7 @@
        if(cur->used_somewhere)
                return 1;       /* Already activated */
 
-       (const char *)fname = data;
+       fname = data;
        if(*data == '#') {
                const char *start = data;
                const char *end = 0;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to