Skip to content

Errors while building project with C and C++ code #15

@haihige

Description

@haihige

Hello, I'm trying to build ObjCSword with buildtool on FreeBSD, but I'm running into many errors like these:

	* Building dependencies/icu/source/common/ucnvbocu.cpp (4 / 711) - ( 0.56% )... error

2026-03-05 21:15:42.848 buildtool[84249:102994] Problem running operation <GSXCBuildOperation: 0x206241e50428> ... <NSException: 0x2062431b38a8> NAME:NSGenericException REASON:
Command: `gnustep-config --variable=CC` `gnustep-config --objc-flags` 2> 'build/sword/ucnvbocu.cpp.o.err' -c 'dependencies/icu/source/common/ucnvbocu.cpp'   `gnustep-config --debug-flags`  -I'clucene' -I'.' -I'dependencies' -I'dependencies/clucene' -I'dependencies/.'  -I.//dependencies/sword/include -I.//dependencies/sword/include -I.//dependencies/icu/source/i18n -I.//dependencies/icu/source/i18n -I.//dependencies/icu/source/common -I.//dependencies/icu/source/common -I.//dependencies/icu/source/io -I.//dependencies/icu/source/io -I.//dependencies/clucene -I.//dependencies/clucene -I'.'  -I./src  -I./src/services  -I./../test  -Itest -Isrc  -o 'build/sword/ucnvbocu.cpp.o'
Message: dependencies/icu/source/common/ucnvbocu.cpp:1389:5: error: use of undeclared identifier 'FALSE'
 1389 |     FALSE, FALSE,
      |     ^
dependencies/icu/source/common/ucnvbocu.cpp:1389:12: error: use of undeclared identifier 'FALSE'
 1389 |     FALSE, FALSE,
      |            ^
dependencies/icu/source/common/ucnvbocu.cpp:1397:36: error: use of undeclared identifier 'FALSE'
 1397 |     NULL, NULL, &_Bocu1StaticData, FALSE, &_Bocu1Impl,
      |                                    ^
dependencies/icu/source/common/ucnvbocu.cpp:1399:5: error: use of undeclared identifier 'FALSE'
 1399 |     UCNV_MBCS_TABLE_INITIALIZER
      |     ^
dependencies/icu/source/common/ucnvmbcs.h:421:5: note: expanded from macro 'UCNV_MBCS_TABLE_INITIALIZER'
  421 |     FALSE, \
      |     ^
4 errors generated.

 INFO:(null)
	* Building dependencies/icu/source/common/ucnv_u7.c (5 / 711) - ( 0.70% )... error

2026-03-05 21:15:43.012 buildtool[84249:102994] Problem running operation <GSXCBuildOperation: 0x206241e50568> ... <NSException: 0x2062431a09c8> NAME:NSGenericException REASON:
Command: `gnustep-config --variable=CC` `gnustep-config --objc-flags` 2> 'build/sword/ucnv_u7.c.o.err' -c 'dependencies/icu/source/common/ucnv_u7.c'   `gnustep-config --debug-flags`  -I'clucene' -I'.' -I'dependencies' -I'dependencies/clucene' -I'dependencies/.'  -I.//dependencies/sword/include -I.//dependencies/sword/include -I.//dependencies/icu/source/i18n -I.//dependencies/icu/source/i18n -I.//dependencies/icu/source/common -I.//dependencies/icu/source/common -I.//dependencies/icu/source/io -I.//dependencies/icu/source/io -I.//dependencies/clucene -I.//dependencies/clucene -I'.'  -I./src  -I./src/services  -I./../test  -Itest -Isrc  -o 'build/sword/ucnv_u7.c.o'
Message: dependencies/icu/source/common/ucnv_u7.c:284:30: error: use of undeclared identifier 'FALSE'
  284 |                 inDirectMode=FALSE;
      |                              ^
dependencies/icu/source/common/ucnv_u7.c:327:34: error: use of undeclared identifier 'TRUE'
  327 |                     inDirectMode=TRUE;
      |                                  ^
dependencies/icu/source/common/ucnv_u7.c:409:34: error: use of undeclared identifier 'TRUE'
  409 |                     inDirectMode=TRUE;
      |                                  ^
dependencies/icu/source/common/ucnv_u7.c:539:30: error: use of undeclared identifier 'FALSE'
  539 |                 inDirectMode=FALSE;
      |                              ^

Please let me know what else I can provide to help troubleshoot this. Seeing buildtool in action is pretty sweet!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions