Problem compiling on MacOS X Mojave

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
larryp
Posts: 1
Joined: Wed Jan 30, 2019 10:06 pm

Problem compiling on MacOS X Mojave

Post by larryp » Wed Jan 30, 2019 10:09 pm

I get this error message:

Code: Select all

[ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o
[ 22%] Linking C shared library ../../../build/libmayaqua.dylib
Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _UnixStrToUni in Internat.c.o
      _UnixUniToStr in Internat.c.o
  "_libiconv_close", referenced from:
      _InitInternational in Internat.c.o
      _IconvFreeInternal in Internat.c.o
  "_libiconv_open", referenced from:
      _InitInternational in Internat.c.o
      _IconvWideToStrInternal in Internat.c.o
      _IconvStrToWideInternal in Internat.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../build/libmayaqua.dylib] Error 1
make[1]: *** [src/Mayaqua/CMakeFiles/mayaqua.dir/all] Error 2
make: *** [all] Error 2
This used to compile.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Problem compiling on MacOS X Mojave

Post by thisjun » Thu Mar 28, 2019 5:18 am

What version of glibc do you use?
In some glibc version, libiconv may be required additionally.

jayko
Posts: 6
Joined: Fri Jul 19, 2019 6:00 am

Re: Problem compiling on MacOS X Mojave

Post by jayko » Mon Jul 22, 2019 5:46 pm

did you manage to solve it larryp?

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: Problem compiling on MacOS X Mojave

Post by sky59 » Mon Jul 22, 2019 5:51 pm

I changed the libiconv name for android compilation, try to change it

Post Reply