pmidi (1.6.0) fails to compile if glib-1.2 is not present: ... i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -march=athlon-xp -O3 -pipe -fomit-frame-pointer -o pmidi elements.o except.o mdutil.o midiread.o pmidi.o seqlib.o seqmidi.o -lasound -lm -ldl -lpthread -lasound -lm -ldl -lpthread elements.o(.text+0x14a): In function `md_root_new': : undefined reference to `g_ptr_array_new' elements.o(.text+0x1ea): In function `md_track_new': : undefined reference to `g_ptr_array_new' elements.o(.text+0x28a): In function `md_tempomap_new': : undefined reference to `g_ptr_array_new' elements.o(.text+0x3ca): In function `md_part_new': : undefined reference to `g_ptr_array_new' elements.o(.text+0xb64): In function `md_free': : undefined reference to `g_ptr_array_free' elements.o(.text+0xaec): In function `md_add': : undefined reference to `g_ptr_array_add' midiread.o(.text+0x1f): In function `midi_read': : undefined reference to `g_ptr_array_new' midiread.o(.text+0x90): In function `midi_read': : undefined reference to `g_ptr_array_free' midiread.o(.text+0xa1a): In function `save_note': : undefined reference to `g_ptr_array_add' midiread.o(.text+0xad6): In function `finish_note': : undefined reference to `g_ptr_array_remove_index_fast' seqlib.o(.text+0x112): In function `seq_create_context': : undefined reference to `g_array_new' seqlib.o(.text+0x335): In function `seq_connect_add': : undefined reference to `g_array_append_vals' collect2: ld returned 1 exit status make[1]: *** [pmidi] Error 1 make[1]: Leaving directory `/var/tmp/portage/pmidi-1.6.0/work/pmidi-1.6.0/src' make: *** [all-recursive] Error 1 !!! ERROR: media-sound/pmidi-1.6.0 failed. !!! Function src_compile, Line 556, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message.
No configure script to fetch the problem either. Why is there no `glib-config --libs --cflags` here? *look at the package source*
Never mind comment #1.
Created attachment 62933 [details, diff] pmidi-1.6.0.glib.patch Make configure fail if glib-config is not found (current configure scripts sets glib-config to true if not found, so all places where you want to run "glib-config --libs" you instead get "true --libs"
Created attachment 62934 [details] pmidi-1.6.0-r1.ebuild Use the glib patch (for sanity) and depend on glib<2.0
pmidi is masked and pending removal. Use aplaymidi provided by alsa-utils instead.