Skip Menu |

This queue is for tickets about the Mozilla-DOM CPAN distribution.

Report information
The Basics
Id: 17758
Status: open
Priority: 0/
Queue: Mozilla-DOM

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.20
Fixed in: (no value)



error in "make" I've installed mozilla 1.7.12-r2, Perl 5.8.8 from Gentoo portage.
Subject: log
Download log
application/octet-stream 35.4k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #17758]
Date: Mon, 20 Feb 2006 18:22:56 +0100 (CET)
To: Guest via RT <bug-Mozilla-DOM [...] rt.cpan.org>
From: Scott Lanning <lannings [...] who.int>
On Mon, 20 Feb 2006, Guest via RT wrote: Show quoted text
> Mon Feb 20 12:15:16 2006: Request 17758 was acted upon. > Transaction: Ticket created by guest > Queue: Mozilla-DOM > Subject: (No subject given) > Owner: Nobody > Requestors: > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=17758 > > > error in "make" > I've installed mozilla 1.7.12-r2, Perl 5.8.8 from Gentoo portage.
Can you please see if $ locate nsIURI.h outputs anything? In particular, is it under (/usr/include/mozilla/): pkg-config --variable=includedir mozilla-xpcom or dom, webbrwsr, content, docshell under that directory.
Show quoted text
> Can you please see if > > $ locate nsIURI.h > > outputs anything? > In particular, is it under (/usr/include/mozilla/): > > pkg-config --variable=includedir mozilla-xpcom > > or dom, webbrwsr, content, docshell under that directory.
vis mozilla # locate nsIURI.h /usr/lib/mozilla-firefox/include/nsIURI.h /usr/lib/mozilla-firefox/include/necko/nsIURI.h vis mozilla # pkg-config --variable=includedir mozilla-xpcom /usr/lib/mozilla/include
I do #locate -U /usr/lib now locate output is: # locate nsIURI.h /usr/lib/mozilla-firefox/include/nsIURI.h /usr/lib/mozilla-firefox/include/necko/nsIURI.h /usr/lib/mozilla/include/necko/nsIURI.h May be I've the problem bicase I've both mozilla and mozilla-firefox installed? Sorry about my english.
On Mon Feb 20 15:04:32 2006, guest wrote: Show quoted text
> May be I've the problem bicase I've both mozilla and mozilla-firefox > installed?
It's possible, but it should find the installation in the following order: mozilla-xpcom, firefox-xpcom, mozilla-firefox-xpcom. So basically whichever one of those it finds first by using pkg-config, that's what it should use. But I think the problem is really just that the everybody seems to think it's fun to move these header files around all the damn time... :} Then they don't put that in `pkg-config`, and the names for pkg-config vary from one distro to another... Maybe I'm not doing something right. Look in Makefile.PL, to find # -I/usr/include/mozilla -I/usr/include/mozilla/xpcom # -I/usr/include/mozilla/string -I/usr/include/mozilla/nspr $mozdom->set_inc($pkgcfg{cflags}, '-I.', '-I./build', "-I$incdir", "-I$incdir/dom", "-I$incdir/webbrwsr", "-I$incdir/content", "-I$incdir/docshell"); You should be able to add one more thing like "-I$incdir/necko" to that. Then start over with `make realclean`, `perl Makefile.PL`, etc. Please let me know if it works.
I add "-I$incdir/necko" to the Makefile.PL . Now I have no string "mozilladom2perl.h:62:20: nsIURI.h: No such file or directory" in 'make' output. But I still have other errors.
On Wed Feb 22 16:41:12 2006, guest wrote: Show quoted text
> I add "-I$incdir/necko" to the Makefile.PL . > Now I have no string "mozilladom2perl.h:62:20: nsIURI.h: No such file or > directory" in 'make' output. But I still have other errors.
Could you paste the output here, please?
Show quoted text
> Could you paste the output here, please?
sure. Output attached.
Download log
application/octet-stream 24.6k

Message body not shown because it is not plain text.

First question, did you start over from scratch? Maybe delete and re-untar the module. This is near the top of your output: DOM.c:206: error: parse error before `__attribute__' DOM.c: In function `void XS_Mozilla__DOM__AbstractView_GetIID(...)': DOM.c:207: error: parse error before `__attribute__' DOM.c: In function `void XS_Mozilla__DOM__AbstractView_GetIID(...)': I don't have anything like __attribute__ in DOM.c. I have the following in DOM.c around that area. Is yours different (after rebuilding from scratch)? #line 205 "DOM.c" XS(XS_Mozilla__DOM__AbstractView_GetIID); /* prototype to pass -Wmissing-prototypes */ XS(XS_Mozilla__DOM__AbstractView_GetIID) { dXSARGS; if (items != 1) Perl_croak(aTHX_ "Usage: Mozilla::DOM::AbstractView::GetIID(CLASS)"); { char * CLASS = (char *)SvPV_nolen(ST(0)); nsIID RETVAL; dXSTARG; #line 203 "DOM.xs" const nsIID &id = nsIDOMAbstractView::GetIID(); RETVAL = (nsIID) id; #line 220 "DOM.c" sv_setpv(TARG, RETVAL.ToString()); XSprePUSH; PUSHTARG; } XSRETURN(1); }
On Fri Feb 24 05:20:25 2006, guest wrote: Show quoted text
> First question, did you start over from scratch? > Maybe delete and re-untar the module.
yes, I did. Show quoted text
> I don't have anything like __attribute__ in DOM.c.
Me too haven't. Show quoted text
> I have the following in DOM.c around that area.
I have same code around that area in DOM.c. compressed DOM.c attached.
Download DOM.c.bz2
application/octet-stream 48.5k

Message body not shown because it is not plain text.