Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98343 - pmidi depends on glib-1.2*
Summary: pmidi depends on glib-1.2*
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-07-08 05:31 UTC by Henrik Sankala
Modified: 2005-10-30 07:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pmidi-1.6.0.glib.patch (pmidi-1.6.0.glib.patch,1.09 KB, patch)
2005-07-08 07:29 UTC, Stian Skjelstad
Details | Diff
pmidi-1.6.0-r1.ebuild (pmidi-1.6.0-r1.ebuild,712 bytes, text/plain)
2005-07-08 07:36 UTC, Stian Skjelstad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Sankala 2005-07-08 05:31:30 UTC
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.
Comment 1 Stian Skjelstad 2005-07-08 07:18:35 UTC
No configure script to fetch the problem either. Why is there no `glib-config
--libs --cflags` here?  *look at the package source*
Comment 2 Stian Skjelstad 2005-07-08 07:20:54 UTC
Never mind comment #1.
Comment 3 Stian Skjelstad 2005-07-08 07:29:23 UTC
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"
Comment 4 Stian Skjelstad 2005-07-08 07:36:54 UTC
Created attachment 62934 [details]
pmidi-1.6.0-r1.ebuild

Use the glib patch (for sanity) and depend on glib<2.0
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-30 07:51:01 UTC
pmidi is masked and pending removal. 
Use aplaymidi provided by alsa-utils instead.