Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226099 - net-www/gnash-0.8.1-r1 compilation fails [perhaps GCC-4.3.1 fault]
Summary: net-www/gnash-0.8.1-r1 compilation fails [perhaps GCC-4.3.1 fault]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 17:03 UTC by BedOS_Gui
Modified: 2008-06-25 18:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnash-0.8.1-r1-gcc43.patch (gnash-0.8.1-r1-gcc43.patch,256 bytes, patch)
2008-06-13 21:56 UTC, Marek Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-06-12 17:03:24 UTC
When compiling gnash-0.8.1-r1 this error occurs :

/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -DPLUGIN_TRACE -DXP_UNIX -DMOZ_X11 -DGNASHBINDIR=\"/usr/bin\" -I.. -I. -I../server -I../server/parser -I../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1     -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include      -march=native -O3 -pipe -msse3 -pthread     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type      -MT np_entry.lo -MD -MP -MF .deps/np_entry.Tpo -c -o np_entry.lo `test -f 'mozilla-sdk/np_entry.cpp' || echo './'`mozilla-sdk/np_entry.cpp
mv -f .deps/npn_gate.Tpo .deps/npn_gate.Plo
plugin.cpp: In function 'NPError NS_PluginInitialize()':
plugin.cpp:148: error: 'strstr' was not declared in this scope
plugin.cpp: In function 'NPError NS_PluginGetValue(NPPVariable, void*)':
plugin.cpp:191: warning: deprecated conversion from string constant to 'char*'
plugin.cpp: In member function 'virtual NPError nsPluginInstance::DestroyStream(NPStream*, NPError)':
plugin.cpp:435: error: 'strerror' was not declared in this scope
plugin.cpp: In member function 'void nsPluginInstance::startProc(Window)':
plugin.cpp:505: error: 'strerror' was not declared in this scope
plugin.cpp:513: error: 'strerror' was not declared in this scope
plugin.cpp:522: error: 'strerror' was not declared in this scope
plugin.cpp:534: error: 'strerror' was not declared in this scope
plugin.cpp:540: error: 'strerror' was not declared in this scope
plugin.cpp:601: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:602: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:604: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:606: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:608: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:612: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:618: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:622: warning: deprecated conversion from string constant to 'char*'
plugin.cpp:647: error: 'strerror' was not declared in this scope
make[3]: *** [plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_TRACE -DXP_UNIX -DMOZ_X11 -DGNASHBINDIR=\"/usr/bin\" -I.. -I. -I../server -I../server/parser -I../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O3 -pipe -msse3 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT np_entry.lo -MD -MP -MF .deps/np_entry.Tpo -c mozilla-sdk/np_entry.cpp  -fPIC -DPIC -o .libs/np_entry.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_TRACE -DXP_UNIX -DMOZ_X11 -DGNASHBINDIR=\"/usr/bin\" -I.. -I. -I../server -I../server/parser -I../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=native -O3 -pipe -msse3 -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT np_entry.lo -MD -MP -MF .deps/np_entry.Tpo -c mozilla-sdk/np_entry.cpp -o np_entry.o >/dev/null 2>&1
mv -f .deps/np_entry.Tpo .deps/np_entry.Plo
make[3]: Leaving directory `/var/tmp/paludis/net-www-gnash-0.8.1-r1/work/gnash-0.8.1/plugin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/paludis/net-www-gnash-0.8.1-r1/work/gnash-0.8.1/plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/net-www-gnash-0.8.1-r1/work/gnash-0.8.1'
make: *** [all] Error 2

!!! ERROR in net-www/gnash-0.8.1-r1:
!!! In src_compile at line 4250
!!! emake failed

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/net-www-gnash-0.8.1-r1/temp/loadsaveenv:4250)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:460)
!!!    * main (/usr/libexec/paludis/ebuild.bash:479)

diefunc: making ebuild PID 11787 exit with error
die trap: exiting with error.

it seems be related to GCC-4.3.1 upgrade

Reproducible: Always
Comment 1 Marek Miller 2008-06-13 21:37:53 UTC
Confirmed. I'll include a patch soon. 
Please, mark this bug blocking Bug 198121.
Comment 2 Marek Miller 2008-06-13 21:56:32 UTC
Created attachment 156673 [details, diff]
gnash-0.8.1-r1-gcc43.patch

This little patch should fix the problem.

I tested it with:
USE="agg cairo fbcon ffmpeg gstreamer gtk kde mad nsplugin opengl qt3 sdl video_cards_i810" emerge -v1 =net-www/gnash-0.8.1-r1

and the program compiled fine.
Comment 3 BedOS_Gui 2008-06-13 23:12:11 UTC
(In reply to comment #2)
> Created an attachment (id=156673) [edit]
> gnash-0.8.1-r1-gcc43.patch
> 
> This little patch should fix the problem.
> 
> I tested it with:
> USE="agg cairo fbcon ffmpeg gstreamer gtk kde mad nsplugin opengl qt3 sdl
> video_cards_i810" emerge -v1 =net-www/gnash-0.8.1-r1
> 
> and the program compiled fine.
> 
Patch works fine on my box, thanks :-).
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-25 18:36:52 UTC
+*gnash-0.8.3 (25 Jun 2008)
+
+  25 Jun 2008; Peter Alfredsen <loki_val@gentoo.org> metadata.xml,
+  +gnash-0.8.3.ebuild:
+  Bump. Fixes bugs 212943, 213167, 218105 and 226099. Added tests, cleaned
+  up ebuild.