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

 
 

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

Submitter:  Pino Toscano <pinotree>
Submitted:  Sun 15 Feb 2009 12:06:51 PM UTC
   
 
Category:  build/install Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
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
  • -email is unavailable- added by pinotree (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-15 pinotree Attached File- Added 003_gcc44.diff, #17459

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code