Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `libiconv_close' #19

Open
wjhcoding opened this issue May 22, 2021 · 0 comments
Open

undefined reference to `libiconv_close' #19

wjhcoding opened this issue May 22, 2021 · 0 comments

Comments

@wjhcoding
Copy link

mv -f .deps/alpha-map.Tpo .deps/alpha-map.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -no-undefined -version-info 4:4:3 -Wl,-version-script -Wl,./libdatrie.map -o libdatrie.la -rpath /usr/local/libdatrie/lib dstring.lo trie-string.lo fileutils.lo darray.lo tail.lo trie.lo alpha-map.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/dstring.o .libs/trie-string.o .libs/fileutils.o .libs/darray.o .libs/tail.o .libs/trie.o .libs/alpha-map.o -g -O2 -Wl,-version-script -Wl,./libdatrie.map -Wl,-soname -Wl,libdatrie.so.1 -o .libs/libdatrie.so.1.3.4
libtool: link: (cd ".libs" && rm -f "libdatrie.so.1" && ln -s "libdatrie.so.1.3.4" "libdatrie.so.1")
libtool: link: (cd ".libs" && rm -f "libdatrie.so" && ln -s "libdatrie.so.1.3.4" "libdatrie.so")
libtool: link: ar cru .libs/libdatrie.a dstring.o trie-string.o fileutils.o darray.o tail.o trie.o alpha-map.o
libtool: link: ranlib .libs/libdatrie.a
libtool: link: ( cd ".libs" && rm -f "libdatrie.la" && ln -s "../libdatrie.la" "libdatrie.la" )
make[2]: Leaving directory /home/devphp/downloads/libdatrie-0.2.11/datrie' Making all in tools make[2]: Entering directory /home/devphp/downloads/libdatrie-0.2.11/tools'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT trietool.o -MD -MP -MF .deps/trietool.Tpo -c -o trietool.o trietool.c
mv -f .deps/trietool.Tpo .deps/trietool.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o trietool trietool.o ../datrie/libdatrie.la
libtool: link: gcc -g -O2 -o .libs/trietool trietool.o ../datrie/.libs/libdatrie.so -Wl,-rpath -Wl,/usr/local/libdatrie/lib
trietool.o: In function conv_from_alpha': /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:170: undefined reference to libiconv'
trietool.o: In function conv_to_alpha': /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:125: undefined reference to libiconv'
trietool.o: In function command_delete_list': /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:470: undefined reference to libiconv_open'
/home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:506: undefined reference to libiconv_close' trietool.o: In function command_add_list':
/home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:368: undefined reference to libiconv_open' /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:417: undefined reference to libiconv_close'
trietool.o: In function init_conv': /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:108: undefined reference to libiconv_open'
/home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:109: undefined reference to libiconv_open' trietool.o: In function close_conv':
/home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:180: undefined reference to libiconv_close' /home/devphp/downloads/libdatrie-0.2.11/tools/trietool.c:181: undefined reference to libiconv_close'
collect2: error: ld returned 1 exit status
make[2]: *** [trietool] Error 1
make[2]: Leaving directory /home/devphp/downloads/libdatrie-0.2.11/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/devphp/downloads/libdatrie-0.2.11'
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant