You are not logged in.

#1 2008-06-10 22:01:25

osc~
Member
From: brazil
Registered: 2007-07-06
Posts: 117
Website

darkice compile error

i dont understand what is this problem. any help?

Making all in src
make[1]: Entrando no diretório `/home/fa/AUR/darkice/src/darkice-0.18.1/src'
make  all-am
make[2]: Entrando no diretório `/home/fa/AUR/darkice/src/darkice-0.18.1/src'
g++ -DHAVE_CONFIG_H -I.    -O2 -pedantic -Wall   -march=i686 -mtune=generic -O2 -pipe -MT JackDspSource.o -MD -MP -MF .deps/JackDspSource.Tpo -c -o JackDspSource.o JackDspSource.cpp
JackDspSource.cpp: In member function 'virtual unsigned int JackDspSource::read(void*, unsigned int)':
JackDspSource.cpp:341: error: 'SHRT_MAX' was not declared in this scope
JackDspSource.cpp:343: error: 'SHRT_MIN' was not declared in this scope
make[2]: ** [JackDspSource.o] Erro 1
make[2]: Saindo do diretório `/home/fa/AUR/darkice/src/darkice-0.18.1/src'
make[1]: ** [all] Erro 2
make[1]: Saindo do diretório `/home/fa/AUR/darkice/src/darkice-0.18.1/src'
make: ** [all-recursive] Erro 1
==> ERRO: Compilação Falhou.
    Abortando...

Offline

#2 2008-06-10 22:45:38

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: darkice compile error

This is a gcc4.3 issue (4.3 is more strict on the C++ standard compliance than previous versions), there is a missing #include directive in one of the input files.  Put the following snipit in a file called "jackdsp_gcc43.diff"

--- src/JackDspSource.cpp    2007-02-19 07:56:49.000000000 +0000
+++ src_new/JackDspSource.cpp    2008-06-10 23:40:16.000000000 +0100
@@ -32,6 +32,7 @@
 /* ============================================================ include files */
 
 #include "AudioSource.h"
+#include "limits.h"
 
 #ifdef SUPPORT_JACK_DSP
 // only compile this code if there is support for it

and then make the PKGBUILD look like this

# Contributor: Michal Hybner <dta081@gmail.com>
pkgname=darkice
pkgver=0.18.1
pkgrel=1
pkgdesc="Live audio streamer. Records audio from an audio interface, encodes it and sends it to a streaming server."
arch=(i686 x86_64)
url="http://darkice.tyrell.hu/"
license=('GPL')
depends=('alsa-lib' 'lame' 'libvorbis')
source=(http://darkice.tyrell.hu/dist/${pkgver}/darkice-${pkgver}.tar.gz jackdsp_gcc43.diff)
md5sums=('b1baef967b9a258dd3061677bd77d7d9'
         '8e32058aa68d920c110d59511e8b29ff')


build() {
    cd ${startdir}/src/darkice-${pkgver}/
    ./configure --prefix=/usr --sysconfdir=/etc --without-faac --without-jack
    patch -p0 src/JackDspSource.cpp ../jackdsp_gcc43.diff
    make || return 1
    make DESTDIR=${startdir}/pkg install
}

Last edited by ghostHack (2008-06-10 22:46:45)

Offline

Board footer

Powered by FluxBB