Oleg Bolshakov
|
Re: Not able to find libc function while
|
Oleg Bolshakov
07/09/2020 8:01 AM
post120830
|
Re: Not able to find libc function while
Hello!
This is discussion board for QNX 4 RTOS. Please post your question in discussion board for QNX 7 product.
Respectfully,
Oleg
> I have cross compiled gRPC (v1.27.3) for QNX 7 (ARM) platform. I am using the
> protobuf which was already available for our system (QNX ARM v3.11.4).
>
> After compiling it generated the binaries. I copied these binaries in our code
> to compile the application for QNX.
> We are using cmake to compile QNX runtime code.
>
> While compiling QNX I am getting this issue:
> ../../lib/libQAic.so: undefined reference to `inet_pton(int, char const*, void
> *)'
> ../../lib/libQAic.so: undefined reference to `gai_strerror(int)'
> ../../lib/libQAic.so: undefined reference to `clock_gettime(int, timespec*)'
> ../../lib/libQAic.so: undefined reference to `fcntl(int, int, ...)'
> ../../lib/libQAic.so: undefined reference to `unsetenv(char const*)'
> ../../lib/libQAic.so: undefined reference to `setenv(char const*, char const*,
> int)'
> ../../lib/libQAic.so: undefined reference to `nanosleep(timespec const*,
> timespec*)'
> ../../lib/libQAic.so: undefined reference to `stat(char const*, stat*)'
> ../../lib/libQAic.so: undefined reference to `pthread_cond_timedwait(_sync*,
> _sync*, timespec const*)'
> ../../lib/libQAic.so: undefined reference to `read(int, void*, unsigned long)'
>
> ../../lib/libQAic.so: undefined reference to `inet_ntop(int, void const*, char
> *, unsigned int)'
> ../../lib/libQAic.so: undefined reference to `pipe(int*)'
> ../../lib/libQAic.so: undefined reference to `write(int, void const*, unsigned
> long)'
> ../../lib/libQAic.so: undefined reference to `unlink(char const*)'
> ../../lib/libQAic.so: undefined reference to `close(int)'
> ../../lib/libQAic.so: undefined reference to `sysconf(int)'
> ../../lib/libQAic.so: undefined reference to `getaddrinfo(char const*, char
> const*, addrinfo const*, addrinfo**)'
> ../../lib/libQAic.so: undefined reference to `freeaddrinfo(addrinfo*)'
> collect2: error: ld returned 1 exit status
> test/kmd/CMakeFiles/qaic_json_test.dir/build.make:117: recipe for target 'test
> /kmd/qaic_json_test' failed
> make[2]: *** [test/kmd/qaic_json_test] Error 1
> CMakeFiles/Makefile2:1012: recipe for target 'test/kmd/CMakeFiles/
> qaic_json_test.dir/all' failed
> make[1]: *** [test/kmd/CMakeFiles/qaic_json_test.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> These all functions are already in libc. But they are not able to find it. The
> path is already included in environment variable, where libc is available.
> But still did not able to find it.
>
> Can anybody help me on this?
>
|
|
|