bugDenemo - Bugs: bug #23765, Compilation error

 
 

bug #23765: Compilation error

Submitted by:  None
Submitted on:  Fri 04 Jul 2008 01:45:58 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Richard Shann <rshann>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 05 Jul 2008 03:34:28 PM UTC, comment #5:

I've fixed this in git now.

Anonymous
Sat 05 Jul 2008 08:18:43 AM UTC, comment #4:

In that case the file audiocapture.c should not have referenced PaTimestamp because paNonInterleaved is defined in V19 and it uses the existence of this to make an internal define:

#ifdef paNonInterleaved
#define PA_VERSION_19 1
#endif

which it then uses thus:

#ifndef PA_VERSION_19

PaTimestamp outTime,
#else
PaStreamCallbackTimeInfo* outTime,
PaStreamCallbackFlags status,
#endif

It would be better if the test was
#ifndef paNonInterleaved
#define PA_VERSION_19 0
else
#define PA_VERSION_19 1
#endif
since it may be that paNonInterleaved may be dropped in later versions. (This is all a workaround the fact that V18 does not have pkgconfig).
For an immediate fix you could edit audiocapture.c to have
#define PA_VERSION_19 1
and all should be well. It would be interesting to know what has happened to paNonInterleaved...

Anonymous
Fri 04 Jul 2008 09:05:28 PM UTC, comment #3:

No, I'm using the newest portaudio V19 version and portaudio.h is being found. The problem is that in it PaTimestamp isn't defined and - I think - it shouldn't, because I tested a few packages. It occurs not only in my distribution, but for example in Arch too. I suggest to define that function in sources.

Anonymous
Fri 04 Jul 2008 06:13:02 PM UTC, comment #2:

The error means that you are using portaudio V18, for which you will have supplied

export PORTAUDIO_CFLAGS=-I/usr/include/
export PORTAUDIO_LIBS="-L/usr/lib -lportaudio"

or something appropriate for your system. You need to check that the file portaudio.h in /usr/include (or ...) is defining PaTimestamp, which it should be.
Most likely you have set these environment variables to something wrong...

Anonymous
Fri 04 Jul 2008 05:36:12 PM UTC, comment #1:

This will be a bad portaudio.h I guess.

Anonymous
Fri 04 Jul 2008 01:45:58 PM UTC, original submission:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -I../include -I../pixmaps -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc/\" -DPKGDATADIR=\"/usr/share/denemo/\" -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/aubio -DHAVEALSA -MT audiocapture.o -MD -MP -MF ".deps/audiocapture.Tpo" -c -o audiocapture.o audiocapture.c; \
then mv -f ".deps/audiocapture.Tpo" ".deps/audiocapture.Po"; else rm -f ".deps/audiocapture.Tpo"; exit 1; fi
audiocapture.c:77: error: expected declaration specifiers or '...' before 'PaTimestamp'
audiocapture.c: In function 'recordCallback':
audiocapture.c:91: error: 'outTime' undeclared (first use in this function)
audiocapture.c:91: error: (Each undeclared identifier is reported only once
audiocapture.c:91: error: for each function it appears in.)
audiocapture.c: In function 'pa_main':
audiocapture.c:136: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
audiocapture.c:136: error: 'stream' undeclared (first use in this function)
audiocapture.c:191: warning: passing argument 2 of 'Pa_OpenStream' makes pointer from integer without a cast
audiocapture.c:191: warning: passing argument 3 of 'Pa_OpenStream' makes pointer from integer without a cast
audiocapture.c:191: warning: passing argument 5 of 'Pa_OpenStream' makes integer from pointer without a cast
audiocapture.c:191: warning: passing argument 8 of 'Pa_OpenStream' makes pointer from integer without a cast
audiocapture.c:191: error: too many arguments to function 'Pa_OpenStream'
audiocapture.c: In function 'determine_frequency':
audiocapture.c:316: warning: incompatible implicit declaration of built-in function 'lround'
make[2]: *** [audiocapture.o] Błąd 1
make[2]: Opuszczenie katalogu `/tmp/denemo/denemo-0.7.8/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/tmp/denemo/denemo-0.7.8'
make: *** [all] Błąd 2

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rshann (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 03 Oct 2009 12:01:21 PM UTCrshannStatusNone=>Fixed
    Sun 06 Jul 2008 05:56:25 AM UTCrshannAssigned toNone=>rshann
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1