Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qnx build error on 1.13.3 release:_NTO_THREAD_NAME_MAX was not declared and tName was not declared #4576

Open
sagemind opened this issue Jun 7, 2024 · 1 comment

Comments

@sagemind
Copy link

sagemind commented Jun 7, 2024

Build Environment:

  • ubuntu as the host
  • qnx710 cross toolchain for aarch64 board.

my cmake build script:

 ExternalProject_Add(
    Poco
    GIT_REPOSITORY https://github.com/pocoproject/poco.git
    GIT_TAG poco-1.13.3
    GIT_SHALLOW TRUE
    GIT_PROGRESS TRUE
    SOURCE_DIR ${POCO_SOURCE_DIR}
    CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
               -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
               -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
               -DCMAKE_INSTALL_PREFIX=${POCO_INSTALL_PREFIX}
               -DENABLE_CRYPTO:BOOL=OFF
               -DENABLE_DATA:BOOL=OFF
               -DENABLE_JSON:BOOL=ON
               -DENABLE_MONGODB:BOOL=OFF
               -DENABLE_NET:BOOL=ON
               -DENABLE_NETSSL:BOOL=OFF
               -DENABLE_PAGECOMPILER_FILE2PAGE:BOOL=OFF
               -DENABLE_PAGECOMPILER:BOOL=OFF
               -DENABLE_REDIS:BOOL=OFF
               -DENABLE_UTIL:BOOL=ON
               -DENABLE_XML:BOOL=ON
               -DENABLE_ZIP:BOOL=OFF
               -DPOCO_STATIC:BOOL=ON
               -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
    PATCH_COMMAND patch -p1 < ${PATCH_FILE} 
    # PATCH_COMMAND ${CMAKE_COMMAND} -E echo "${POCO_PATCH_CONTENT}" | patch -p1
    # PATCH_COMMAND patch -p1 < ${PATCH_FILE} PATCH_COMMAND git apply
    # ${PATCH_FILE}
    INSTALL_COMMAND make install
    # INSTALL_DIR ${POCO_INSTALL_PREFIX}
  )

BUILD infos:

 2024-06-06 094345

BUILD ERROR infos:

 2024-06-06 100757

Analysis:

i read the qnx doc:https://www.qnx.com/developers/docs/6.5.0SP1.update/com.qnx.doc.neutrino_lib_ref/t/threadctl.html and adding #include <sys/neutrino.h> can solve the _NTO_THREAD_NAME_MAX isuuse , but i don't know how to resove the tName,
Help,thank you.

@sagemind sagemind added the bug label Jun 7, 2024
@matejk
Copy link
Contributor

matejk commented Jun 7, 2024

@sagemind, would you be so kind and prepare a pull request to resolve this issue?

bas524 added a commit to bas524/poco that referenced this issue Jun 27, 2024
Resolve unresolved macro _NTO_THREAD_NAME_MAX and undeclared array tName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants