bugOpenEXR - Bugs: bug #25591, Compile error with g++ 4.4-snapshot

 
 

bug #25591: Compile error with g++ 4.4-snapshot

Submitted by:  Pino Toscano <pinotree>
Submitted on:  Sun 15 Feb 2009 12:06:51 PM UTC  
 
Category: build/installSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 15 Feb 2009 12:06:51 PM UTC, original submission:

Hi,

as reported in Debian's bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504952

exrdisplay does not compile with a snapshot (dated 20090129) of g++ 4.4, as the declaration of the sscanf() function is missing:

> g++ -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -I.. -DHAVE_CTL_INTERPRETER=0 -I/usr/include/OpenEXR -pthread -pipe -g -O2 -g -Wall -O2 -c -o applyCtl.o applyCtl.cpp
> applyCtl.cpp: In function 'float displayVideoGamma()':
> applyCtl.cpp:91: error: 'sscanf' was not declared in this scope
> applyCtl.cpp: In function 'Imf::Chromaticities<unnamed>::displayChromaticities()':
> applyCtl.cpp:136: error: 'sscanf' was not declared in this scope
> make[2]: *** [applyCtl.o] Error 1


The attached patch fixes the problem (it depends on the fix of #23012, though). Like in #23012, a similar problem should also happen for playexr/ctlToLut.cpp.

Pino Toscano <pinotree>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #17459:  003_gcc44.diff added by pinotree (396B - text/x-diff - proposed build patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pinotree (Submitted 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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Feb 2009 12:06:52 PM UTCpinotreeAttached File-=>Added 003_gcc44.diff, #17459

    Back to the top


    Powered by Savane 3.1-cleanup