Ошибка компиляции ifmail

Ответить
Аватара пользователя
ruslandh

Re: Ошибка компиляции ifmail

Сообщение ruslandh »

А у Вас какая версия gcc стоит ?
Аватара пользователя
BurzumII

Re: Ошибка компиляции ifmail

Сообщение BurzumII »

Если можно поподробнее.

Файл stdarg.h есть, лежит в /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/install-tools/include/stdarg.h

/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/stdarg.h

/usr/include/stdarg.h

в lutil.c не упоминается.

Подскажите, что делать, plz...
Аватара пользователя
mar

Re: Ошибка компиляции ifmail

Сообщение mar »

я не видела кода (и видеть не хочу ;)), но почему-то надо вместо varargs.h подключать stdarg.h. Почитайте readme, посмотрите код обоих h-файлов и
поковыряетесь в сети
, может быть станет понятно почему. В любом случае, если Вы на 7-ой строке lutil.c заремите подключение первого файла, допишите подключение второго и попробуете скомпилировать, хуже не будет :)
Аватара пользователя
BurzumII

Re: Ошибка компиляции ifmail

Сообщение BurzumII »

Спасиб за совет. Попробую.
Аватара пользователя
BurzumII

Ошибка компиляции ifmail

Сообщение BurzumII »

Всех с наступившими и наступающими)))

Люди помогите, plz, скомпилить ifmail 2.15 (или 2.14) )на Слакваре 10 для работы с Фидо.

CONFIG такой:

COPYRIGHT = "Eugene G. Crosser, 1993-1998"

VERSION = "2.15"

CONFIGFILE = "/etc/ifmail/config"

DEBUGFILE = "/var/log/ifmail/ifdebug"

LOGFILE = "/var/log/ifmail/iflog"

MAILLOG = LOG_LOCAL0

NEWSLOG = LOG_LOCAL0

CICOLOG = LOG_LOCAL0

LOCKDIR = "/var/spool/uucp"

PUBDIR = "/var/spool/uucppublic"

NEWSSPOOL = "/var/spool/news"

OPTS = -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \

-DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \

-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP \

-DFORCEINTL -DHAS_SYSLOG -DNEED_UUCPFROM -DNEED_BSY \

-DSLAVE_SENDS_NAK_TOO -DNEED_FORK -DHAS_BSD_SIGNALS \

-DHAS_BSD_DB -DINT32=long -DINT16=short

BINDIR = /usr/lib/ifmail

OWNER = ifmail

GROUP = uucp

MODE = 0711

SMODE = 4711

INSTALL = install

RANLIB = ranlib

SHELL = /bin/sh

ECHO = echo -e

CC = gcc

YACC = yacc

LEX = lex

AWK = awk

TAR = tar

CFLAGS = -g -O2 -Wall

LDFLAGS =

LIBS = -lndbm

INCLUDES = -I${INCDIR}

NEEDED =





Ошибка вываливается следующая:

In file included from lutil.c:7:

/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/varargs.h:4:2: #error "GCC no longer implements ."

/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/varargs.h:5:2: #error "Revise your code to use ."

lutil.c:130: error: parse error before "va_dcl"

lutil.c:131: error: syntax error before '{' token

lutil.c:138: warning: type defaults to `int' in declaration of `va_start'

lutil.c:138: warning: parameter names (without types) in function declaration

lutil.c:138: warning: data definition has no type or storage class

lutil.c:139: warning: type defaults to `int' in declaration of `fmt'

lutil.c:139: error: conflicting types for `fmt'

lutil.c:133: error: previous declaration of `fmt'

lutil.c:139: warning: implicit declaration of function `va_arg'

lutil.c:139: error: `args' undeclared here (not in a function)

lutil.c:139: error: parse error before "char"

lutil.c:142: warning: type defaults to `int' in declaration of `fflush'

lutil.c:142: warning: parameter names (without types) in function declaration

lutil.c:142: warning: data definition has no type or storage class

lutil.c:143: error: parse error before '}' token

lutil.c:148: warning: type defaults to `int' in declaration of `syslog_opened'

lutil.c:148: error: redefinition of `syslog_opened'

lutil.c:17: error: `syslog_opened' previously defined here

lutil.c:148: warning: data definition has no type or storage class

lutil.c:149: error: parse error before '}' token

lutil.c:150: error: parse error before numeric constant

lutil.c:150: warning: type defaults to `int' in declarati накатал следующийon of `vsyslog'

lutil.c:150: error: conflicting types for `vsyslog'

/usr/include/sys/syslog.h:188: error: previous declaration of `vsyslog'

lutil.c:150: warning: data definition has no type or storage class

lutil.c:165: warning: type defaults to `int' in declaration of `va_end'

lutil.c:165: warning: parameter names (without types) in function declaration

lutil.c:165: warning: data definition has no type or storage class

lutil.c:166: error: parse error before "return"

lutil.c:170: error: parse error before "va_dcl"

lutil.c:171: error: syntax error before '{' token

lutil.c:173: error: conflicting types for `fmt'

lutil.c:139: error: previous declaration of `fmt'

lutil.c:178: warning: type defaults to `int' in declaration of `va_start'

lutil.c:178: warning: parameter names (without types) in function declaration

lutil.c:178: warning: data definition has no type or storage class

lutil.c:179: warning: type defaults to `int' in declaration of `fmt'

lutil.c:179: error: conflicting types for `fmt'

lutil.c:173: error: previous declaration of `fmt'

lutil.c:179: error: `args' undeclared here (not in a function)

lutil.c:179: error: parse error before "char"

lutil.c:182: warning: type defaults to `int' in declaration of `fflush'

lutil.c:182: warning: parameter names (without types) in function declaration

lutil.c:182: warning: data definition has no type or storage class

lutil.c:183: error: parse error before '}' token

lutil.c:188: warning: type defaults to `int' in declaration of `syslog_opened'

lutil.c:188: error: redefinition of `syslog_opened'

lutil.c:148: error: `syslog_opened' previously defined here

lutil.c:188: warning: data definition has no type or storage class

lutil.c:189: error: parse error before '}' token

lutil.c:190: error: parse error before numeric constant

lutil.c:190: warning: type defaults to `int' in declaration of `vsyslog'

lutil.c:190: warning: data definition has no type or storage class

lutil.c:205: warning: type defaults to `int' in declaration of `va_end'

lutil.c:205: warning: parameter names (without types) in function declaration

lutil.c:205: warning: data definition has no type or storage class

lutil.c:206: error: parse error before "return"

lutil.c:210: error: parse error before "va_dcl"

lutil.c:211: error: syntax error before '{' token

lutil.c:214: error: conflicting types for `fmt'

lutil.c:179: error: previous declaration of `fmt'

lutil.c:216: warning: type defaults to `int' in declaration of `va_start'

lutil.c:216: warning: parameter names (without types) in function declaration

lutil.c:216: warning: data definition has no type or storage class

lutil.c:217: warning: type defaults to `int' in declaration of `level'

lutil.c:217: error: conflicting types for `level'

lutil.c:213: error: previous declaration of `level'

lutil.c:217: error: `args' undeclared here (not in a function)

lutil.c:217: error: parse error before "unsigned"

lutil.c:218: warning: type defaults to `int' in declaration of `fmt'

lutil.c:218: error: conflicting types for `fmt'

lutil.c:214: error: previous declaration of `fmt'

lutil.c:218: error: `args' undeclared here (not in a function)

lutil.c:218: error: parse error before "char"

lutil.c:222: warning: type defaults to `int' in declaration of `fflush'

lutil.c:222: warning: parameter names (without types) in function declaration

lutil.c:222: warning: data definition has no type or storage class

lutil.c:223: error: parse error before '}' token

lutil.c:224: warning: type defaults to `int' in declaration of `va_end'

lutil.c:224: warning: parameter names (without types) in function declaration

lutil.c:224: warning: data definition has no type or storage class

lutil.c:225: error: parse error before "return"

lutil.c:17: warning: `syslog_opened' defined but not used

make[1]: *** [lutil.o] Ошибка 1

make: *** [all] Ошибка 2



Спасибо.
Ответить

Вернуться в «Программное обеспечение Linux и FreeBSD»