Package: krb4
Severity: serious
Tags: patch
Hello,
krb4 file: appl/ftp/ftpd/ftpcmd.y has a command named CONF.
Flex generated following code in ftpcmd.c:
#define CONF 326
and next ftpcmd.c includes (indirectly) file /usr/include/openssl/ossl_typ.h,
where following definition is put:
typedef struct conf_st CONF;
After preprocessing it results with:
typedef struct conf_st 326;
and it causes following error:
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
-I../../../lib/roken -I../../../lib/roken -I./../common -DFTP_SERVER
-I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith
-Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c `test -f
'ftpcmd.c' || echo './'`ftpcmd.c
In file included from /usr/include/openssl/crypto.h:131,
from /usr/include/openssl/ui.h:63,
from /usr/include/openssl/ui_compat.h:63,
from ../../../include/krb.h:52,
from ftpd_locl.h:154,
from ftpcmd.y:45:
/usr/include/openssl/ossl_typ.h:144: error: syntax error before numeric constant
make[4]: *** [ftpcmd.o] Error 1
The attached patch (for appl/ftp/ftpd/ftpcmd.y) solves the problem.
Best regards
Artur
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-arc4bl
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
--
What should people think who are new to debian and send a bug report and they
will get an rtfm? /Nico Golde/
They should RTFM and achieve enlightenment. /Mirosław Baran/
/from debian-devel mailing lists/
--- ftpcmd.y.orig 2006-01-04 01:36:01.000000000 +0100
+++ ftpcmd.y 2006-01-04 01:36:25.000000000 +0100
@@ -102,7 +102,7 @@
UMASK IDLE CHMOD
AUTH ADAT PROT PBSZ CCC MIC
- CONF ENC
+ XCONF ENC
KAUTH KLIST KDESTROY KRBTKFILE AFSLOG
LOCATE URL
@@ -694,7 +694,7 @@
mec($3, prot_safe);
free($3);
}
- | CONF SP STRING CRLF
+ | XCONF SP STRING CRLF
{
mec($3, prot_confidential);
free($3);
@@ -991,7 +991,7 @@
{ "PROT", PROT, STR1, 1, "<sp> prot-level" },
{ "CCC", CCC, ARGS, 1, "" },
{ "MIC", MIC, STR1, 1, "<sp> integrity command" },
- { "CONF", CONF, STR1, 1, "<sp> confidentiality command" },
+ { "CONF", XCONF, STR1, 1, "<sp> confidentiality command" },
{ "ENC", ENC, STR1, 1, "<sp> privacy command" },
/* RFC2389 */