Problems in building Kaffe-1.0.b with static libraries

Godmar Back gback at cs.utah.edu
Wed Nov 11 08:50:58 PST 1998


> 
> Boris,
> 
> If you'll read my e-mail again you'll see that I DID use
> this option. This option causes the linker problems
> I mentioned.

 Your chances of getting help with this question would increase
if you mentioned the type and version of the OS, compiler, and
linker you used, as well as the version of kaffe you're experimenting
with. 

Having said that, a few comments.
....awt/external_wrappers.h is the file to look for function declarations.
It's automatically created usings sed.

--with-static doesn't produce static binaries (you'd indeed need
-Bstatic for that), all it does is link the kaffe's libraries statically
against the kaffe binary.  This needs to be pointed out somewhere
in the documentation.

	- Godmar

> 
> Regards,
> 
> Danny.
> 
> Boris Zemlyak wrote:
> 
> > Danny Hendler writes:
> >  > Hi,
> >  >
> >  > I'm about to run some profiling tests on Kaffe with gprof. For this, I
> >  > need
> >  > to rebuild kaffe with the -pg option. However, the profiling option does
> >  > not
> >  > live well with dynamic libraries. Consequently I ran "./configure
> >  > --with_staticlib"
> >  > to opt for static libraries, and then activated gmake.
> >  >
> >  > Compiling went throuth o.k., but the linker (ld) failed with 2 problems:
> >  >
> >  > 1. It reported unresolved error on numerous (maybe all?) awt functions
> >  > 2. It printed: "DYNAMIC boostrapping not available. use -Bstatic"
> >  >
> >  > Has anyone got any idea how to solve/circumvent this problem?
> > When you configure kaffe for build use '--with-staticlib' option,
> > this will cause Kaffe to be built without dinamic libraries.
> >  >
> >  >
> >  > Thanks in advance,
> >  >
> >  > Danny.
> >  >
> >  >
> >  >
> > Boris
> 
> 
> 
> 



More information about the kaffe mailing list