bbidulock / blackboxwm

A window manager for X11
Other
169 stars 30 forks source link

Fails to compile on FreeBSD #46

Closed twwtusr closed 8 months ago

twwtusr commented 1 year ago

Hello, I have downloaded 0.77 Relase and ran: ./configure && gmake Which gave me these errors:

  CXXLD    blackbox
/usr/local/bin/ld: Configmenu.o: in function `ConfigFocusmenu::ConfigFocusmenu(bt::Application&, unsigned int, BScreen*)':
/usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:228: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:232: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:234: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:236: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:238: undefined reference to `libintl_gettext'
/usr/local/bin/ld: Configmenu.o:/usr/home/yabai/dloads/chrome/blackbox-0.77/src/Configmenu.cc:386: more undefined references to `libintl_gettext' follow
/usr/local/bin/ld: main.o: in function `main':
/usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:97: undefined reference to `libintl_bindtextdomain'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:98: undefined reference to `libintl_textdomain'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:135: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:105: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:115: undefined reference to `libintl_gettext'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/src/main.cc:125: undefined reference to `libintl_gettext'
/usr/local/bin/ld: ../lib/.libs/libbt.a(Application.o): in function `bt::Application::closeMenu(bt::Menu*)':
/usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Application.cc:629: undefined reference to `libintl_gettext'
/usr/local/bin/ld: ../lib/.libs/libbt.a(Application.o):/usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Application.cc:233: more undefined references to `libintl_gettext' follow
/usr/local/bin/ld: ../lib/.libs/libbt.a(Unicode.o): in function `bt::hasUnicode()':
/usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:181: undefined reference to `libiconv_open'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:188: undefined reference to `libiconv_close'
/usr/local/bin/ld: ../lib/.libs/libbt.a(Unicode.o): in function `void bt::convert<std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [clone .constprop.0]':
/usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:82: undefined reference to `libiconv_open'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:103: undefined reference to `libiconv'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:139: undefined reference to `libiconv_close'
/usr/local/bin/ld: ../lib/.libs/libbt.a(Unicode.o): in function `void bt::convert<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > >(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >&) [clone .constprop.0]':
/usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:82: undefined reference to `libiconv_open'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:103: undefined reference to `libiconv'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:132: undefined reference to `libiconv_close'
/usr/local/bin/ld: /usr/home/yabai/dloads/chrome/blackbox-0.77/lib/Unicode.cc:139: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
gmake[2]: *** [Makefile:557: blackbox] Error 1
gmake[2]: Leaving directory '/usr/home/yabai/dloads/chrome/blackbox-0.77/src'
gmake[1]: *** [Makefile:477: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/home/yabai/dloads/chrome/blackbox-0.77'
gmake: *** [Makefile:407: all] Error 2

I tried to Google the errors but wasn't able to fix them. Any help?

bbidulock commented 1 year ago

At first glance, it looks like you do not have libintl or libiconv loaded on your system.

twwtusr commented 1 year ago

libiconv appears to be there:

$ pkg info | grep libiconv
libiconv-1.17                  Character set conversion library

And libintl should come with the gettext package:

$ pkg info | grep gettex
gettext-0.21.1                 GNU gettext meta package
bbidulock commented 1 year ago

Your loader (ld) which is strangely /usr/local/bin/ld cannot find them.