Skip to content

extra/amqp-cpp: Alpine package ported to QNX#159

Open
nnarayanamurthy wants to merge 1 commit into803from
murthy/amqp-cpp
Open

extra/amqp-cpp: Alpine package ported to QNX#159
nnarayanamurthy wants to merge 1 commit into803from
murthy/amqp-cpp

Conversation

@nnarayanamurthy
Copy link

No description provided.

Copy link
Contributor

@taang-qnx taang-qnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x86_64 minimal image dated 8-Dec-2025, got this message, need to add back qnx-io-sock-dev

CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/var/home/qnx/aports/extra/amqp-cpp/src/AMQP-CPP-4.3.27/build/CMakeFiles/CMakeScratch/TryCompile-Ax6Edc'
    
    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_f1f47/fast
    /usr/bin/gmake  -f CMakeFiles/cmTC_f1f47.dir/build.make CMakeFiles/cmTC_f1f47.dir/build
    gmake[1]: Entering directory '/var/home/qnx/aports/extra/amqp-cpp/src/AMQP-CPP-4.3.27/build/CMakeFiles/CMakeScratch/TryCompile-Ax6Edc'
    Building C object CMakeFiles/cmTC_f1f47.dir/testCCompiler.c.o
    /usr/bin/cc   -Os -fstack-clash-protection -Wformat -Werror=format-security  -MD -MT CMakeFiles/cmTC_f1f47.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_f1f47.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_f1f47.dir/testCCompiler.c.o -c /var/home/qnx/aports/extra/amqp-cpp/src/AMQP-CPP-4.3.27/build/CMakeFiles/CMakeScratch/TryCompile-Ax6Edc/testCCompiler.c
    cc: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
    Linking C executable cmTC_f1f47
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f1f47.dir/link.txt --verbose=1
    /usr/bin/ld: cannot find -lsocket: No such file or directory
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
    /usr/bin/cc -Os -fstack-clash-protection -Wformat -Werror=format-security  -Wl,--as-needed,-O1,--sort-common -lm -lsocket  CMakeFiles/cmTC_f1f47.dir/testCCompiler.c.o -o cmTC_f1f47
    gmake[1]: *** [CMakeFiles/cmTC_f1f47.dir/build.make:103: cmTC_f1f47] Error 1
    gmake[1]: Leaving directory '/var/home/qnx/aports/extra/amqp-cpp/src/AMQP-CPP-4.3.27/build/CMakeFiles/CMakeScratch/TryCompile-Ax6Edc'
    gmake: *** [Makefile:134: cmTC_f1f47/fast] Error 2
    
    



  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!
>>> ERROR: amqp-cpp: build failed

arch="all"
license="Apache-2.0"
depends="libc++ qnx-microkernel qnx-gcc-libs"
makedepends="cmake openssl-dev"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
makedepends="cmake openssl-dev"
makedepends="cmake openssl-dev qnx-io-sock-dev"

}

build() {
export LDFLAGS="$LDFLAGS -lm -lsocket"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export LDFLAGS="$LDFLAGS -lm -lsocket"
export LDFLAGS="$LDFLAGS -lm -lsocket"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants