[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4624) snacc failed to compile



Full_Name: Janusz Grabowski
Version: openldap-snacc 2.3.3 beta
OS: linux-debian
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.110.121.5)


I'm unable to compile snacc sources (downloaded from ftp.openldap.org).
Here it is my gcc configuration:
gcc version 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)

and make error report:

make[3]: Leaving directory
`/home/jan/openldap-snacc-2.3.3beta/c-examples/vdatestC'
make targets
make[3]: Entering directory
`/home/jan/openldap-snacc-2.3.3beta/c-examples/vdatestC'
gcc -I../../c-lib/inc -I../.. -I./  -DNO_THREADS  -O2 -Wall  -DFLEX_IN_USE
-DYYTEXT_POINTER -fPIC -DLinux -DLDAP_COMPONENT  -c -o rfc1155-smi.o
rfc1155-smi.crfc1155-smi.c: In function 'DEncSimpleSyntaxContent':
rfc1155-smi.c:23: warning: unused variable 'component'
rfc1155-smi.c:22: warning: unused variable 'listLen'
rfc1155-smi.c: At top level:
rfc1155-smi.c:52: error: expected identifier or '(' before '{' token
rfc1155-smi.c: In function 'FreeSimpleSyntax':
rfc1155-smi.c:123: warning: enumeration value 'SIMPLESYNTAX_NUMBER' not handled
in switch
rfc1155-smi.c:123: warning: enumeration value 'SIMPLESYNTAX_EMPTY' not handled
in switch
rfc1155-smi.c: In function 'DEncNetworkAddressContent':
rfc1155-smi.c:151: error: 'v_id' undeclared (first use in this function)
rfc1155-smi.c:151: error: (Each undeclared identifier is reported only once
rfc1155-smi.c:151: error: for each function it appears in.)
rfc1155-smi.c:151: error: too many arguments to function 'BEncAsnOctsContent'
rfc1155-smi.c:146: warning: unused variable 'component'
rfc1155-smi.c:145: warning: unused variable 'listLen'
rfc1155-smi.c: At top level:
rfc1155-smi.c:160: error: expected identifier or '(' before '{' token
rfc1155-smi.c: In function 'DEncApplicationSyntaxContent':
rfc1155-smi.c:222: error: 'v_id' undeclared (first use in this function)
rfc1155-smi.c:222: error: too many arguments to function
'DEncNetworkAddressContent'
rfc1155-smi.c:227: error: too many arguments to function 'BEncAsnIntContent'
rfc1155-smi.c:232: error: too many arguments to function 'BEncAsnIntContent'
rfc1155-smi.c:237: error: too many arguments to function 'BEncAsnIntContent'
rfc1155-smi.c:242: error: too many arguments to function 'BEncAsnOctsContent'
rfc1155-smi.c:217: warning: unused variable 'component'
rfc1155-smi.c:216: warning: unused variable 'listLen'
rfc1155-smi.c: At top level:
rfc1155-smi.c:251: error: expected identifier or '(' before '{' token
rfc1155-smi.c: In function 'FreeApplicationSyntax':
rfc1155-smi.c:332: warning: enumeration value 'APPLICATIONSYNTAX_COUNTER' not
handled in switch
rfc1155-smi.c:332: warning: enumeration value 'APPLICATIONSYNTAX_GAUGE' not
handled in switch
rfc1155-smi.c:332: warning: enumeration value 'APPLICATIONSYNTAX_TICKS' not
handled in switch
rfc1155-smi.c: In function 'DEncObjectSyntaxContent':
rfc1155-smi.c:360: error: 'v_id' undeclared (first use in this function)
rfc1155-smi.c:360: error: too many arguments to function
'DEncSimpleSyntaxContent'
rfc1155-smi.c:365: error: too many arguments to function
'DEncApplicationSyntaxContent'
rfc1155-smi.c:355: warning: unused variable 'component'
rfc1155-smi.c:354: warning: unused variable 'listLen'
rfc1155-smi.c: At top level:
rfc1155-smi.c:374: error: expected identifier or '(' before '{' token
make[3]: *** [rfc1155-smi.o] Error 1


make[3]: Entering directory
`/home/jan/openldap-snacc-2.3.3beta/c++-examples/src'
g++  -I../../c++-lib/inc -I../.. -I./ -I../src  -O2 -Wall -DSTDC_HEADERS   
-fPIC -Wswitch -DLinux  -c -o rfc1155-smi.o rfc1155-smi.cpp
In file included from ../../c++-lib/inc/asn-incl.h:21,
                 from rfc1155-smi.h:12,
                 from rfc1155-smi.cpp:9:
../../c++-lib/inc/asn-chartraits.h:5:42: error: bits/fpos.h: No such file or
directory
../../c++-lib/inc/asn-incl.h:285: warning: 'class SNACC::PERGeneral' has virtual
functions but non-virtual destructor
../../c++-lib/inc/asn-listset.h: In member function 'typename std::list<T,
std::allocator<_CharT> >::iterator AsnList<T>::append(const T&)':
../../c++-lib/inc/asn-listset.h:24: error: there are no arguments to 'end' that
depend on a template parameter, so a declaration of 'end' must be available
../../c++-lib/inc/asn-listset.h:24: error: (if you use '-fpermissive', G++ will
accept your code, but allowing the use of an undeclared name is deprecated)
../../c++-lib/inc/asn-listset.h: In member function 'virtual void
AsnList<T>::Clear()':
../../c++-lib/inc/asn-listset.h:50: error: there are no arguments to 'clear'
that depend on a template parameter, so a declaration of 'clear' must be
available
../../c++-lib/inc/asn-listset.h: In member function 'virtual SNACC::AsnLen
AsnList<T>::Interpret(SNACC::AsnBufBits&, long int) const':
../../c++-lib/inc/asn-listset.h:75: error: there are no arguments to 'begin'
that depend on a template parameter, so a declaration of 'begin' must be
available
../../c++-lib/inc/asn-listset.h:76: error: there are no arguments to 'end' that
depend on a template parameter, so a declaration of 'end' must be available
../../c++-lib/inc/asn-listset.h:82: error: there are no arguments to 'end' that
depend on a template parameter, so a declaration of 'end' must be available
../../c++-lib/inc/asn-listset.h: In member function 'virtual SNACC::AsnLen
AsnList<T>::PEnc(SNACC::AsnBufBits&) const':
../../c++-lib/inc/asn-listset.h:100: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:106: error: there are no arguments to 'begin'
that depend on a template parameter, so a declaration of 'begin' must be
available
../../c++-lib/inc/asn-listset.h:106: error: there are no arguments to 'end' that
depend on a template parameter, so a declaration of 'end' must be available
../../c++-lib/inc/asn-listset.h:111: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:112: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:131: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:146: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:152: error: there are no arguments to 'size'
that depend on a template parameter, so a declaration of 'size' must be
available
../../c++-lib/inc/asn-listset.h:159: error: there are no arguments to 'begin'
that depend on a template parameter, so a declaration of 'begin' must be
available
../../c++-lib/inc/asn-listset.h:159: error: there are no arguments to 'end' that
depend on a template parameter, so a declaration of 'end' must be available
.

Best regards 
Janusz