Closed vediyappan-villali closed 1 year ago
Hello @vediyappan-villali
Usually you have this error when an old version of orcania is already installed in your system, i.e. via the package manager.
Hi @babelouest
Thank you for the input. I have installed the latest version of orcania The issue has been resolved now. Thank you.
Logs: vediyappan@vediyappan:~/vediyappan/work/rhonabwy-1.1.10/build$ cd .. epl@epl:~/vediyappan/work/rhonabwy-1.1.10$ cd src/ epl@epl:~/vediyappan/work/rhonabwy-1.1.10/src$ make && sudo make install Config file ../include/rhonabwy-cfg.h generated USE CURL ENABLED gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 jwk.c gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 jwks.c gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 jws.c gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 jwe.c gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 jwt.c gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -Wconversion -D_REENTRANT -I../include -O3 misc.c gcc -shared -fPIC -Wl,-soname,librhonabwy.so -o librhonabwy.so.1.1.10 jwk.o jwks.o jws.o jwe.o jwt.o misc.o -L/usr/local/lib -lc -L/usr/local/lib -lorcania -L/usr/local/lib -lyder -lorcania -lcurl -ljansson -lgnutls -lz ln -sf librhonabwy.so.1.1.10 librhonabwy.so [sudo] password for vediyappan: Pkgconfig file ../librhonabwy.pc generated install librhonabwy.so.1.1.10 /usr/local/lib mkdir -p /usr/local/lib/pkgconfig/ /usr/local/include install -m644 ../librhonabwy.pc /usr/local/lib/pkgconfig/ install -m644 ../include/rhonabwy.h /usr/local/include install -m644 ../include/rhonabwy-cfg.h /usr/local/include ldconfig /usr/local/lib vediyappan@vediyappan:~/vediyappan/work/rhonabwy-1.1.10/src$
I have checked that the function definition is present in "rhonabwy-1.1.10/build/orcania-src/src/base64.c" and installed liborcania-dev package as well. But still it throws error.
Logs: vediyappan@vediyappan:~/vediyappan/work/rhonabwy-1.1.10/build$ make && sudo make install [ 11%] Building C object CMakeFiles/rhonabwy.dir/src/misc.c.o [ 22%] Building C object CMakeFiles/rhonabwy.dir/src/jwk.c.o [ 33%] Building C object CMakeFiles/rhonabwy.dir/src/jwks.c.o [ 44%] Building C object CMakeFiles/rhonabwy.dir/src/jws.c.o [ 55%] Building C object CMakeFiles/rhonabwy.dir/src/jwe.c.o [ 66%] Building C object CMakeFiles/rhonabwy.dir/src/jwt.c.o [ 77%] Linking C shared library librhonabwy.so [ 77%] Built target rhonabwy [ 88%] Building C object CMakeFiles/rnbyc.dir/tools/rnbyc/rnbyc.c.o [100%] Linking C executable rnbyc /usr/bin/ld: librhonabwy.so.1.1.10: undefined reference to
o_base64_encode_alloc' /usr/bin/ld: librhonabwy.so.1.1.10: undefined reference to
o_strnullempty' /usr/bin/ld: librhonabwy.so.1.1.10: undefined reference too_base64url_encode_alloc' /usr/bin/ld: librhonabwy.so.1.1.10: undefined reference to
o_base64_decode_alloc' /usr/bin/ld: librhonabwy.so.1.1.10: undefined reference to `o_base64url_decode_alloc' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/rnbyc.dir/build.make:105: rnbyc] Error 1 make[1]: [CMakeFiles/Makefile2:112: CMakeFiles/rnbyc.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 vediyappan@vediyappan:~/vediyappan/work/rhonabwy-1.1.10/build$