Project

General

Profile

cdaudio-ng plugin won't compile

Added by Ryan Claasen Hoopes over 12 years ago

I guess I'm special: I'm doing the first post! I recently posted this on the old boards, http://boards.audacious-media-player.org/viewtopic.php?f=1&t=538. I'm trying to compile the latest release (3.1.1) and cdaudio-ng won't compile. Here is the output from GNU make:

Entering directory cdaudio-ng.
cdaudio-ng.plugin.o: In function `scan_cd':
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:759: undefined reference to `cddb_new'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:766: undefined reference to `cddb_cache_enable'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:785: undefined reference to `cddb_http_enable'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:786: undefined reference to `cddb_set_server_name'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:787: undefined reference to `cddb_set_server_port'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:788: undefined reference to `cddb_set_http_path_query'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:796: undefined reference to `cddb_disc_new'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:800: undefined reference to `cddb_disc_set_length'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:804: undefined reference to `cddb_track_new'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:805: undefined reference to `cddb_track_set_frame_offset'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:809: undefined reference to `cddb_disc_add_track'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:812: undefined reference to `cddb_disc_calc_discid'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:820: undefined reference to `cddb_query'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:838: undefined reference to `cddb_disc_destroy'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:890: undefined reference to `cddb_destroy'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:771: undefined reference to `cddb_http_proxy_enable'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:772: undefined reference to `cddb_set_http_proxy_server_name'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:774: undefined reference to `cddb_set_http_proxy_server_port'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:776: undefined reference to `cddb_set_http_proxy_username'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:778: undefined reference to `cddb_set_http_proxy_password'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:792: undefined reference to `cddb_set_server_name'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:793: undefined reference to `cddb_set_server_port'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:846: undefined reference to `cddb_read'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:847: undefined reference to `cddb_errno'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:849: undefined reference to `cddb_errno'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:849: undefined reference to `cddb_error_str'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:852: undefined reference to `cddb_disc_destroy'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:862: undefined reference to `cddb_disc_get_genre'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:860: undefined reference to `cddb_disc_get_title'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:858: undefined reference to `cddb_disc_get_artist'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:870: undefined reference to `cddb_disc_get_track'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:877: undefined reference to `cddb_disc_get_genre'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:875: undefined reference to `cddb_track_get_title'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:873: undefined reference to `cddb_track_get_artist'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:887: undefined reference to `cddb_disc_destroy'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:822: undefined reference to `cddb_errno'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:829: undefined reference to `cddb_disc_destroy'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:843: undefined reference to `cddb_disc_get_category_str'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:825: undefined reference to `cddb_errno'
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:825: undefined reference to `cddb_error_str'
cdaudio-ng.plugin.o: In function `cdaudio_cleanup':
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:482: undefined reference to `libcddb_shutdown'
cdaudio-ng.plugin.o: In function `cdaudio_init':
/home/ryan/Downloads/audacious-plugins-3.1.1/src/cdaudio-ng/cdaudio-ng.c:230: undefined reference to `libcddb_init'
collect2: ld returned 1 exit status
Failed to link cdaudio-ng.so!
make[5]: *** [cdaudio-ng.so] Error 1
make[4]: *** [all] Error 2
make[3]: *** [subdirs] Error 1
make[2]: *** [all] Error 2
make[1]: *** [subdirs] Error 1
make: *** [all] Error 2

Someone asked me what libccd2-dev version I have. It is 1.3.2-2, the most current, I believe. I'm running Debian Squeeze (6.0.3) on my 32-bit Intel.


Replies (8)

RE: cdaudio-ng plugin won't compile - Added by Michał Lipski over 12 years ago

Does ./configure find libcddb?

checking for CDDB... yes

RE: cdaudio-ng plugin won't compile - Added by John Lindgren over 12 years ago

Also check the CDDB_LIBS line in extra.mk. It should be something like:

CDDB_LIBS ?= -lcddb

RE: cdaudio-ng plugin won't compile - Added by Ryan Claasen Hoopes over 12 years ago

Affirmative on both questions.

RE: cdaudio-ng plugin won't compile - Added by John Lindgren over 12 years ago

I have no clue then. Try reinstalling libcddb?

RE: cdaudio-ng plugin won't compile - Added by Ryan Claasen Hoopes over 12 years ago

Thanks for the help. I actually compiled the library from source instead of using the debian package, and then the plugin compiled ok. I'll leave it to the gurus to find what went wrong. :)

RE: cdaudio-ng plugin won't compile - Added by Oleg Stream almost 12 years ago

Hello!
I reinstall libcddb-1.3.2-x86_64
but i have a same problem (

Successfully compiled configure.c (plugin).
Successfully compiled cdaudio-ng.c (plugin).
cdaudio-ng.plugin.o: In function `refresh_trackinfo':
cdaudio-ng.c:(.text+0x2b8): undefined reference to `cdio_get_discmode'
cdaudio-ng.c:(.text+0x2de): undefined reference to `cdio_get_media_changed'
cdaudio-ng.c:(.text+0x3bc): undefined reference to `cdio_cddap_close'
cdaudio-ng.c:(.text+0x46d): undefined reference to `cdio_get_devices_with_cap'
cdaudio-ng.c:(.text+0x491): undefined reference to `cdio_cddap_identify'
cdaudio-ng.c:(.text+0x4c1): undefined reference to `cdio_free_device_list'
cdaudio-ng.c:(.text+0x528): undefined reference to `cdio_cddap_open'
cdaudio-ng.c:(.text+0x55b): undefined reference to `cdio_cddap_speed_set'
cdaudio-ng.c:(.text+0x572): undefined reference to `cdio_get_first_track_num'
cdaudio-ng.c:(.text+0x58a): undefined reference to `cdio_get_last_track_num'
cdaudio-ng.c:(.text+0x5e9): undefined reference to `cdio_cddap_track_lastsector'
cdaudio-ng.c:(.text+0x5f9): undefined reference to `cdio_cddap_track_firstsector'
cdaudio-ng.c:(.text+0x66b): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x69f): undefined reference to `cdio_cddap_track_lastsector'
cdaudio-ng.c:(.text+0x6b1): undefined reference to `cdio_cddap_track_firstsector'
cdaudio-ng.c:(.text+0x7c0): undefined reference to `cdio_cddap_identify'
cdaudio-ng.c:(.text+0x817): undefined reference to `cdio_get_cdtext'
cdaudio-ng.c:(.text+0x8a7): undefined reference to `cdio_get_cdtext'
cdaudio-ng.c:(.text+0xa7c): undefined reference to `cdio_get_track_lba'
cdaudio-ng.c:(.text+0xacb): undefined reference to `cdio_get_track_lba'
cdaudio-ng.plugin.o: In function `cdaudio_play':
cdaudio-ng.c:(.text+0x10ce): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x1322): undefined reference to `cdio_read_audio_sectors'
cdaudio-ng.plugin.o: In function `make_tuple':
cdaudio-ng.c:(.text+0x1533): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x1694): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.plugin.o: In function `cdaudio_cleanup':
cdaudio-ng.c:(.text+0x182d): undefined reference to `cdio_cddap_close'
cdaudio-ng.plugin.o: In function `cdaudio_init':
cdaudio-ng.c:(.text+0x1b5b): undefined reference to `cdio_init'
collect2: выполнение ld завершилось с кодом возврата 1
Failed to link cdaudio-ng.so!
make5: * [cdaudio-ng.so] Ошибка 1
make4:
[all] Ошибка 2
make3:
[subdirs] Ошибка 1
make2:
[all] Ошибка 2
make1:
[subdirs] Ошибка 1
make:
[all] Ошибка 2
Entering directory src.
Entering directory tonegen.
Leaving directory tonegen.
Entering directory metronom.
Leaving directory metronom.
Entering directory vtx.
Leaving directory vtx.
Entering directory console.
Leaving directory console.
Entering directory xsf.
Leaving directory xsf.
Entering directory psf.
Leaving directory psf.
Entering directory vorbis.
Leaving directory vorbis.
Entering directory flacng.
Leaving directory flacng.
Entering directory wavpack.
Leaving directory wavpack.
Entering directory aac.
Leaving directory aac.
Entering directory sndfile.
Leaving directory sndfile.
Entering directory ffaudio.
Leaving directory ffaudio.
Entering directory amidi-plug.
Entering directory pcfg.
Leaving directory pcfg.
Entering directory backend-alsa.
Leaving directory backend-alsa.
Leaving directory amidi-plug.
Entering directory cdaudio-ng.
cdaudio-ng.plugin.o: In function `refresh_trackinfo':
cdaudio-ng.c:(.text+0x2b8): undefined reference to `cdio_get_discmode'
cdaudio-ng.c:(.text+0x2de): undefined reference to `cdio_get_media_changed'
cdaudio-ng.c:(.text+0x3bc): undefined reference to `cdio_cddap_close'
cdaudio-ng.c:(.text+0x46d): undefined reference to `cdio_get_devices_with_cap'
cdaudio-ng.c:(.text+0x491): undefined reference to `cdio_cddap_identify'
cdaudio-ng.c:(.text+0x4c1): undefined reference to `cdio_free_device_list'
cdaudio-ng.c:(.text+0x528): undefined reference to `cdio_cddap_open'
cdaudio-ng.c:(.text+0x55b): undefined reference to `cdio_cddap_speed_set'
cdaudio-ng.c:(.text+0x572): undefined reference to `cdio_get_first_track_num'
cdaudio-ng.c:(.text+0x58a): undefined reference to `cdio_get_last_track_num'
cdaudio-ng.c:(.text+0x5e9): undefined reference to `cdio_cddap_track_lastsector'
cdaudio-ng.c:(.text+0x5f9): undefined reference to `cdio_cddap_track_firstsector'
cdaudio-ng.c:(.text+0x66b): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x69f): undefined reference to `cdio_cddap_track_lastsector'
cdaudio-ng.c:(.text+0x6b1): undefined reference to `cdio_cddap_track_firstsector'
cdaudio-ng.c:(.text+0x7c0): undefined reference to `cdio_cddap_identify'
cdaudio-ng.c:(.text+0x817): undefined reference to `cdio_get_cdtext'
cdaudio-ng.c:(.text+0x8a7): undefined reference to `cdio_get_cdtext'
cdaudio-ng.c:(.text+0xa7c): undefined reference to `cdio_get_track_lba'
cdaudio-ng.c:(.text+0xacb): undefined reference to `cdio_get_track_lba'
cdaudio-ng.plugin.o: In function `cdaudio_play':
cdaudio-ng.c:(.text+0x10ce): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x1322): undefined reference to `cdio_read_audio_sectors'
cdaudio-ng.plugin.o: In function `make_tuple':
cdaudio-ng.c:(.text+0x1533): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.c:(.text+0x1694): undefined reference to `cdio_cddap_track_audiop'
cdaudio-ng.plugin.o: In function `cdaudio_cleanup':
cdaudio-ng.c:(.text+0x182d): undefined reference to `cdio_cddap_close'
cdaudio-ng.plugin.o: In function `cdaudio_init':
cdaudio-ng.c:(.text+0x1b5b): undefined reference to `cdio_init'
collect2: выполнение ld завершилось с кодом возврата 1
Failed to link cdaudio-ng.so!
make5:
[cdaudio-ng.so] Ошибка 1
make4:
[all] Ошибка 2
make3:
[subdirs] Ошибка 1
make2:
[all] Ошибка 2
make1:
[subdirs] Ошибка 1
make: *
[all] Ошибка 2

RE: cdaudio-ng plugin won't compile - Added by Oleg Stream almost 12 years ago

Error in libcddb!
I download package libcddb RPM convert to txz for slackware
And audacious plugins sucessfully compiled.
package libcddb-1.3.2-8-x86_64-1.txz
Thanks!

RE: cdaudio-ng plugin won't compile - Added by Oleg Stream almost 12 years ago

Under slackware i486 - old libcddb and audacious work, but under slackware x64 audacious need new libcddb!

    (1-8/8)