Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40930 - gnophone-0.2.4 compile error in sounds directory
Summary: gnophone-0.2.4 compile error in sounds directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 20:35 UTC by Todd Burroughs
Modified: 2004-02-17 13:17 UTC (History)
2 users (show)

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


Attachments
Proposed fixes (gnophone.tar.gz,1.58 KB, application/gzip)
2004-02-17 07:31 UTC, Russell Cloran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Burroughs 2004-02-08 20:35:25 UTC
Gentoo Base System version 1.4.3.13
Problem produced with "emerge gnophone", portage is synced
Tried unsetting  MAKEOPTS and CFLAGS in /etc/make.conf, same issue

Error compiling sounds/raw2h.c, sounds/mkdtmf.c
Suspect gcc doesn't like multi-line strings in these files.

One of many errors from make:
raw2h.c:32:1: missing terminating " character

Here's offending line(s) in raw2h.c (line 32 is "*/ ):
        fprintf(o,
"/*
  * Signed 16-bit audio data
  *
  * Source: %s
  *
  * Copyright (C) 1999, Mark Spencer and Linux Support Services
  *
  * Distributed under the terms of the GNU General Public License
  *
  */

static signed short %s[] = {
",      argv[1], n);
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-12 06:34:13 UTC
I managed to reproduce this but i cannot solve it.
At first i tought this was some problem with gcc 3 because this is a very old software (2001), but some other devs managed to compile this.
I already sent a message to the upstream developers and am waiting for feedback.
Comment 2 Don Seiler (RETIRED) gentoo-dev 2004-02-12 14:57:43 UTC
Hm.  This actually emerged perfectly for me.

Here is my emerge info, for comparison.  Please post yours.

# emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r8, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Intel(R) Pentium(R) 4 CPU 1400MHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.linux.no/ http://gentoo.inode.at/ http://ftp.gentoo.or.kr/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 apm avi berkdb cdr cjk crypt cups curl dga directfb encode ethereal faad fbcon fbdev flash foomaticdb gd gd-bundled gdbm ggi gif gpm gstreamer gtk gtk2 guile imlib innodb java jpeg junit ldap libg++ libwww mad mbox memlimit mikmod motif moznocompose moznoirc moznomail mpeg mysql ncurses nls oci8 odbc offensive oggvorbis opengl oss pam perl png python qt qtmt quicktime readline ruby samba sdl slang slp smooth spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xinerama xml xml2 xmms xv zlib"
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-12 16:35:14 UTC
emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1)
=================================================================
System uname: 2.6.1 i686 Intel(R) Celeron(TM) CPU                1066MHz
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS=" ftp://ftp.rnl.ist.utl.pt/gentoo  http://darkstar.ist.utl.pt/gentoo  http://gentoo.aeminium.org  http://gentoo.felisberto.net/  http://gentoo.rjlouro.org  http://gentoo.oregonstate.edu/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://felisberto.net/gentoo-portage"
USE="X aalib alsa apache2 apm avi berkdb bonobo crypt cups dvd encode esd evo flash foomaticdb gd gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile icc imlib ipv6 irmc java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl operanom2 oss pam pda pdflib perl png python qt quicktime readline ruby samba sdl slang spell sse ssl svga tcltk tcltki tcpd tetex tiff truetype video_cards_i830 x86 xml2 xmms xv zlib"
Comment 4 Colin Macdonald 2004-02-17 03:05:44 UTC
I also have this problem.  Here is my "emerge info"

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apm arts berkdb cdr cjk crypt cups dga directfb dvd dvdr emacs encode esd faad fbcon flac gdbm gif ginac gnome gphoto2 gpm gtk gtk2 imlib jack java jpeg ldap leim libg++ libwww mad matroska mikmod mmx motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mule mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png ppds python qhull qt quicktime radeon readline scanner sdk sdl slang spell sse ssl tcltk tcpd tetex tiff truetype usb v4l video_cards_radeon wxwindows x86 xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 5 Russell Cloran 2004-02-17 07:31:18 UTC
Created attachment 25773 [details]
Proposed fixes

Contents:

gnophone/
gnophone/files/
gnophone/files/gnophone-0.2.4-mkdtmf.c.patch
gnophone/files/gnophone-0.2.4-raw2h.c.patch
gnophone/files/digest-gnophone-0.2.4
gnophone/gnophone-0.2.4.ebuild
Comment 6 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-17 09:39:08 UTC
Added the patches to cvs as version 0.2.4-r1 . Also did some small cleaning of the ebuilds dependencies. Please test and report if it is working (it now builds ok).
Comment 7 Colin Macdonald 2004-02-17 12:20:05 UTC
Builds ok for me and GUI starts up but I have no way to test it.  Thanks for the fix!
Comment 8 Gustavo Felisberto (RETIRED) gentoo-dev 2004-02-17 13:17:32 UTC
Marking -r1 stable and sending to cvs.
Thanks to all.