Bug 760610

Summary: FTBFS openvrml-0.18.8-4 on Rawhide
Product: [Fedora] Fedora Reporter: Denis Arnaud <denis.arnaud_fedora>
Component: openvrmlAssignee: Braden McDaniel <braden>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: braden, denis.arnaud_fedora, pmachata
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-13 14:53:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 812728    
Bug Blocks:    
Attachments:
Description Flags
Compilation fix none

Description Denis Arnaud 2011-12-06 16:13:21 UTC
Description of problem:
openvrml-0.18.8 fails to build on Fedora Rawhide

Version-Release number of selected component (if applicable):
openvrml-0.18.8-4 on Fedora Rawhide

Additional info:
-----------
Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3570041 (in particular, the build logs: http://koji.fedoraproject.org/koji/getfile?taskID=3570055&name=build.log)

-----------
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../src/libopenvrml -I../src/libopenvrml -I../src/libopenvrml-gl -I../src/libopenvrml-gl -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -DNDEBUG -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-braces -Wno-strict-aliasing -Wno-unused-variable -c libopenvrml-gl/openvrml/gl/viewer.cpp  -fPIC -DPIC -o libopenvrml-gl/openvrml/gl/.libs/libopenvrml_gl_libopenvrml_gl_la-viewer.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DMOZ_X11 -DOPENVRML_LIBEXECDIR_=\"/usr/libexec\" -Imozilla-plugin -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -DNDEBUG -DXP_UNIX -I/usr/include/xulrunner-sdk-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fvisibility=hidden -fvisibility-inlines-hidden -Wno-missing-braces -Wno-strict-aliasing -Wno-unused-variable -c mozilla-plugin/openvrml.cpp  -fPIC -DPIC -o mozilla-plugin/.libs/mozilla_plugin_openvrml_la-openvrml.o

mozilla-plugin/openvrml.cpp: In function 'char* NP_GetMIMEDescription()':
mozilla-plugin/openvrml.cpp:218:30: error: new declaration 'char* NP_GetMIMEDescription()'
/usr/include/xulrunner-sdk-2/npfunctions.h:303:24: error: ambiguates old declaration 'const char* NP_GetMIMEDescription()'
mozilla-plugin/openvrml.cpp:220:35: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
mozilla-plugin/openvrml.cpp: In function 'char* NPP_GetMIMEDescription()':
mozilla-plugin/openvrml.cpp:383:31: error: new declaration 'char* NPP_GetMIMEDescription()'
/usr/include/xulrunner-sdk-2/npapi.h:792:13: error: ambiguates old declaration 'const char* NPP_GetMIMEDescription()'

make[4]: *** [mozilla-plugin/mozilla_plugin_openvrml_la-openvrml.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

Comment 1 Petr Machata 2011-12-07 00:28:48 UTC
Created attachment 541635 [details]
Compilation fix

For some reason I thought this is boost related, and just wanted to patch my way to boost bugs, but they never came.  So here's the result of my patching through, hopefully it makes some sort of sense.  XULrunner seems to have changed one interface, and libpng now doesn't publish the png_struct_def, so you need to use callbacks to get at the data inside.

Comment 2 Braden McDaniel 2012-05-13 14:53:45 UTC
openvrml-0.18.9-1 has been built successfully for rawhide.