Добро пожаловать, Гость. Пожалуйста авторизуйтесь здесь.
FGHIGate на GaNJa NeTWoRK ST@Ti0N - Просмотр сообщения в эхоконференции RU.HUSKY
Введите FGHI ссылку:


Присутствуют сообщения из эхоконференции RU.HUSKY с датами от 16 Jul 13 10:00:06 до 31 Mar 24 23:49:12, всего сообщений: 5321
Ответить на сообщение К списку сообщений Предыдущее сообщение Следующее сообщение
= Сообщение: 4473 из 5321 ========================================= RU.HUSKY =
От   : Sergey Anohin                    2:5034/10.1        03 Jul 21 22:36:16
Кому : Nil A                                               03 Jul 21 22:36:16
Тема : fidoconf make error
FGHI : area://RU.HUSKY?msgid=2:5034/10.1+c8c7648f
На   : area://RU.HUSKY?msgid=2:5015/46+60e0a98d
= Кодировка сообщения определена как: CP866 ==================================
==============================================================================
Hello, Nil!

NA> Да всё сломали. Я уже какое-то время вот так собираю.
NA> C_FLAGS += "-Dfalse=0 -Dtrue=1 -Dbool='unsigned char'"
NA> Разбираться, что под какой платформой, с каким компилятором, с каким include комбинацией не определяет символы - так лениво.

Может хедер какой заинклудить забыли? :)

Часто виднеется:
use of undeclared identifier

На FreeBSD тоже, хоть gcc (gcc version 9.2.0 (FreeBSD Ports Collection)), хоть шлангом не собирается, но у шланга вывод больше (FreeBSD clang version 10.0.1) :)

clang -Wall -c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC -O3 -DUNIX -DHAS_POPEN -DCFGDIR=\"/usr/local/etc/fido\" -DPATH_DELIM=\'/\' -c -fPIC -Wall -ggdb -DUNIX -I.. -Wno-char-subscripts -Ifidoconf -I/usr/local/include src/common.c
clang: warning: optimization flag '-fstrength-reduce' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang -Wall -c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC -O3 -DUNIX -DHAS_POPEN -DCFGDIR=\"/usr/local/etc/fido\" -DPATH_DELIM=\'/\' -c -fPIC -Wall -ggdb -DUNIX -I.. -Wno-char-subscripts -Ifidoconf -I/usr/local/include src/fidoconf.c
clang: warning: optimization flag '-fstrength-reduce' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang -Wall -c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC -O3 -DUNIX -DHAS_POPEN -DCFGDIR=\"/usr/local/etc/fido\" -DPATH_DELIM=\'/\' -c -fPIC -Wall -ggdb -DUNIX -I.. -Wno-char-subscripts -Ifidoconf -I/usr/local/include src/line.c
clang: warning: optimization flag '-fstrength-reduce' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang -Wall -c -s -O3 -fomit-frame-pointer -fstrength-reduce -fPIC -O3 -DUNIX -DHAS_POPEN -DCFGDIR=\"/usr/local/etc/fido\" -DPATH_DELIM=\'/\' -c -fPIC -Wall -ggdb -DUNIX -I.. -Wno-char-subscripts -Ifidoconf -I/usr/local/include src/cfg.c
clang: warning: optimization flag '-fstrength-reduce' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
src/cfg.c:274:5: error: use of undeclared identifier 'bool'
    bool   partly_read = true;
    ^
src/cfg.c:275:5: error: use of undeclared identifier 'bool'
    bool   first_part  = true;
    ^
src/cfg.c:278:11: error: use of undeclared identifier 'partly_read'
    while(partly_read)
          ^
src/cfg.c:281:13: error: use of undeclared identifier 'first_part'; did you mean 'firstchar'?
        if(!first_part)
            ^~~~~~~~~~
            firstchar
/usr/local/include/huskylib/strext.h:51:23: note: 'firstchar' declared here
HUSKYEXT char * _fast firstchar(const char * strng, const char * delim, int findword);
                      ^
src/cfg.c:281:13: warning: address of function 'firstchar' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if(!first_part)
           ~^~~~~~~~~~
src/cfg.c:281:13: note: prefix with the address-of operator to silence this warning
        if(!first_part)
            ^
            &
src/cfg.c:287:28: error: use of undeclared identifier 'first_part'; did you mean 'firstchar'?
        if(line == NULL && first_part)
                           ^~~~~~~~~~
                           firstchar
/usr/local/include/huskylib/strext.h:51:23: note: 'firstchar' declared here
HUSKYEXT char * _fast firstchar(const char * strng, const char * delim, int findword);
                      ^
src/cfg.c:287:28: warning: address of function 'firstchar' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if(line == NULL && first_part)
                        ~~ ^~~~~~~~~~
src/cfg.c:287:28: note: prefix with the address-of operator to silence this warning
        if(line == NULL && first_part)
                           ^
                           &
src/cfg.c:294:19: error: use of undeclared identifier 'first_part'; did you mean 'firstchar'?
        longlen = first_part ? 0 : strlen(longline);
                  ^~~~~~~~~~
                  firstchar
/usr/local/include/huskylib/strext.h:51:23: note: 'firstchar' declared here
HUSKYEXT char * _fast firstchar(const char * strng, const char * delim, int findword);
                      ^
src/cfg.c:294:19: warning: address of function 'firstchar' will always evaluate to 'true' [-Wpointer-bool-conversion]
        longlen = first_part ? 0 : strlen(longline);
                  ^~~~~~~~~~ ~
src/cfg.c:294:19: note: prefix with the address-of operator to silence this warning
        longlen = first_part ? 0 : strlen(longline);
                  ^
                  &
src/cfg.c:299:16: error: use of undeclared identifier 'first_part'; did you mean 'firstchar'?
            if(first_part)
               ^~~~~~~~~~
               firstchar
/usr/local/include/huskylib/strext.h:51:23: note: 'firstchar' declared here
HUSKYEXT char * _fast firstchar(const char * strng, const char * delim, int findword);
                      ^
src/cfg.c:299:16: warning: address of function 'firstchar' will always evaluate to 'true' [-Wpointer-bool-conversion]
            if(first_part)
            ~~ ^~~~~~~~~~
src/cfg.c:299:16: note: prefix with the address-of operator to silence this warning
            if(first_part)
               ^
               &
src/cfg.c:304:13: error: use of undeclared identifier 'first_part'
            first_part = false;
            ^
src/cfg.c:304:26: error: use of undeclared identifier 'false'; did you mean 'else'?
            first_part = false;
                         ^~~~~
                         else
src/cfg.c:304:26: error: expected expression
src/cfg.c:308:13: error: use of undeclared identifier 'partly_read'
            partly_read = false;
            ^
src/cfg.c:308:27: error: use of undeclared identifier 'false'; did you mean 'else'?
            partly_read = false;
                          ^~~~~
                          else
src/cfg.c:308:27: error: expected expression
src/cfg.c:309:17: error: use of undeclared identifier 'first_part'; did you mean 'firstchar'?
            if(!first_part)
                ^~~~~~~~~~
                firstchar
/usr/local/include/huskylib/strext.h:51:23: note: 'firstchar' declared here
HUSKYEXT char * _fast firstchar(const char * strng, const char * delim, int findword);
                      ^
src/cfg.c:309:17: warning: address of function 'firstchar' will always evaluate to 'true' [-Wpointer-bool-conversion]
            if(!first_part)
               ~^~~~~~~~~~
src/cfg.c:309:17: note: prefix with the address-of operator to silence this warning
            if(!first_part)
                ^
                &
5 warnings and 14 errors generated.
gmake: *** [makefile.inc:27: cfg.o] Ошибка 1


С наилучшими пожеланиями, Sergey Anohin.

--- wfido
* Origin: https://5034.ru/wfido (2:5034/10.1)

К главной странице гейта
Powered by NoSFeRaTU`s FGHIGate
Открытие страницы: 0.058238 секунды