Problems in building Kaffe-1.0.b with static libraries
Danny Hendler
dannyh at taux01.nsc.com
Thu Nov 12 00:59:01 PST 1998
Godmar,
I'm building Kaffe-1.0.b on Sparc, with Suons 4.1.4, using
gmake3.6.2 with the default ld and ar tools which come
with this version of Sunos.
The default (with dynamic libraries) build goes o.k., but build
with the --with_static_lib option fails, with numerous link
errors about unresolved AWT functions.
I'm not sure if this is related, but just before this I'm getting
a linker warning about libawt.a, that it has no table of
contents, and it recommends running ranlib. I did so, but
the warning persists.
Thanks for any help,
Danny.
Godmar Back wrote:
> >
> > 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