bugGnash - The GNU Flash player - Bugs: bug #15663, firefox plugins compile error

 
 

bug #15663: firefox plugins compile error

Submitted by:  FReEDoM <freedom76>
Submitted on:  Wed 08 Feb 2006 07:50:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 05 Mar 2006 04:12:34 AM UTC, comment #4:

I just checked in a big patch that fixes this problem and many others with the plugin building. These missing headers files are now include in the Gnash sources instead of needing a Mozilla development package installed.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Fri 03 Mar 2006 04:12:06 PM UTC, comment #3:

Just for informational purpose: firefox-config and mozilla-config aren't in included in the Novell/SuSE mozilla-devel package either.
With the mozilla-config you uploaded, gnash will try to build the mozilla plugin (provided, that mozilla-devel is installed).

Thomas Zangerl <bellerophon>
Thu 09 Feb 2006 01:28:38 AM UTC, comment #2:

For one thing, I wouldn't configure it like this:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-libxml-includes=/usr/include/libxml2 --with-x --enable-mp3 --enable-dom --enable-xmlreader --enable-http --enable-plugin --enable-dmalloc --enable-jpeg --enable-png --enable-mp3 --enable-ogg --enable-pthreads --with-firefox=/usr/lib/mozilla-firefox --build=i686-pc-linux-gnu

I'd let Gnash's configure script use it's own defaults. I'd do just: ./configure --prefix=/usr. If it finds all the other things it depends on, they'll all be built. You can't currently mix --enable-dom --enable-xmlreader, it has to be one or the other. --enable-dom is the default. If you leave off --with-firefox, configure will look for "mozilla-config" or "firefox-config", and use this to get the other flags.

It does look like there is a bug thogh with --with-firefox, as it should add the proper includes using that prefix. It's obviously doing the worng thing now and not appendeding anything to the prefix. Without --with-firefox, the proper paths are found using the *-config tool.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Wed 08 Feb 2006 08:45:08 PM UTC, comment #1:

strange when i do :
$ firefox-config --cflags java plugins
-I/usr/lib/mozilla-firefox/include/java -I/usr/lib/mozilla-firefox/include/plugins -I/usr/lib/mozilla-firefox/include -I/usr/lib/mozilla-firefox/include/nspr

the include is the good one ...

The protocol is :
export PATH=$PATH:/usr/lib/mozilla-firefox # else configure wont find firefox-config
libtoolize --copy --force
./autogen.sh
./configure [...]

!!!! Important !!!!
If I do configure without "--with-firefox=/usr/lib/mozilla-firefox"
and firefox-config in the path compile is OK with plugin enable

FReEDoM <freedom76>
Wed 08 Feb 2006 07:50:52 PM UTC, original submission:

I cannot compile firefox plugins because of include path does not contains :
-I<firefox_include_dir>/java
-I<firefox_include_dir>/plugin
-I<firefox_include_dir>/nspr

Using this version :
gnash cvs 0.7_alpha
gcc 3.3.6
automake-1.9

Using this configure command line :
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-libxml-includes=/usr/include/libxml2 --with-x --enable-mp3 --enable-dom --enable-xmlreader --enable-http --enable-plugin --enable-dmalloc --enable-jpeg --enable-png --enable-mp3 --enable-ogg --enable-pthreads --with-firefox=/usr/lib/mozilla-firefox --build=i686-pc-linux-gnu

The log :
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I. -I/usr/lib/mozilla-firefox/include -Wall -DPLUGIN_TRACE -DXP_UNIX -DMOZILLA_VERSION=1.7.12 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UNAME_DOMAINNAME_FIELD=1 -DHAVE_VISIBILITY_ATTRIBUTE=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_BITYPES_H=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-DMOZ_DEFAULT_MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox -DMOZ_USER_DIR=.mozilla -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_DLL_SUFFIX=.so -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DNS_PRINT_PREVIEW=1 -DNS_PRINTING=1 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZILLA_LOCALE_VERSION=1.7 -DMOZILLA_REGION_VERSION=1.7 -DMOZILLA_SKIN_VERSION=1.5 -march=athlon-xp -O3 -pipe -I.. -I. -I/usr/lib/mozilla-firefox/include -march=athlon-xp -O3 -pipe -MT npn_gate.lo -MD -MP -MF .deps/npn_gate.Tpo -c npn_gate.cpp -fPIC -DPIC -o .libs/npn_gate.o
In file included from npn_gate.cpp:22:
npplat.h:21:19: npapi.h: No such file or directory
npplat.h:22:19: npupp.h: No such file or directory
npn_gate.cpp:24: error: syntax error before `;' token
npn_gate.cpp: In function `void NPN_Version(int, int, int, int)':
npn_gate.cpp:28: error: `NP_VERSION_MAJOR' undeclared (first use this function)

etc...

FReEDoM <freedom76>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 05 Mar 2006 04:12:34 AM UTCrsavoyeStatusIn Progress=>Fixed
  Open/ClosedOpen=>Closed
Thu 09 Feb 2006 01:28:38 AM UTCrsavoyeStatusNone=>In Progress
  Assigned toNone=>rsavoye

Back to the top


Powered by Savane 3.1-cleanup1