build failure: --enable-liveconnect: nsIPlugin.h not found

Timo Lindfors timo.lindfors at iki.fi
Wed Mar 26 13:44:46 PDT 2008


Hi,

my icedtea --enable-liveconnect build failed with

----

touch stamps/ports.stamp
g++ -g -O2 \
          -DXPCOM_GLUE_USE_NSPR \
          -DXP_UNIX -DJS_THREADSAFE -DXPCOM_GLUE -fshort-wchar -I/home/lindi/l/xulrunner/include/xulrunner-2.0a1pre/stable -I/usr/include/nspr   \
          `echo -L/home/lindi/l/xulrunner/lib/xulrunner-devel-2.0a1pre/lib -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lxpcomglue   | sed 's%/lib\ %/sdk/lib\ %'` \
          -I/usr/include/xulrunner-sdk-2.0a1pre/oji \
          -I/usr/include/xulrunner-sdk-2.0a1pre/caps \
          -I/usr/include/xulrunner-sdk-2.0a1pre/liveconnect \
          -I/usr/include/xulrunner-sdk-2.0a1pre/necko \
          -I/usr/include/xulrunner-sdk-2.0a1pre/string \
          -I/usr/include/xulrunner-sdk-2.0a1pre/xpcom \
          -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   \
          -DPACKAGE_VERSION="\"1.6\"" \
          -fpic -fshort-wchar --shared -o IcedTeaPlugin.so IcedTeaPlugin.cc
IcedTeaPlugin.cc:506:23: error: nsIPlugin.h: No such file or directory

----

I have "nsIPlugin.h" but it is in the "unstable" directory of my
xulrunner installation at

/home/lindi/l/xulrunner/include/xulrunner-2.0a1pre/unstable/nsIPlugin.h

maybe some part of icedtea uses "pkg-config libxul" instead of
"pkg-config libxul-unstable"? At least configure does

pkg_cv_XULRUNNER_CFLAGS=`$PKG_CONFIG --cflags "\
  nspr mozilla-js mozilla-plugin libxul-embedding >= 1.9pre" 2>/dev/null`

which could be potential problem:

$ pkg-config libxul-embedding --cflags
-DXPCOM_GLUE -fshort-wchar -I/home/lindi/l/xulrunner/include/xulrunner-2.0a1pre/stable

$ pkg-config libxul-embedding-unstable --cflags
-DXPCOM_GLUE -fshort-wchar -I/home/lindi/l/xulrunner/include/xulrunner-2.0a1pre/unstable




best regards,
Timo Lindfors



More information about the distro-pkg-dev mailing list