bugDenemo - Bugs: bug #52741, Can't build with...

 
 

bug #52741: Can't build with --disable-portaudio

Submitter:  None
Submitted:  Mon 25 Dec 2017 12:15:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 24 Jan 2018 12:39:01 PM UTC, comment #6: 

whoops! for "not" read "now" :(

Richard Shann <rshann>
Group administrator
Wed 24 Jan 2018 12:33:12 PM UTC, comment #5: 

Sorry, yes, of course I should have attached not pasted the patch. I've at last got back my access to the repository and the fix is not in.

Richard Shann <rshann>
Group administrator
Sat 30 Dec 2017 09:05:17 PM UTC, comment #4: 

Thanks, it worked for release).
The only problem at this site - when i copy text from comments here, resulting copy has removed all empty lines and indentation (one space indentation for context in patch).
Would be better to post such things (anything like source code) in pastebin services.
Lets hope, they will fix it.

Zlobin Nikita <nick87720z>
Sat 30 Dec 2017 03:43:25 PM UTC, comment #3: 

Here is the fix for this bug. Until things get back to normal I can't push it to git unfortunately.

From 2e3c3b974e3e27873841c0ad9a05537a682e85f5 Mon Sep 17 00:00:00 2001
From: Richard Shann <richard@rshann.plus.com>
Date: Sat, 30 Dec 2017 15:32:35 +0000
Subject: [PATCH 1/2] Fix bug #52741: Can't build with --disable-portaudio

---
 src/audio/midi.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/audio/midi.c b/src/audio/midi.c
index 55683cfe3..71c5df2cd 100644
--- a/src/audio/midi.c
+++ b/src/audio/midi.c
@@ -29,6 +29,13 @@
 
 #define SHAVING (0.01)          seconds to shave off a note start time to ensure stopping before noteon is sent, and starting with noteon first note may depend of speed of machine??? FIXME
 
+#ifndef HAVE_PORTAUDIO
+gdouble get_playback_speed (void)
+{
+    return 1.0;
+}
+void set_playback_speed (double speed) {}
+#endif
 
 static volatile gboolean playing = FALSE;
 
--
2.11.0

Richard Shann <rshann>
Group administrator
Tue 26 Dec 2017 09:24:56 AM UTC, comment #2: 

Thanks for reporting this, it looks like an easy fix but may get somewhat held up by the holiday and the fact that I've temporarily lost my access to the repository.

Richard Shann <rshann>
Group administrator
Tue 26 Dec 2017 09:02:13 AM UTC, comment #1: 



(how about to turn "Rich Markup" label into url to that recipe?)

Zlobin Nikita <nick87720z>
Mon 25 Dec 2017 12:15:43 PM UTC, original submission:  

During experiments, building release 2.2.0 with different options, i noticed, that when configured to --disable-portaudio, it fails with this error:
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fdiagnostics-color=auto  -pthread  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/libxml2  -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -pthread -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm  -I/usr/include/freetype2  -lgthread-2.0 -pthread -lglib-2.0  -lsndfile  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -D_WITH_AUBIO_4_ -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread  -I/usr/include/gtksourceview-3.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/libxml2  -I/usr/include/evince/3.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread  -DUSE_EVINCE -D_HAVE_FLUIDSYNTH_  -D_HAVE_RUBBERBAND_  -D_HAVE_PORTMIDI_ -D_HAVE_X11_   -o denemo audio/audiocapture.o audio/instrumentname.o audio/midi.o audio/parseinstruments.o audio/pitchentry.o audio/pitchrecog.o audio/playback.o command/changenotehead.o command/chord.o command/clef.o command/commandfuncs.o command/contexts.o command/fakechord.o command/figure.o command/grace.o command/keyresponses.o command/keysig.o command/lilydirectives.o command/lyric.o command/measure.o command/processstaffname.o command/object.o command/scorelayout.o command/score.o command/select.o command/staff.o command/timesig.o command/tuplet.o core/binreloc.o core/denemo_types.o core/cache.o core/external.o core/exportxml.o core/graphicseditor.o core/importxml.o core/kbd-custom.o core/keyboard.o core/keymapio.o core/main.o core/palettestorage.o core/prefops.o core/utils.o core/view.o display/calculatepositions.o display/displayanimation.o display/drawaccidentals.o display/drawbarline.o display/draw.o display/drawclefs.o display/drawcursor.o display/drawdynamic.o display/drawfakechord.o display/drawfigure.o display/drawkey.o display/drawlilydir.o display/drawlyric.o display/drawnotes.o display/drawselection.o display/drawstemdir.o display/drawtimesig.o display/drawtuplets.o display/hairpin.o display/slurs.o export/audiofile.o export/exportabc.o export/exportlilypond.o export/exportmidi.o export/file.o export/guidedimportmidi.o export/importmidi.o export/importmusicxml.o export/print.o scripting/scheme-callbacks.o scripting/scheme-identifiers.o source/sourceaudio.o printview/svgview.o ui/clefdialog.o ui/help.o ui/kbd-interface.o ui/keysigdialog.o ui/mousing.o ui/moveviewport.o ui/mwidthdialog.o ui/palettes.o ui/virtualkeyboard.o ui/playbackprops.o ui/prefdialog.o ui/scoreprops.o ui/staffpropdialog.o ui/texteditors.o ui/timedialog.o ui/tomeasuredialog.o ui/tupletdialog.o ui/markup.o core/menusystem.o source/source.o source/proof.o printview/markupview.o printview/printview.o   libaudiobackend.a -L../libs/libsffile -lsffile  -lguile -lgmp -lcrypt -lm -lltdl  -lglib-2.0  -lxml2  -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo  -lfontconfig -lfreetype  -lgthread-2.0 -pthread -lglib-2.0  -lsndfile  -lsmf -lm -lglib-2.0  -laubio  -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lgtksourceview-3.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -levview3 -levdocument3 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -pthread -lglib-2.0  -DUSE_EVINCE -D_HAVE_FLUIDSYNTH_ -lfluidsynth  -D_HAVE_RUBBERBAND_ -L/usr/lib -lrubberband  -lportmidi  -D_HAVE_X11_
libtool: link: gcc -g -O2 -fdiagnostics-color=auto -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -pthread -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_WITH_AUBIO_4_ -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/gtksourceview-3.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/libxml2 -I/usr/include/evince/3.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -DUSE_EVINCE -D_HAVE_FLUIDSYNTH_ -D_HAVE_RUBBERBAND_ -D_HAVE_PORTMIDI_ -D_HAVE_X11_ -o denemo audio/audiocapture.o audio/instrumentname.o audio/midi.o audio/parseinstruments.o audio/pitchentry.o audio/pitchrecog.o audio/playback.o command/changenotehead.o command/chord.o command/clef.o command/commandfuncs.o command/contexts.o command/fakechord.o command/figure.o command/grace.o command/keyresponses.o command/keysig.o command/lilydirectives.o command/lyric.o command/measure.o command/processstaffname.o command/object.o command/scorelayout.o command/score.o command/select.o command/staff.o command/timesig.o command/tuplet.o core/binreloc.o core/denemo_types.o core/cache.o core/external.o core/exportxml.o core/graphicseditor.o core/importxml.o core/kbd-custom.o core/keyboard.o core/keymapio.o core/main.o core/palettestorage.o core/prefops.o core/utils.o core/view.o display/calculatepositions.o display/displayanimation.o display/drawaccidentals.o display/drawbarline.o display/draw.o display/drawclefs.o display/drawcursor.o display/drawdynamic.o display/drawfakechord.o display/drawfigure.o display/drawkey.o display/drawlilydir.o display/drawlyric.o display/drawnotes.o display/drawselection.o display/drawstemdir.o display/drawtimesig.o display/drawtuplets.o display/hairpin.o display/slurs.o export/audiofile.o export/exportabc.o export/exportlilypond.o export/exportmidi.o export/file.o export/guidedimportmidi.o export/importmidi.o export/importmusicxml.o export/print.o scripting/scheme-callbacks.o scripting/scheme-identifiers.o source/sourceaudio.o printview/svgview.o ui/clefdialog.o ui/help.o ui/kbd-interface.o ui/keysigdialog.o ui/mousing.o ui/moveviewport.o ui/mwidthdialog.o ui/palettes.o ui/virtualkeyboard.o ui/playbackprops.o ui/prefdialog.o ui/scoreprops.o ui/staffpropdialog.o ui/texteditors.o ui/timedialog.o ui/tomeasuredialog.o ui/tupletdialog.o ui/markup.o core/menusystem.o source/source.o source/proof.o printview/markupview.o printview/printview.o -pthread -pthread -DUSE_EVINCE -D_HAVE_FLUIDSYNTH_ -D_HAVE_RUBBERBAND_ -D_HAVE_X11_  libaudiobackend.a -L../libs/libsffile -lsffile /usr/lib64/libguile.so -L/usr/lib64 -lgmp -lcrypt /usr/lib64/libltdl.so -ldl -lxml2 -lrsvg-2 -lfontconfig -lfreetype -lsndfile -lsmf -lm -laubio -lgtksourceview-3.0 -levview3 -levdocument3 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lfluidsynth -L/usr/lib -lrubberband -lportmidi -pthread
audio/midi.o: In function `start_playing':
/home/nick87720z/dist/denemo.git/builddir/src/../../src/audio/midi.c:121: undefined reference to `get_playback_speed'
core/view.o: In function `set_speed':
/home/nick87720z/dist/denemo.git/builddir/src/../../src/core/view.c:1180: undefined reference to `set_playback_speed'
display/draw.o: In function `draw_object':
/home/nick87720z/dist/denemo.git/builddir/src/../../src/display/draw.c:723: undefined reference to `get_playback_speed'
/home/nick87720z/dist/denemo.git/builddir/src/../../src/display/draw.c:726: undefined reference to `get_playback_speed'
display/draw.o: In function `set_start_and_end_objects_for_draw':
/home/nick87720z/dist/denemo.git/builddir/src/../../src/display/draw.c:72: undefined reference to `get_playback_speed'
/home/nick87720z/dist/denemo.git/builddir/src/../../src/display/draw.c:73: undefined reference to `get_playback_speed'
display/draw.o: In function `draw_score':
/home/nick87720z/dist/denemo.git/builddir/src/../../src/display/draw.c:1401: undefined reference to `get_playback_speed'
scripting/scheme-callbacks.o:/home/nick87720z/dist/denemo.git/builddir/src/../../src/scripting/scheme-callbacks.c:2009: more undefined references to `get_playback_speed' follow
collect2: error: ld returned 1 exit status

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rshann (Posted a comment)
  • -email is unavailable- added by nick87720z (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-24 rshann Open/ClosedOpen Closed
    2017-12-30 rshann StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code