Unable to compile audacity (from fedora source rpm)

jd1008 jd1008 at gmail.com
Sat Oct 24 04:21:43 UTC 2015


Hi all,
I wanted audacity to have mp3 handling enabled.
So I downloaded
http://dl.fedoraproject.org/pub/fedora/linux/updates/22/SRPMS/a/audacity-2.1.1-1.fc22.src.rpm

and edited audacity.spec to enable mp3, thus:

I changes the second line from

%bcond_without mp3
to
%bcond_with mp3

and ran rpmbuild ..... etc.

The compiler issues numerous notes and warnings, and one error.

The build failed with the error:

libtool: compile:  g++ -DPACKAGE_NAME=\"FileDialog\" 
-DPACKAGE_TARNAME=\"FileDialog\" -DPACKAGE_VERSION=\"1.0\" 
"-DPACKAGE_STRING=\"FileDialog 1.0\"" 
-DPACKAGE_BUGREPORT=\"audacity.sourceforge.net\" -DPACKAGE_URL=\"\" 
-DPACKAGE=\"FileDialog\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_GTK=1 -I. 
-I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -pthread 
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/libdrm 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 
-pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/libdrm 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches -m64 -mtune=generic -c gtk/FileDialogPrivate.cpp 
-o gtk/libFileDialog_la-FileDialogPrivate.o
In file included from /usr/include/gtk-2.0/gdk/gdkscreen.h:32:0,
                  from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                  from /usr/include/gtk-2.0/gdk/gdk.h:32,
                  from /usr/include/gtk-2.0/gtk/gtk.h:32,
                  from gtk/FileDialogPrivate.cpp:21:
/usr/include/gtk-2.0/gdk/gdktypes.h:114:39: error: conflicting 
declaration 'typedef struct _GdkDrawable GdkWindow'
  typedef struct _GdkDrawable           GdkWindow;



More information about the users mailing list