FreeBSD -liconv problem

Discuss issues related to installing or building
Post Reply
gh_origin
Posts: 14
Joined: Sat Jul 18 2020 4:23 pm

FreeBSD -liconv problem

Post by gh_origin »

I cloned your github repo so I have the latest changes included (e.g: search for iconv on all platforms). Now it could search for iconv.h and compiled fine but failed at linking:

Code: Select all

[  6%] Linking CXX shared library ../../lib/libCsCore1.6.so
/usr/bin/ld: cannot find -liconv
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [src/core/CMakeFiles/CsCore.dir/build.make:3782: lib/libCsCore1.6.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:498: src/core/CMakeFiles/CsCore.dir/all] Error 2
gmake: *** [Makefile:172: all] Error 2

Code: Select all

ls /usr/local/lib | grep iconv
libiconv.a
libiconv.so
libiconv.so.2
libiconv.so.2.6.1
gh_origin
Posts: 14
Joined: Sat Jul 18 2020 4:23 pm

Re: FreeBSD -liconv problem

Post by gh_origin »

Fixed with this ugly workaround:

Code: Select all

doas ln -s /usr/local/lib/libiconv.so /usr/lib/libiconv.so
Waiting for the actual cmake fix from you.
Post Reply