LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling GMFSK for hamradio modes Failed afther running Make (https://www.linuxquestions.org/questions/linux-software-2/compiling-gmfsk-for-hamradio-modes-failed-afther-running-make-4175606627/)

R03L 05-25-2017 02:29 AM

Compiling GMFSK for hamradio modes Failed afther running Make
 
1 Attachment(s)
i installed all missing dependency's for GMFSK and tried to compiled it with
Code:

./configure
as i did it once with
Code:

./autogen.sh
to but it still failed afther running
Code:

Make
afther
Code:

./autogen.sh
Code:

Now type `make' to compile.
Code:

make  all-recursive
make[1]: Map '/home/r03l/Downloads/gmfsk-0.6' wordt binnengegaan
Making all in m4
make[2]: Map '/home/r03l/Downloads/gmfsk-0.6/m4' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'all'.
make[2]: Map '/home/r03l/Downloads/gmfsk-0.6/m4' wordt verlaten
Making all in src
make[2]: Map '/home/r03l/Downloads/gmfsk-0.6/src' wordt binnengegaan
Making all in misc
make[3]: Map '/home/r03l/Downloads/gmfsk-0.6/src/misc' wordt binnengegaan
gcc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include    -g -O2 -MT cmplx.o -MD -MP -MF .deps/cmplx.Tpo -c -o cmplx.o cmplx.c
mv -f .deps/cmplx.Tpo .deps/cmplx.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include    -g -O2 -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.c
In file included from misc.c:25:0:
misc.h:109:19: error: conflicting types for ‘log2’
 extern inline int log2(unsigned int x)
                  ^~~~
In file included from /usr/include/features.h:364:0,
                from /usr/include/math.h:26,
                from misc.h:28,
                from misc.c:25:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:144:1: note: previous declaration of ‘log2’ was here
 __MATHCALL (log2,, (_Mdouble_ __x));
 ^
Makefile:381: recept voor doel 'misc.o' is mislukt
make[3]: *** [misc.o] Fout 1
make[3]: Map '/home/r03l/Downloads/gmfsk-0.6/src/misc' wordt verlaten
Makefile:512: recept voor doel 'all-recursive' is mislukt
make[2]: *** [all-recursive] Fout 1
make[2]: Map '/home/r03l/Downloads/gmfsk-0.6/src' wordt verlaten
Makefile:455: recept voor doel 'all-recursive' is mislukt
make[1]: *** [all-recursive] Fout 1
make[1]: Map '/home/r03l/Downloads/gmfsk-0.6' wordt verlaten
Makefile:373: recept voor doel 'all' is mislukt
make: *** [all] Fout 2

Thanks in advanced

knudfl 05-25-2017 04:44 AM

Example 1. In /home/[name]/rpms/
$ cd SPECS/
$ rpmbuild -bb gmfsk.spec
.
Wrote: /home/knudfl/rpms/RPMS/x86_64/gmfsk-0.7-0.5.pre1.x86_64.rpm
.

Example 2. In /home/[name]/tmp/
$ cd gmfsk-0.7pre1/
$ patch -p1 < gmfsk-0.7pre1-gcc.patch
patching file src/olivia/mfsk.h
.... I.e. patch the old gmfsk to use gcc-4.1.2
$ ./configure && make : No errors.

Example 3. # apt-get install gmfsk https://packages.debian.org/jessie/hamradio/gmfsk
The source and the 4 Debian patches: gmfsk_0.6+0.7pre1.orig.tar.gz , gmfsk_0.6+0.7pre1-2.3.debian.tar.gz → 12-gcc43-fixes.patch, etc.


-

R03L 05-27-2017 01:05 AM

well its on ubuntu 17.04 but they removed gmfsk somewhy from already 16.10 i notice and they also removed gmfsk from the ubuntu ham's repository it is just not there anymore.
so a centos/redhat patch witch concluded is already in the sources as the patch did not apply to the source becouse of this.

im still running against this compilation error.

knudfl 05-27-2017 03:13 AM

Re #4.

Ubuntu any version, gmfsk is the same package, really no changes since 2008.
The available Debian or Ubuntu package can be used. Trusty :

https://packages.ubuntu.com/trusty/gmfsk
→ → http://nl.archive.ubuntu.com/ubuntu/...-2.3_amd64.deb

Install the package ...
cd Downloads/
sudo gdebi gmfsk_0.6+0.7pre1-2.3_amd64.deb

-


All times are GMT -5. The time now is 05:54 PM.