jacksonlcrews / darkice

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

Make error related to JackDspSource.cpp #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure with ./configure --with-lame
--with-vorbis-prefix=/usr/local/lib --with-faac-prefix=/usr/local/lib
--with-jack

2. make 

What is the expected output?

Expected successful compile

What do you see instead?

make ends with following error:

JackDspSource.cpp: In member function ‘void JackDspSource::strip()’:
JackDspSource.cpp:129: error: ‘free’ was not declared in this scope
JackDspSource.cpp: In member function ‘void 
JackDspSource::do_auto_connect()’:
JackDspSource.cpp:171: error: ‘free’ was not declared in this scope
JackDspSource.cpp: In member function ‘virtual unsigned int
JackDspSource::read(void*, unsigned int)’:
JackDspSource.cpp:340: error: ‘realloc’ was not declared in this scope
JackDspSource.cpp:367: error: ‘SHRT_MAX’ was not declared in this scope
JackDspSource.cpp:369: error: ‘SHRT_MIN’ was not declared in this scope
make[2]: *** [JackDspSource.o] Error 1
make[2]: Leaving directory `/home/rdadmin/Rivendell/src/darkice-0.19/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/rdadmin/Rivendell/src/darkice-0.19/src'
make: *** [all-recursive] Error 1

What version of the product are you using? On what operating system?

darkice-0.19 on OpenSUSE 11.1

Please provide any additional information below.

Original issue reported on code.google.com by moja...@gmail.com on 7 Jul 2009 at 3:28

GoogleCodeExporter commented 9 years ago
I have also faced this problem on a recent kernel/glibc. The problem is that a 
pair
of required standard headers (limits.h, stdlib.h) is not included explicitly 
into
JackDspSource.cpp. It didn't break build before due to some implicit includes 
thru
another standard headers. For example limits.h was included somewhere in 
iostream.

Patch attached.

Original comment by v.sini...@gmail.com on 7 Aug 2009 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
patch applied 447.

Original comment by rafael2k...@gmail.com on 5 Nov 2009 at 5:48