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

Nix <[email protected]> Wed, 19 Apr 2006 20:43:52 +0100
Newsgroups gmane.comp.web.galeon.user
Message-ID <[email protected]>
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&kid=120709&bid=263057&dat=121642