[opensuse-packaging] kqlives: Config question
Project: home:saigkill Package: kqlives Hello Mates, does anyone know, what this checks? { echo "$as_me:$LINENO: checking for dumb_exit in -ldumb" >&5 echo $ECHO_N "checking for dumb_exit in -ldumb... $ECHO_C" >&6; } if test "${ac_cv_lib_dumb_dumb_exit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 I've added my libdumb-devel, but this Check fails. Has anyone an Tip? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com DISCLAIMER: Please note that in accordance with the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. http://www.vorratsdatenspeicherung.de http://www.ccc.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns escribió:
Project: home:saigkill Package: kqlives
Hello Mates,
does anyone know, what this checks?
{ echo "$as_me:$LINENO: checking for dumb_exit in -ldumb" >&5 echo $ECHO_N "checking for dumb_exit in -ldumb... $ECHO_C" >&6; } if test "${ac_cv_lib_dumb_dumb_exit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6
I've added my libdumb-devel, but this Check fails.
you are near to the problem, but not there, everytime configure fails the best thing you can do is dump the contents of config.log file that is generated in the build dir.. this case the error is configure:13678: checking for dumb_exit in -ldumb configure:13713: gcc -o conftest -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables conftest.c -ldumb >&5 /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libdumb.so: undefined reference to `floor' /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libdumb.so: undefined reference to `trunc' /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libdumb.so: undefined reference to `log' /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libdumb.so: undefined reference to `exp' /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libdumb.so: undefined reference to `pow' collect2: ld returned 1 exit status you must patch configure.ac where it says AC_CHECK_LIB(dumb, dumb_exit, [ALLEGRO_LIBS="-ldumb $ALLEGRO_LIBS"], [AC_MSG_ERROR([Dumb not found])]) should say AC_CHECK_LIB(dumb, dumb_exit, [ALLEGRO_LIBS="-ldumb -lm $ALLEGRO_LIBS"], [AC_MSG_ERROR([Dumb not found])]) apply the patch during %prep and run autoreconf -fiv at the very begging of the %build section, also, replace ./configure for %configure.. -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Cristian Rodríguez escribió:
AC_CHECK_LIB(dumb, dumb_exit, [ALLEGRO_LIBS="-ldumb -lm $ALLEGRO_LIBS"], [AC_MSG_ERROR([Dumb not found])])
apply the patch during %prep and run autoreconf -fiv at the very begging of the %build section, also, replace ./configure for %configure..
wait, now that I think about, the bug is in libdumb, it has to linked explicitely with -lm, rebuild package dumb with LDFLAGS="-Wl,--no-undefined" and you will figure it out.. -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Hi, now i created my Patch for src/Makefile. But i become the same Errors: ..libs/datduh.o: In function `dat_read_duh': datduh.c:(.text+0x41): undefined reference to `read_duh' datduh.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datduh.o: In function `dumb_register_dat_duh': datduh.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datunld.o: In function `_dat_unload_duh': datunld.c:(.text+0x1): undefined reference to `unload_duh' ..libs/packfile.o: In function `dumbfile_from_packfile': packfile.c:(.text+0xd): undefined reference to `dumbfile_open_ex' ..libs/packfile.o: In function `dumbfile_open_packfile': packfile.c:(.text+0x28): undefined reference to `dumbfile_open_ex' ..libs/packfile.o: In function `dumb_packfile_close': packfile.c:(.text+0x31): undefined reference to `pack_fclose' ..libs/packfile.o: In function `dumb_packfile_getnc': packfile.c:(.text+0x41): undefined reference to `pack_fread' ..libs/packfile.o: In function `dumb_packfile_getc': packfile.c:(.text+0x51): undefined reference to `pack_getc' ..libs/packfile.o: In function `dumb_packfile_skip': packfile.c:(.text+0x61): undefined reference to `pack_fseek' ..libs/packfile.o: In function `dumb_packfile_open': packfile.c:(.text+0x78): undefined reference to `pack_fopen' ..libs/packfile.o: In function `dumb_register_packfiles': packfile.c:(.text+0x88): undefined reference to `register_dumbfile_system' ..libs/alplay.o: In function `al_duh_decompose_to_sigrenderer': alplay.c:(.text+0x76): undefined reference to `stop_audio_stream' ..libs/alplay.o: In function `al_duh_encapsulate_sigrenderer': alplay.c:(.text+0x116): undefined reference to `duh_sigrenderer_get_n_channels' alplay.c:(.text+0x143): undefined reference to `play_audio_stream' alplay.c:(.text+0x158): undefined reference to `voice_set_priority' ..libs/alplay.o: In function `al_stop_duh': alplay.c:(.text+0x203): undefined reference to `duh_end_sigrenderer' alplay.c:(.text+0x20c): undefined reference to `stop_audio_stream' ..libs/alplay.o: In function `al_poll_duh': alplay.c:(.text+0x27d): undefined reference to `get_audio_stream_buffer' alplay.c:(.text+0x2bd): undefined reference to `duh_render' alplay.c:(.text+0x2dc): undefined reference to `duh_sigrenderer_get_n_channels' alplay.c:(.text+0x317): undefined reference to `free_audio_stream_buffer' alplay.c:(.text+0x341): undefined reference to `duh_end_sigrenderer' alplay.c:(.text+0x34a): undefined reference to `free_audio_stream_buffer' alplay.c:(.text+0x353): undefined reference to `stop_audio_stream' ..libs/alplay.o: In function `al_resume_duh': alplay.c:(.text+0x399): undefined reference to `voice_start' ..libs/alplay.o: In function `al_pause_duh': alplay.c:(.text+0x3d9): undefined reference to `voice_stop' ..libs/alplay.o: In function `al_start_duh': alplay.c:(.text+0x492): undefined reference to `play_audio_stream' alplay.c:(.text+0x4a7): undefined reference to `voice_set_priority' alplay.c:(.text+0x4b7): undefined reference to `duh_start_sigrenderer' alplay.c:(.text+0x4e0): undefined reference to `stop_audio_stream' ..libs/alplay.o: In function `al_duh_set_priority': alplay.c:(.text+0x1b3): undefined reference to `voice_set_priority' ..libs/alplay.o: In function `al_duh_get_position': alplay.c:(.text+0x1da): undefined reference to `duh_sigrenderer_get_position' ..libs/datit.o: In function `dat_read_it': datit.c:(.text+0x41): undefined reference to `dumb_read_it' datit.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datit.o: In function `dumb_register_dat_it': datit.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datxm.o: In function `dat_read_xm': datxm.c:(.text+0x41): undefined reference to `dumb_read_xm' datxm.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datxm.o: In function `dumb_register_dat_xm': datxm.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/dats3m.o: In function `dat_read_s3m': dats3m.c:(.text+0x41): undefined reference to `dumb_read_s3m' dats3m.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/dats3m.o: In function `dumb_register_dat_s3m': dats3m.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datmod.o: In function `dat_read_mod': datmod.c:(.text+0x41): undefined reference to `dumb_read_mod' datmod.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datmod.o: In function `dumb_register_dat_mod': datmod.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datitq.o: In function `dat_read_it_quick': datitq.c:(.text+0x41): undefined reference to `dumb_read_it_quick' datitq.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datitq.o: In function `dumb_register_dat_it_quick': datitq.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datxmq.o: In function `dat_read_xm_quick': datxmq.c:(.text+0x41): undefined reference to `dumb_read_xm_quick' datxmq.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datxmq.o: In function `dumb_register_dat_xm_quick': datxmq.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/dats3mq.o: In function `dat_read_s3m_quick': dats3mq.c:(.text+0x41): undefined reference to `dumb_read_s3m_quick' dats3mq.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/dats3mq.o: In function `dumb_register_dat_s3m_quick': dats3mq.c:(.text+0xf): undefined reference to `register_datafile_object' ..libs/datmodq.o: In function `dat_read_mod_quick': datmodq.c:(.text+0x41): undefined reference to `dumb_read_mod_quick' datmodq.c:(.text+0x4c): undefined reference to `dumbfile_close' ..libs/datmodq.o: In function `dumb_register_dat_mod_quick': datmodq.c:(.text+0xf): undefined reference to `register_datafile_object' collect2: ld returned 1 exit status make[1]: *** [libaldmb.la] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/dumb-0.9.3/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.9648 (%build) I've added the Patch and the actual Spec File. -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com DISCLAIMER: Please note that in accordance with the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. http://www.vorratsdatenspeicherung.de http://www.ccc.de
Hi, it is very strange, i added +libaldmb_la_LDADD = -lm to the src/Makefile. And now comes the other output: /libdumb-0.9.3.so ..libs/clickrem.o: In function `dumb_remove_clicks': clickrem.c:(.text+0x425): undefined reference to `pow' clickrem.c:(.text+0x432): undefined reference to `trunc' ..libs/resample.o: In function `dumb_resample_8_2_1': resample.c:(.text+0x32c): undefined reference to `floor' resample.c:(.text+0x357): undefined reference to `floor' ..libs/resample.o: In function `dumb_resample_get_current_sample_8_2_2': resample.c:(.text+0x2a03): undefined reference to `floor' resample.c:(.text+0x2a25): undefined reference to `floor' ..libs/resample.o: In function `dumb_resample_8_2_2': resample.c:(.text+0x2d2a): undefined reference to `floor' ..libs/resample.o:resample.c:(.text+0x2d56): more undefined references to `floor' follow ..libs/itrender.o: In function `update_effects': itrender.c:(.text+0x3a88): undefined reference to `pow' itrender.c:(.text+0x3acb): undefined reference to `pow' ..libs/itrender.o: In function `process_tick': itrender.c:(.text+0x3d7f): undefined reference to `pow' itrender.c:(.text+0x3dce): undefined reference to `pow' itrender.c:(.text+0x3e7c): undefined reference to `pow' ..libs/itrender.o:itrender.c:(.text+0x47f9): more undefined references to `pow' follow ..libs/itrender.o: In function `it_filter': itrender.c:(.text+0x4af9): undefined reference to `exp' ..libs/readmod.o: In function `dumb_read_mod_quick': readmod.c:(.text+0x435): undefined reference to `pow' readmod.c:(.text+0x9e2): undefined reference to `log' readmod.c:(.text+0x9f7): undefined reference to `floor' ..libs/readxm.o: In function `dumb_read_xm_quick': readxm.c:(.text+0x749): undefined reference to `pow' readxm.c:(.text+0x76a): undefined reference to `pow' collect2: ld returned 1 exit status make[1]: *** [libdumb.la] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/dumb-0.9.3/src' Very strange :-( -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com DISCLAIMER: Please note that in accordance with the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. http://www.vorratsdatenspeicherung.de http://www.ccc.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Sascha 'saigkill' Manns