jacksonlcrews / darkice

Automatically exported from code.google.com/p/darkice
0 stars 0 forks source link

Error on make #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output? What do you see instead?

Error on compilation :
g++ -DHAVE_CONFIG_H -I.    -O2 -pedantic -Wall   -g -O2 -MT SerialUlaw.o
-MD -MP -MF .deps/SerialUlaw.Tpo -c -o SerialUlaw.o SerialUlaw.cpp
SerialUlaw.cpp: In member function ‘virtual unsigned int
SerialUlaw::read(void*, unsigned int)’:
SerialUlaw.cpp:296: error: ‘perror’ was not declared in this scope
make[2]: *** [SerialUlaw.o] Erreur 1
make[2]: quittant le répertoire « /tmp/darkice/darkice-0.20.1/src »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /tmp/darkice/darkice-0.20.1/src »
make: *** [all-recursive] Erreur 1

What version of the product are you using? On what operating system?
Darkice 0.20.1, ubuntu 9.10, gcc 4.4

Please provide any additional information below.

gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) 

Original issue reported on code.google.com by slebour...@gmail.com on 1 Dec 2009 at 10:31

GoogleCodeExporter commented 9 years ago
Same situation (Darkice 0.20.1, ubuntu 9.10, gcc 4.4) and issue here . Tried 
also 
0.18/0.19 without luck.

Looking forward for the fix.

Original comment by cees.van...@gmail.com on 12 Dec 2009 at 10:27

GoogleCodeExporter commented 9 years ago
Finally i manage installing darkice on my system with a trivial apt-get install 
darkice

There is an ubunutu multiverse maintened package :
https://launchpad.net/ubuntu/+source/darkice

for karmic it gives :

Package: darkice
Priority: optional
Section: sound
Installed-Size: 360
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: i386
Version: 0.19-1ubuntu3
Depends: libasound2 (>> 1.0.18), libc6 (>= 2.4), libfaac0 (>= 1.26), libgcc1 (>=
1:4.1.1), libjack0 (>= 0.116.1), libmp3lame0, libogg0 (>= 1.0rc3), libstdc++6 
(>=
4.4.0), libtwolame0, libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2)
Suggests: darksnow
Size: 124384
Description: Live audio streamer
 DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It
 takes audio input from a sound card, encodes it into mp3 and/or Ogg
 Vorbis, and sends the mp3 stream to one or more IceCast and/or
 ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2
 servers. DarkIce uses lame as a shared object as its mp3 encoder, and
 the Ogg Vorbis as its Ogg Vorbis encoder.
Homepage: http://darkice.tyrell.hu/
Original-Maintainer: Jochen Friedrich <jochen@scram.de>

Original comment by slebour...@gmail.com on 12 Dec 2009 at 11:00

GoogleCodeExporter commented 9 years ago
I cannot reproduce this error in my system.
Can anyone confirm if this error persist? Or should I close this ticket?

Original comment by rafael2k...@gmail.com on 22 Dec 2009 at 1:48

GoogleCodeExporter commented 9 years ago
I did a clean install of Ubuntu 9.10 server edition (options Ubuntu server and 
Open SSH 
enabled during installation).

Meanwhile i'm switched back to Ubuntu server 9.04 without probs.

Original comment by cees.van...@gmail.com on 23 Dec 2009 at 8:37

GoogleCodeExporter commented 9 years ago
I am having the same issue during 'make' trying to install darkice-0.20.1:
Linux oreo 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 
GNU/Linux

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib 
--libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
--enable-targets=all
--disable-werror --with-arch-32=i486 --with-tune=generic 
--enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) 

Original comment by mared...@gmail.com on 25 Dec 2009 at 9:30

GoogleCodeExporter commented 9 years ago
same here
fresh installation of Ubuntu 9.10
pre-installed from sources: lame-398-2 and rotter

svn revision 464

./autogen.sh --with-alsa --with-lame --with-lame-prefix=/usr/local/lib
make outputs: 

g++ -DHAVE_CONFIG_H -I. -I    -O2 -pedantic -Wall   -g -O2 -MT SerialUlaw.o -MD 
-MP
-MF .deps/SerialUlaw.Tpo -c -o SerialUlaw.o SerialUlaw.cpp
SerialUlaw.cpp: In member function âvirtual unsigned int 
SerialUlaw::read(void*,
unsigned int)â:
SerialUlaw.cpp:296: error: âperrorâ was not declared in this scope
make[2]: *** [SerialUlaw.o] Error 1
make[2]: Leaving directory `/home/marcel/dl/svn/darkice/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/marcel/dl/svn/darkice/src'
make: *** [all-recursive] Error 1

Original comment by marcel.hecko@gmail.com on 14 Jan 2010 at 1:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This can be fixed by adding the line

#include <cstdio>

at the beginning of the file(s)

src/SerialUlaw.cpp
src/JackDspSource.cpp

afterwards the code (svn 467) compiles fine

marcel

Original comment by marcel.hecko@gmail.com on 4 Feb 2010 at 12:54

GoogleCodeExporter commented 9 years ago
I'm closing this, as it's already fixed.

Original comment by rafael2k...@gmail.com on 6 May 2010 at 7:14

GoogleCodeExporter commented 9 years ago
well it's definitely not fixed in the today's checkout

Original comment by marcel.hecko@gmail.com on 1 Jun 2010 at 11:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
20.1 still has this issue on a clean install of ubuntu 10.04 server

I'll try to add the include marcel suggests, why did raf think it's fixed?

Original comment by brian.bi...@gmail.com on 9 Jun 2010 at 12:18

GoogleCodeExporter commented 9 years ago
OMG this is still not fixed in the latest checkout

Original comment by marcel.hecko@gmail.com on 8 Jul 2010 at 10:36

GoogleCodeExporter commented 9 years ago
Looks like this is still not fixed. Have done a checkout of darkice-read-only 
today and it throws the described error. Fixed it by adding #include <cstdio> 
to files mentioned in Comment 8.

Now it compiles fine on Ubuntu 10.10

Original comment by alexre...@googlemail.com on 24 Feb 2011 at 12:00

GoogleCodeExporter commented 9 years ago
it also needs #include <cstdio> in PulseAudioDspSource.cpp in order to compile 
on Ubuntu 9.10

Original comment by barnett....@gmail.com on 14 Mar 2011 at 7:47

GoogleCodeExporter commented 9 years ago
seeing this today on centos 6

Original comment by taylor.b...@mcnaughton.media on 19 Feb 2015 at 1:07