Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413623 - media-sound/terminatorx 3.82 and 3.84 - tX_midiin.cc:452:2: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
Summary: media-sound/terminatorx 3.82 and 3.84 - tX_midiin.cc:452:2: error: cannot con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-04-26 12:45 UTC by Attila Tóth
Modified: 2015-01-29 10:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2012-04-26 12:45:23 UTC
tX_midiin.cc:452:2: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
tX_midiin.cc:469:3: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
tX_midiin.cc:474:2: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
make[4]: *** [tX_midiin.o] Error 1


Reproducible: Always

Steps to Reproduce:
Debian bug #663053 contains a patch for the problem.
Comment 1 Attila Tóth 2012-05-14 09:16:38 UTC
Additional gold linker issue:
i686-pc-linux-gnu-g++ -I/usr/include/libxml2 -O2 -march=i686 -mtune=athlon-mp -pipe -I/usr/include/raptor2   -DXML_MANUAL=\"/usr/share/terminatorX/doc/terminatorX-manual/C/terminatorX-manual.xml\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm    -D_REENTRANT  -O2 -march=i686 -mtune=athlon-mp -pipe  -Wl,-O1 -Wl,--as-needed -o terminatorX  tX_endian.o tX_dialog.o tX_widget.o wav_write.o tX_engine.o tX_logo.o tX_mouse.o main.o tX_global.o wav_read.o tX_flash.o tX_tape.o tX_vtt.o tX_vttgui.o tX_audiodevice.o tX_mastergui.o tX_audiofile.o tX_loaddlg.o tX_icon.o tX_prelis.o tX_seqpar.o tX_pbutton.o tX_event.o tX_sequencer.o tX_knobloader.o tX_dial.o tX_extdial.o tX_panel.o tX_ladspa.o tX_vttfx.o tX_legacy_vtt.o tX_legacy_global.o tX_midiin.o tX_glade_interface.o tX_glade_callbacks.o tX_glade_support.o tX_ladspa_class.o tX_capabilities.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi -lXext -lX11 -lm  -lpthread -lz -lmad -lvorbis -lvorbisfile -laudiofile -lasound -ljack -lcap -llrdf
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: tX_ladspa.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
Comment 2 Attila Tóth 2012-05-14 10:26:48 UTC
(In reply to comment #0)
> tX_midiin.cc:452:2: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for
> argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
> tX_midiin.cc:469:3: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for
> argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
> tX_midiin.cc:474:2: error: cannot convert ‘gzFile_s**’ to ‘gzFile_s*’ for
> argument ‘1’ to ‘int gzprintf(gzFile_s*, const char*, ...)’
> make[4]: *** [tX_midiin.o] Error 1
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> Debian bug #663053 contains a patch for the problem.

The fix is (to make it easier for me):
-- terminatorx-3.82~/src/tX_midiin.cc	2003-08-22 00:41:50.000000000 +0200
+++ terminatorx-3.82/src/tX_midiin.cc	2012-03-27 12:11:37.140942550 +0200
@@ -447,7 +447,7 @@
 
 void tX_midiin::store_connections(FILE *rc, char *indent) 
 {
-	gzFile *rz=NULL;
+	gzFile rz=NULL;
 	
 	tX_store("%s<midi_connections>\n", indent);
 	strcat(indent, "\t");
Comment 3 Attila Tóth 2012-05-14 10:33:50 UTC
(In reply to comment #1)
> Additional gold linker issue:
> i686-pc-linux-gnu-g++ -I/usr/include/libxml2 -O2 -march=i686
> -mtune=athlon-mp -pipe -I/usr/include/raptor2  
> -DXML_MANUAL=\"/usr/share/terminatorX/doc/terminatorX-manual/C/terminatorX-
> manual.xml\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15
> -I/usr/include/libdrm    -D_REENTRANT  -O2 -march=i686 -mtune=athlon-mp
> -pipe  -Wl,-O1 -Wl,--as-needed -o terminatorX  tX_endian.o tX_dialog.o
> tX_widget.o wav_write.o tX_engine.o tX_logo.o tX_mouse.o main.o tX_global.o
> wav_read.o tX_flash.o tX_tape.o tX_vtt.o tX_vttgui.o tX_audiodevice.o
> tX_mastergui.o tX_audiofile.o tX_loaddlg.o tX_icon.o tX_prelis.o tX_seqpar.o
> tX_pbutton.o tX_event.o tX_sequencer.o tX_knobloader.o tX_dial.o
> tX_extdial.o tX_panel.o tX_ladspa.o tX_vttfx.o tX_legacy_vtt.o
> tX_legacy_global.o tX_midiin.o tX_glade_interface.o tX_glade_callbacks.o
> tX_glade_support.o tX_ladspa_class.o tX_capabilities.o  -lgtk-x11-2.0
> -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0
> -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0
> -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi -lXext -lX11 -lm  -lpthread -lz
> -lmad -lvorbis -lvorbisfile -laudiofile -lasound -ljack -lcap -llrdf
> /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld:
> tX_ladspa.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
> /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld:
> note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it
> to the linker command line
> /lib/libdl.so.2: could not read symbols: Invalid operation

Rude fix for this:

 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
 LDFLAGS = -Wl,-O1 -Wl,--as-needed
 LIBOBJS =
-LIBS =  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi -lXext -lX11 -lm  -lpthread -lz -lmad -lvorbis -lvorbisfile -laudiofile -lasound -ljack -lcap -llrdf
+LIBS =  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi -lXext -lX11 -lm  -lpthread -lz -lmad -lvorbis -lvorbisfile -laudiofile -lasound -ljack -lcap -llrdf -ldl
 LN_S = ln -s
 LTLIBOBJS =
 MAKEINFO = ${SHELL} /var/tmp/portage/media-sound/terminatorx-3.82/work/terminatorX-3.82/missing --run makeinfo
Comment 4 Attila Tóth 2012-05-14 10:34:36 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Additional gold linker issue:
> Rude fix for this:
> 
>  INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
>  LDFLAGS = -Wl,-O1 -Wl,--as-needed
>  LIBOBJS =
> -LIBS =  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
> -lfontconfig -lgobject-2.0 -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi
> -lXext -lX11 -lm  -lpthread -lz -lmad -lvorbis -lvorbisfile -laudiofile
> -lasound -ljack -lcap -llrdf
> +LIBS =  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
> -lfontconfig -lgobject-2.0 -lglib-2.0    -lxml2 -lz -lm -lXxf86dga -lXi
> -lXext -lX11 -lm  -lpthread -lz -lmad -lvorbis -lvorbisfile -laudiofile
> -lasound -ljack -lcap -llrdf -ldl
>  LN_S = ln -s
>  LTLIBOBJS =
>  MAKEINFO = ${SHELL}
> /var/tmp/portage/media-sound/terminatorx-3.82/work/terminatorX-3.82/missing
> --run makeinfo

forgot to mention, that it's in:
media-sound/terminatorx-3.82/work/terminatorX-3.82/src/Makefile
Comment 5 Pacho Ramos gentoo-dev 2015-01-29 10:28:56 UTC
+*terminatorx-3.84-r1 (29 Jan 2015)
+
+  29 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/terminatorx-3.84-new-zlib.patch, +terminatorx-3.84-r1.ebuild,
+  -terminatorx-3.83.ebuild, -terminatorx-3.84.ebuild:
+  Use gnome2.eclass properly, fix compilation with current zlib (#413623), drop
+  old
+