extra/amqp-cpp: Alpine package ported to QNX#159
Open
nnarayanamurthy wants to merge 1 commit into803from
Open
Conversation
taang-qnx
reviewed
Mar 5, 2026
Contributor
taang-qnx
left a comment
There was a problem hiding this comment.
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" |
Contributor
There was a problem hiding this comment.
Suggested change
| makedepends="cmake openssl-dev" | |
| makedepends="cmake openssl-dev qnx-io-sock-dev" |
| } | ||
|
|
||
| build() { | ||
| export LDFLAGS="$LDFLAGS -lm -lsocket" |
Contributor
There was a problem hiding this comment.
Suggested change
| export LDFLAGS="$LDFLAGS -lm -lsocket" | |
| export LDFLAGS="$LDFLAGS -lm -lsocket" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.