Em 07-02-2014 22:28, Merell L. Matlock, Jr. escreveu:
> IcedTea-Web-1.4.2 will not build against XULRunner-27.
> 
> System:  (B)LFS 7.4, with some upgrades from SVN.  While I do not have 
> GTK+ 2.24.22 installed (for XULRunner/Firefox-27 IAW BLFS SVN), I do 
> meet the prerequisites listed here:
> 
> https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites#All_other_systems
> 

I don't understand. You need GTK+. And it is stated there, at the page:

"the GTK2 widget toolkit, version 2.10 or higher"

> XULRunner and Firefox (27) installed (against OpenJDK1.7.0.51) with no 
> problems.
> 
> I previously had IcedTea-Web-1.4 (built against XULRunner 23.0.1) installed.
> 
> When trying to build IcedTea-Web-1.4.2  I get the following error:
> 
> 
> mkdir -p /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp && \
> cd /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp && \
> g++ -g -O2 \
>     -DPACKAGE_NAME=\"icedtea-web\" -DPACKAGE_TARNAME=\"icedtea-web\" 
> -DPACKAGE_VERSION=\"1.4.2\" -DPACKAGE_STRING=\"icedtea-web\ 1.4.2\" 
> -DPACKAGE_BUGREPORT=\"[email protected]\" 
> -DPACKAGE_URL=\"http://icedtea.classpath.org/wiki/IcedTea-Web\"; 
> -DPACKAGE=\"icedtea-web\" -DVERSION=\"1.4.2\" -DHAVE_LIBZ=1 -DHAVE_JAVA7 \
>    -DJDK_UPDATE_VERSION="\"50\"" \
>    -DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
>    -DPLUGIN_VERSION="\"IcedTea-Web 1.4.2\"" \
>    -DPACKAGE_URL="\"http://icedtea.classpath.org/wiki/IcedTea-Web\""; \
>    -DMOZILLA_VERSION_COLLAPSED="27000000" \
>    -DICEDTEA_WEB_JRE="\"/opt/jdk/jre\"" \
> -DPLUGIN_BOOTCLASSPATH='"-Xbootclasspath/a:/opt/jdk/jre/share/icedtea-web/netx.jar:/opt/jdk/jre/share/icedtea-web/plugin.jar:/usr/share/java/js.jar"'
>  
> \
>    -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  \
>    -DXP_UNIX -I/usr/include/xulrunner-27.0  \
>            -fvisibility=hidden \
>    -fPIC -o 
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.o
>  
> -c 
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.cc
> In file included from 
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.h:43:0,
>                   from 
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:41:
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:
>  
> In static member function 'static bool 
> IcedTeaScriptableJavaObject::getProperty(NPObject*, NPIdentifier, 
> NPVariant*)':
> /usr/include/xulrunner-27.0/npruntime.h:140:30: error: 'nullptr' was not 
> declared in this scope
>       (_v).value.objectValue = 
> nullptr;                                         \
>                                ^
> /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:688:17:
>  
> note: in expansion of macro 'VOID_TO_NPVARIANT'
>                   VOID_TO_NPVARIANT(*result);
>                   ^
> make: *** 
> [/sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp/IcedTeaScriptablePluginObject.o]
>  
> Error 1
> 
> There was no difference in the file npruntime.h between v23.0.1 and 
> v26.  However:
> 
> merell [ ~ ]$ diff /usr/lib/xulrunner-devel-26.0/include/npruntime.h 
> /usr/lib/xulrunner-devel-27.0/include/npruntime.h
> 140c140
> <     (_v).value.objectValue = NULL;                                          
>   \
> ---
>>     (_v).value.objectValue = nullptr;                                        
>>  \
> 146c146
> <     (_v).value.objectValue = NULL;                                          
>   \
> ---
>>     (_v).value.objectValue = nullptr;                                        
>>  \
> 219c219
> <     NPIdentifier(s) will be NULL. NPIdentifier lifetime is controlled
> ---
>>     NPIdentifier(s) will be nullptr. NPIdentifier lifetime is controlled
> 286,288c286,288
> <     will typically return immediately, with 0 or NULL, from an attempt
> <     to dispatch to a NPObject, but this behavior should not be
> <     depended upon.)
> ---
>>     will typically return immediately, with 0 or nullptr, from an
>>     attempt to dispatch to a NPObject, but this behavior should not
>>     be depended upon.)
> 
> Ideas?
> 
> Thanks,
> 
> Merell Matlock

You must have needed to update some package when (if) Xulrunner build
failed. If so, can you remember and post here?

It is the second time the problem appears, and I am trying to find a
proper solution, or help from someone here that could provide that
cleaner solution. That is the reason I am including more comments than
just trying to solve your problem.

>From my problem, I think that one of the dependencies was not updated or
there is a left over.

>From what I remember, I needed to rebuild "pcre glib
gobject-introspection gtk+2". Now I see I did not update gtk+3.

Back to your problem:

I know how to finish the build. The key is:

s/g++ -g -O2/g++ -std=c++0x -g -O2/

When the error stops the build, change to the directory

cd /sources/blfs/build/icedtea-web-1.4.2/plugin/icedteanp

and run the g++ command, this time with "g++ -std=c++0x -g -O2", instead
of "g++ -g -O2" (that's what I meant with s/.../.../ above).

It will finish quite quickly, then

cd /sources/blfs/build/icedtea-web-1.4.2/

make

Another problem probably will appear, the repeat the procedure above,
for the directory and the new g++ (with s/g++ -g -O2/g++ -std=c++0x -g -O2/)

Now, "make" should finish and you should be able to run "make install".

-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to