RE: FilePicker.cpp:76: error: prototype for'nsresult GFilePicker::Init

"Will L Givens" <[email protected]> Mon, 24 Apr 2006 23:16:10 -0500
Newsgroups gmane.comp.web.galeon.user
Message-ID <000001c6681e$ffd9a8c0$6401a8c0@zephyr>
AlphaPC 164SX
Redhat 7.2
Kernel-2.6.16.1
Gnome-2.8.3
Firefox-1.5.0.2
GCC-4.0.1
Binutils-2.19.0.x

Well I tried your flags but it was still a 'no go'. I used the flags that
you used minus the -march and -fomit-leaf-frame-pointer. 

Configuration:
CC="/usr/local/bin/gcc" CXX="/usr/local/bin/g++" \
CFLAGS="-mieee -O2 -fweb -fomit-frame-pointer -mtune=pca56 -pipe \
 -D__NO_STRING_INLINES -D__NO_MATH_INLINES -D_LARGEFILE_SOURCE \
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" \
 CXXFLAGS="-mieee -O2 -fweb -fpermissive -fomit-frame-pointer -pipe \
 -mtune=pca56 -D__NO_STRING_INLINES -D__NO_MATH_INLINES -D_LARGEFILE_SOURCE
\
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" \
 LDFLAGS=" -s -Wl,--enable-new-dtags -Wl,-lots" \
 ./configure \
 --prefix=/usr \
 --build=alphapca56-alpha-linux-gnu \
 --sysconfdir=/etc \
 --with-mozilla=firefox \
 --disable-nautilus-view

ERROR:
/usr/local/bin/g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../utils -I../utils
-I../embed -I../bookmarks -I../libegg -I..
-I/usr/include/firefox-1.5.0.2/gtkembedmoz -I/usr/include/firefox-1.5.0.2
-I/usr/include/firefox-1.5.0.2/xpcom -I/usr/include/firefox-1.5.0.2/string
-I/usr/include/firefox-1.5.0.2/nspr -I/usr/include/firefox-1.5.0.2
-I/usr/include/firefox-1.5.0.2/caps -I/usr/include/firefox-1.5.0.2/chardet
-I/usr/include/firefox-1.5.0.2/chrome -I/usr/include/firefox-1.5.0.2/content
-I/usr/include/firefox-1.5.0.2/cookie
-I/usr/include/firefox-1.5.0.2/docshell -I/usr/include/firefox-1.5.0.2/dom
-I/usr/include/firefox-1.5.0.2/exthandler
-I/usr/include/firefox-1.5.0.2/find -I/usr/include/firefox-1.5.0.2/fastfind
-I/usr/include/firefox-1.5.0.2/gfx
-I/usr/include/firefox-1.5.0.2/helperAppDlg
-I/usr/include/firefox-1.5.0.2/history
-I/usr/include/firefox-1.5.0.2/htmlparser
-I/usr/include/firefox-1.5.0.2/java -I/usr/include/firefox-1.5.0.2/js
-I/usr/include/firefox-1.5.0.2/jsconsole
-I/usr/include/firefox-1.5.0.2/layout -I/usr/include/firefox-1.5.0.2/locale
-I/usr/include/firefox-1.5.0.2/mimetype
-I/usr/include/firefox-1.5.0.2/mozxfer -I/usr/include/firefox-1.5.0.2/necko
-I/usr/include/firefox-1.5.0.2/necko2 -I/usr/include/firefox-1.5.0.2/nkcache
-I/usr/include/firefox-1.5.0.2/nspr -I/usr/include/firefox-1.5.0.2/oji
-I/usr/include/firefox-1.5.0.2/passwordmgr
-I/usr/include/firefox-1.5.0.2/pipnss -I/usr/include/firefox-1.5.0.2/pipboot
-I/usr/include/firefox-1.5.0.2/pref
-I/usr/include/firefox-1.5.0.2/progressDlg
-I/usr/include/firefox-1.5.0.2/sidebar
-I/usr/include/firefox-1.5.0.2/shistory
-I/usr/include/firefox-1.5.0.2/string -I/usr/include/firefox-1.5.0.2/uconv
-I/usr/include/firefox-1.5.0.2/uriloader
-I/usr/include/firefox-1.5.0.2/unicharutil
-I/usr/include/firefox-1.5.0.2/wallet
-I/usr/include/firefox-1.5.0.2/webbrowserpersist
-I/usr/include/firefox-1.5.0.2/webbrwsr
-I/usr/include/firefox-1.5.0.2/webshell
-I/usr/include/firefox-1.5.0.2/widget
-I/usr/include/firefox-1.5.0.2/windowwatcher
-I/usr/include/firefox-1.5.0.2/xpcom
-I/usr/include/firefox-1.5.0.2/xpconnect -DXTHREADS -DORBIT2=1 -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0
-I/usr/include/gnome-vfs-module-2.0 -DLIB_DIR=\"/usr/lib/galeon\"
-DSHARE_DIR=\"/usr/share/galeon\"
-DGALEON_MOZILLA_HOME=\"/usr/lib/firefox-1.5.0.2\" -D_GNU_SOURCE=1 -include
/usr/include/firefox-1.5.0.2/mozilla-config.h -fno-rtti -mieee -O2 -fweb
-fpermissive -fomit-frame-pointer -pipe -mtune=pca56 -D__NO_STRING_INLINES
-D__NO_MATH_INLINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -MT ContentHandler.lo -MD -MP -MF
.deps/ContentHandler.Tpo -c ContentHandler.cpp  -DPIC
ContentHandler.cpp:280: error: prototype for 'nsresult
GContentHandler::Show(nsIHelperAppLauncher*, nsISupports*, PRBool)' does not
match any in class 'GContentHandler'
ContentHandler.h:49: error: candidate is: virtual nsresult
GContentHandler::Show(nsIHelperAppLauncher*, nsISupports*, PRUint32)
ContentHandler.cpp: In member function 'nsresult
GContentHandler::SynchroniseMIMEInfo()':
ContentHandler.cpp:508: error: no matching function for call to
'nsDerivedSafe<nsIMIMEInfo>::SetApplicationDescription(const PRUnichar*)'
/usr/include/firefox-1.5.0.2/mimetype/nsIMIMEInfo.h:130: note: candidates
are: virtual nsresult nsIMIMEInfo::SetApplicationDescription(const
nsAString&)
ContentHandler.cpp: In member function 'nsresult GContentHandler::Init()':
ContentHandler.cpp:533: error: no matching function for call to
'nsDerivedSafe<nsIMIMEInfo>::GetMIMEType(char**)'
/usr/include/firefox-1.5.0.2/mimetype/nsIMIMEInfo.h:84: note: candidates
are: virtual nsresult nsIMIMEInfo::GetMIMEType(nsACString&)
ContentHandler.cpp: In member function 'nsresult
GContentHandler::ProcessMimeInfo()':
ContentHandler.cpp:563: error: no matching function for call to
'nsDerivedSafe<nsIHelperAppLauncher>::GetSuggestedFileName(PRUnichar**)'
/usr/include/firefox-1.5.0.2/exthandler/nsIExternalHelperAppService.h:252:
note: candidates are: virtual nsresult
nsIHelperAppLauncher::GetSuggestedFileName(nsAString&)
ContentHandler.cpp: In constructor
'MimeAskActionDialog::MimeAskActionDialog(GContentHandler*, GtkWidget*,
const char*)':
ContentHandler.cpp:726: error: no matching function for call to
'nsDerivedSafe<nsIHelperAppLauncher>::GetSuggestedFileName(PRUnichar**)'
/usr/include/firefox-1.5.0.2/exthandler/nsIExternalHelperAppService.h:252:
note: candidates are: virtual nsresult
nsIHelperAppLauncher::GetSuggestedFileName(nsAString&)
make[3]: *** [ContentHandler.lo] Error 1
make[3]: Leaving directory
`/usr2/www/pub/alpha-RH7/desktop/gnome-2.8/source/desktop/galeon-2.0.1/mozil
la'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr2/www/pub/alpha-RH7/desktop/gnome-2.8/source/desktop/galeon-2.0.1/mozil
la'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr2/www/pub/alpha-RH7/desktop/gnome-2.8/source/desktop/galeon-2.0.1'

-----Original Message-----
From: Nix [mailto:[email protected]] 
Sent: Wednesday, April 19, 2006 2:44 PM
To: Will L Givens
Cc: [email protected]
Subject: Re: [Galeon-user] FilePicker.cpp:76: error: prototype for'nsresult
GFilePicker::Init
Importance: High

On Wed, 19 Apr 2006, Will L. Givens mused:
> Well I noticed that the code is a little 'rough' to say the least. Despite
> being pushed as the 'fastest browser around', it tends to bork if ANY
CFLAGS
> or LDFLAGS are used to tweak or customize the build.

Does it? My galeon is built with

CFLAGS=" -ffast-math -O2 -fweb -fomit-frame-pointer -march=pentium3 -pipe
-D__NO_STRING_INLINES -D__NO_MATH_INLINES -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
CXXFLAGS=" -O2 -fweb -fpermissive -momit-leaf-frame-pointer  -pipe
-D__NO_STRING_INLINES -D__NO_MATH_INLINES -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
LDFLAGS=" -s -Wl,--enable-new-dtags"

(assigned via a site-config script).

It works perfectly.

> That's part of the reason I was so surprised when ever I attempted to link
> against libots. I would get so many funky errors it wasn't even funny.
Such
> as the linker rolling snake eyes stating the "-O3 is an unrecognized
option"
> or "/usr/lib/firefox-1.0.4 not recognized. Not a file or dir".

You've seriously busted your CFLAGS/LDFLAGS somehow. You shouldn't be
passing
-O3 to the linker!

> RECAP: I think the problem with the code is two fold. The Mozilla code is
> somewhat 'touchy' at best and two, CFLAGS/LDFLAGS aren't being carried
over
> properly from one build dir to the next [aka funky Makefiles and Configure
> script. Well talk to you later, and thanks for the tip... Will L G

`Funky'? It's a perfectly normal GNU Autoconf / GNU Automake-using system
(although the convolutions required to detect the various versions of
Gecko do get a little hairy).


You provided so little information about what you did and what went
wrong that it's very hard to help :(

Perhaps the problem is you're setting LDFLAGS (meant for
position-independent linker options) where you should be setting LIBS
(intended for linking against additional libraries). Alternatively the
problem may be that you're overriding LDFLAGS at make time or something
(a bit of a no-no; tell configure what the flags are, so it can run
tests with them set; it'll remember them for you).

-- 
`On a scale of 1-10, X's "brokenness rating" is 1.1, but that's only
 because bringing Windows into the picture rescaled "brokenness" by
 a factor of 10.' --- Peter da Silva



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642