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

0.8 fails to build when ld cannot find -lsasl2 #217

Closed
lfam opened this issue Jun 3, 2017 · 2 comments
Closed

0.8 fails to build when ld cannot find -lsasl2 #217

lfam opened this issue Jun 3, 2017 · 2 comments

Comments

@lfam
Copy link

lfam commented Jun 3, 2017

I'm trying to build ncmpcpp 0.8 in GNU Guix [0].

Unless I make Cyrus SASL available in the build environment, it fails as shown below. Is this dependency expected? Or is it a bug in ncmpcpp's build system, or perhaps in the Guix package tree?

/gnu/store/k7029k5va68lkapbzcycdzj7m5bjb4b8-bash-4.4.12/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++14   -o ncmpcpp curses/formatted_color.o curses/scrollpad.o curses/window.o screens/browser.o screens/clock.o screens/help.o screens/lastfm.o screens/lyrics.o screens/media_library.o screens/outputs.o screens/playlist.o screens/playlist_editor.o screens/screen.o screens/screen_type.o screens/search_engine.o screens/sel_items_adder.o screens/server_info.o screens/song_info.o screens/sort_playlist.o screens/tag_editor.o screens/tiny_tag_editor.o screens/visualizer.o utility/comparators.o utility/html.o utility/option_parser.o utility/string.o utility/type_conversions.o utility/wide_string.o actions.o bindings.o charset.o configuration.o curl_handle.o display.o enums.o format.o global.o helpers.o lastfm_service.o lyrics_fetcher.o macro_utilities.o mpdpp.o mutable_song.o ncmpcpp.o settings.o song.o song_list.o status.o statusbar.o tags.o title.o  -lncursesw  -lboost_date_time -lboost_filesystem -lboost_locale -lboost_program_options -lboost_regex -lboost_thread -lboost_system -pthread  -L/gnu/store/vfjp6lf6bns24i6m8gma2c1azd2b9ysg-libmpdclient-2.11/lib -lmpdclient -lreadline -lpthread -L/gnu/store/h7mx27bl0wynlz8vjszzykqqldccfwm5-ncurses-6.0/lib -lncursesw -L/gnu/store/9ihxpf7al0znb19lx0bk6ymjp6nxhn9y-curl-7.53.0/lib -lcurl -L/gnu/store/ikvyh2ccq8bghw7qwqzrsv0fnvdrxbnv-taglib-1.10/lib -ltag
libtool: link: g++ -g -O2 -std=c++14 -o ncmpcpp curses/formatted_color.o curses/scrollpad.o curses/window.o screens/browser.o screens/clock.o screens/help.o screens/lastfm.o screens/lyrics.o screens/media_library.o screens/outputs.o screens/playlist.o screens/playlist_editor.o screens/screen.o screens/screen_type.o screens/search_engine.o screens/sel_items_adder.o screens/server_info.o screens/song_info.o screens/sort_playlist.o screens/tag_editor.o screens/tiny_tag_editor.o screens/visualizer.o utility/comparators.o utility/html.o utility/option_parser.o utility/string.o utility/type_conversions.o utility/wide_string.o actions.o bindings.o charset.o configuration.o curl_handle.o display.o enums.o format.o global.o helpers.o lastfm_service.o lyrics_fetcher.o macro_utilities.o mpdpp.o mutable_song.o ncmpcpp.o settings.o song.o song_list.o status.o statusbar.o tags.o title.o -pthread  -lboost_date_time -lboost_filesystem -lboost_locale -lboost_program_options -lboost_regex -lboost_thread -lboost_system -L/gnu/store/vfjp6lf6bns24i6m8gma2c1azd2b9ysg-libmpdclient-2.11/lib /gnu/store/vfjp6lf6bns24i6m8gma2c1azd2b9ysg-libmpdclient-2.11/lib/libmpdclient.so -lreadline -lpthread -L/gnu/store/h7mx27bl0wynlz8vjszzykqqldccfwm5-ncurses-6.0/lib -lncursesw -L/gnu/store/9ihxpf7al0znb19lx0bk6ymjp6nxhn9y-curl-7.53.0/lib /gnu/store/9ihxpf7al0znb19lx0bk6ymjp6nxhn9y-curl-7.53.0/lib/libcurl.so -L/gnu/store/k8xbdjbpd83s6i48az9c7l6pkf8za8xj-libidn2-0.16/lib -L/gnu/store/jwkcd7siv6fcyl0qsg607bg9c8ap0gqr-zlib-1.2.11/lib -L/gnu/store/56dbd2gw33g3wdxmq78lr39lamg8gxnq-gnutls-3.5.9/lib -L/gnu/store/j92kxc1l8h879cc4ss1gbhsq73ddnbsg-libgpg-error-1.26/lib -L/gnu/store/xpldw0hzzn85074zdscjxxp5c64176hv-libtasn1-4.10/lib -L/gnu/store/02a60j2x8i4wdj67krl4z7fc5i7maqrw-nettle-3.3/lib /gnu/store/6akbmlv2czra5r5d8dhs04xd4y1v4rx0-libssh2-1.8.0/lib/libssh2.so /gnu/store/hag795ji8p9vqikwp8cibfibpsa39s3n-libgcrypt-1.7.6/lib/libgcrypt.so /gnu/store/m8bx51pr1jfg8p9dhkb2nkjchizmasb5-gss-1.0.3/lib/libgss.so /gnu/store/qi5nq5vg65isx4r4qlzfsz52bm8sb89x-shishi-1.0.2/lib/libshishi.so /gnu/store/f3qpgcjyhm2crmg38v6x8zni0w8jpkix-libgcrypt-1.5.6/lib/libgcrypt.so /gnu/store/j92kxc1l8h879cc4ss1gbhsq73ddnbsg-libgpg-error-1.26/lib/libgpg-error.so /gnu/store/idznqqbh691ilmfy2qgwdcanif3kaabq-libidn-1.33/lib/libidn.so /gnu/store/w6czj6prp47gak05lmdrf6hpv2fgdz93-openldap-2.4.44/lib/libldap.so /gnu/store/w6czj6prp47gak05lmdrf6hpv2fgdz93-openldap-2.4.44/lib/liblber.so -lresolv -lsasl2 /gnu/store/56dbd2gw33g3wdxmq78lr39lamg8gxnq-gnutls-3.5.9/lib/libgnutls.so /gnu/store/k8xbdjbpd83s6i48az9c7l6pkf8za8xj-libidn2-0.16/lib/libidn2.so /gnu/store/z1kihijf9klm5g3rzn4nk034nxhx58mn-libunistring-0.9.7/lib/libunistring.so /gnu/store/xpldw0hzzn85074zdscjxxp5c64176hv-libtasn1-4.10/lib/libtasn1.so -lnettle -lhogweed /gnu/store/wak3m4kdkgw010qn1ksnqlggvklp4b24-gmp-6.1.2/lib/libgmp.so -lz -L/gnu/store/ikvyh2ccq8bghw7qwqzrsv0fnvdrxbnv-taglib-1.10/lib -ltag -pthread -Wl,-rpath -Wl,/gnu/store/vfjp6lf6bns24i6m8gma2c1azd2b9ysg-libmpdclient-2.11/lib -Wl,-rpath -Wl,/gnu/store/9ihxpf7al0znb19lx0bk6ymjp6nxhn9y-curl-7.53.0/lib -Wl,-rpath -Wl,/gnu/store/6akbmlv2czra5r5d8dhs04xd4y1v4rx0-libssh2-1.8.0/lib -Wl,-rpath -Wl,/gnu/store/hag795ji8p9vqikwp8cibfibpsa39s3n-libgcrypt-1.7.6/lib -Wl,-rpath -Wl,/gnu/store/m8bx51pr1jfg8p9dhkb2nkjchizmasb5-gss-1.0.3/lib -Wl,-rpath -Wl,/gnu/store/qi5nq5vg65isx4r4qlzfsz52bm8sb89x-shishi-1.0.2/lib -Wl,-rpath -Wl,/gnu/store/f3qpgcjyhm2crmg38v6x8zni0w8jpkix-libgcrypt-1.5.6/lib -Wl,-rpath -Wl,/gnu/store/j92kxc1l8h879cc4ss1gbhsq73ddnbsg-libgpg-error-1.26/lib -Wl,-rpath -Wl,/gnu/store/idznqqbh691ilmfy2qgwdcanif3kaabq-libidn-1.33/lib -Wl,-rpath -Wl,/gnu/store/w6czj6prp47gak05lmdrf6hpv2fgdz93-openldap-2.4.44/lib -Wl,-rpath -Wl,/gnu/store/56dbd2gw33g3wdxmq78lr39lamg8gxnq-gnutls-3.5.9/lib -Wl,-rpath -Wl,/gnu/store/k8xbdjbpd83s6i48az9c7l6pkf8za8xj-libidn2-0.16/lib -Wl,-rpath -Wl,/gnu/store/z1kihijf9klm5g3rzn4nk034nxhx58mn-libunistring-0.9.7/lib -Wl,-rpath -Wl,/gnu/store/xpldw0hzzn85074zdscjxxp5c64176hv-libtasn1-4.10/lib -Wl,-rpath -Wl,/gnu/store/wak3m4kdkgw010qn1ksnqlggvklp4b24-gmp-6.1.2/lib -Wl,-rpath -Wl,/gnu/store/vfjp6lf6bns24i6m8gma2c1azd2b9ysg-libmpdclient-2.11/lib -Wl,-rpath -Wl,/gnu/store/9ihxpf7al0znb19lx0bk6ymjp6nxhn9y-curl-7.53.0/lib -Wl,-rpath -Wl,/gnu/store/6akbmlv2czra5r5d8dhs04xd4y1v4rx0-libssh2-1.8.0/lib -Wl,-rpath -Wl,/gnu/store/hag795ji8p9vqikwp8cibfibpsa39s3n-libgcrypt-1.7.6/lib -Wl,-rpath -Wl,/gnu/store/m8bx51pr1jfg8p9dhkb2nkjchizmasb5-gss-1.0.3/lib -Wl,-rpath -Wl,/gnu/store/qi5nq5vg65isx4r4qlzfsz52bm8sb89x-shishi-1.0.2/lib -Wl,-rpath -Wl,/gnu/store/f3qpgcjyhm2crmg38v6x8zni0w8jpkix-libgcrypt-1.5.6/lib -Wl,-rpath -Wl,/gnu/store/j92kxc1l8h879cc4ss1gbhsq73ddnbsg-libgpg-error-1.26/lib -Wl,-rpath -Wl,/gnu/store/idznqqbh691ilmfy2qgwdcanif3kaabq-libidn-1.33/lib -Wl,-rpath -Wl,/gnu/store/w6czj6prp47gak05lmdrf6hpv2fgdz93-openldap-2.4.44/lib -Wl,-rpath -Wl,/gnu/store/56dbd2gw33g3wdxmq78lr39lamg8gxnq-gnutls-3.5.9/lib -Wl,-rpath -Wl,/gnu/store/k8xbdjbpd83s6i48az9c7l6pkf8za8xj-libidn2-0.16/lib -Wl,-rpath -Wl,/gnu/store/z1kihijf9klm5g3rzn4nk034nxhx58mn-libunistring-0.9.7/lib -Wl,-rpath -Wl,/gnu/store/xpldw0hzzn85074zdscjxxp5c64176hv-libtasn1-4.10/lib -Wl,-rpath -Wl,/gnu/store/wak3m4kdkgw010qn1ksnqlggvklp4b24-gmp-6.1.2/lib
ld: cannot find -lsasl2
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:650: ncmpcpp] Error 1
make[2]: Leaving directory '/tmp/guix-build-ncmpcpp-0.8.drv-0/ncmpcpp-0.8/src'
make[1]: *** [Makefile:495: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guix-build-ncmpcpp-0.8.drv-0/ncmpcpp-0.8'
make: *** [Makefile:406: all] Error 2

[0] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/mpd.scm?id=caa464ff44eecf9dbff2d08742d135501c41cd09#n196

@lfam
Copy link
Author

lfam commented Jun 3, 2017

I suspect an issue in our packaging of openldap, which is a dependency of curl.

@lfam
Copy link
Author

lfam commented Jun 3, 2017

Closing in favor of:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27220#11

@lfam lfam closed this as completed Jun 3, 2017
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