make problems on solaris8 (here we go again...)
Gerlich, Rene
Rene.Gerlich at commerzbank.com
Thu Jul 3 17:36:13 CDT 2003
the gettext in /usr/local is GNU gettext
> HMM... I wonder if you have conflicting libintl.h files, or at least
> conflicting definitions of gettext()? If your gettext in /usr/local
> defines gettext() as a macro, it's very possible that it could be
> something like:
>
> #define gettext(a) (a)
>
> which when it hits this is going to say:
>
> extern (const char *)
>
> which would certainly cause this error. I guess the question is:
> why do you have
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/libintl.h
> and how does it compare to what you have in /usr/local?
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/libintl.h is part of
the gcc-3.3 package i had installed from www.sunfreeware.com
i have another libintl.h in /usr/include which is part of SUNWhea (SunOS
header files - solaris8 core) and is in its original state. the two files
are different in four lines.
i now use gcc-3.2.1 and added --with-included-gettext (does that help?)
lets so what happens
cheers
rene
>
> Another question: is configure finding your libintl.a? A problem
> I had on solaris is that it was NOT finding the (external) libintl.
> I needed to add the following to CPPFLAGS during configure:
>
> CPPFLAGS=-DD_nl_domain_bindings=libintl_nl_domain_bindings
>
> In order to get it to properly find libintl.. Otherwise I got a bunch
> of other errors. However you seem to have progressed much
> further than
> I had, so I'm not sure.
>
> -derek
>
> "Gerlich, Rene" <Rene.Gerlich at commerzbank.com> writes:
>
> > hi derek,
> >
> > i'll downgrade no problem.
> >
> > here are lines 43-48:
> >
> > 43: #ifdef __STDC__
> > 44: extern char *dcgettext(const char *, const char *, const int);
> > 45: extern char *dgettext(const char *, const char *);
> > 46: extern char *gettext(const char *);
> > 47: extern char *textdomain(const char *);
> > 48: extern char *bindtextdomain(const char *, const char *);
> >
> > i have checked for gettext and i use version 0.11.5 in
> /usr/local/bin (if
> > that's what this means ...)
> >
> > cheers
> >
> > rene
> >
> > > -----Original Message-----
> > > From: Derek Atkins [mailto:warlord at MIT.EDU]
> > > Sent: Thursday, July 03, 2003 3:55 PM
> > > To: Gerlich, Rene
> > > Cc: gnucash-user at lists.gnucash.org
> > > Subject: Re: make problems on solaris8 (here we go again...)
> > >
> > >
> > > I will note that this very much be a GCC 3.3 problem and
> not a GnuCash
> > > problem. Just like DBD 4.1, GCC 3.3 is "just too new"
> for our code.
> > > Is there any chance you could downgrade your GCC to 3.2?
> > >
> > > >
> > > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/libint
> > > l.h:46: error:
> > > > parse error before "const"
> > >
> > > So, what is at (or around) line 46 in this file? Can you
> supply lines
> > > 44-47? I suspect there is a missing include file, but
> I'm not sure
> > > what. I've compiled with gcc3.0 and gcc3.2 on solaris 5.8
> > > and 5.9 without
> > > this problem..
> > >
> > > -derek
> > >
> > > "Gerlich, Rene" <Rene.Gerlich at commerzbank.com> writes:
> > >
> > > > hi derek,
> > > >
> > > > of course you are right, i was not using gnu make. well i
> > > am now and it
> > > > walks throu almost all the way!
> > > >
> > > > here's another little problem i can't help myself out with:
> > > >
> > > > make[5]: Entering directory
> > > >
> > >
> `/export/download/gnucash/gnucash-1.8.4/src/business/business-ledger'
> > > > /bin/sh ../../../libtool --mode=compile gcc
> -DHAVE_CONFIG_H -I. -I.
> > > > -I../../.. -I/usr/local/BerkeleyDB.4.1/include
> > > -I/opt/gnome/include
> > > > -I/opt/gnome/include -I../../../src/business/business-core
> > > > -I../../../src/business/business-utils
> > > > -I../../../src/business/dialog-tax-table -I../../../src
> > > > -I../../../src/engine -I../../../src/gnc-module
> > > -I../../../src/app-utils
> > > > -I../../../src/gnome-utils -I../../../src/register/register-core
> > > > -I/opt/gnome/include -I/opt/gnome/include/gnome-xml
> > > > -I/opt/gnome/include/libglade-1.0 -I/opt/gnome/include/gtk-1.2
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > > -I/usr/openwin/include -I/opt/gnome/include/gtk-1.2
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > > -I/usr/openwin/include -I/opt/gnome/include/gnome-1.0
> > > -DNEED_GNOMESUPPORT_H
> > > > -I/opt/gnome/lib/gnome-libs/include
> -I/opt/gnome/include/orbit-1.0
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > -g -O2 -Wall
> > > > -Wunused -c gncEntryLedgerModel.c
> > > > gcc -DHAVE_CONFIG_H -I. -I. -I../../..
> > > -I/usr/local/BerkeleyDB.4.1/include
> > > > -I/opt/gnome/include -I/opt/gnome/include
> > > > -I../../../src/business/business-core
> > > -I../../../src/business/business-utils
> > > > -I../../../src/business/dialog-tax-table -I../../../src
> > > > -I../../../src/engine -I../../../src/gnc-module
> > > -I../../../src/app-utils
> > > > -I../../../src/gnome-utils -I../../../src/register/register-core
> > > > -I/opt/gnome/include -I/opt/gnome/include/gnome-xml
> > > > -I/opt/gnome/include/libglade-1.0 -I/opt/gnome/include/gtk-1.2
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > > -I/usr/openwin/include -I/opt/gnome/include/gtk-1.2
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > > -I/usr/openwin/include -I/opt/gnome/include/gnome-1.0
> > > -DNEED_GNOMESUPPORT_H
> > > > -I/opt/gnome/lib/gnome-libs/include
> -I/opt/gnome/include/orbit-1.0
> > > > -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include
> > > -g -O2 -Wall
> > > > -Wunused -c gncEntryLedgerModel.c -fPIC -o
> > > .libs/gncEntryLedgerModel.o
> > > > In file included from /usr/include/locale.h:51,
> > > > from ../../../src/app-utils/gnc-ui-util.h:36,
> > > > from gncEntryLedgerModel.c:15:
> > > >
> > > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/libint
> > > l.h:46: error:
> > > > parse error before "const"
> > > > make[5]: *** [gncEntryLedgerModel.lo] Error 1
> > > > make[5]: Leaving directory
> > > >
> > >
> `/export/download/gnucash/gnucash-1.8.4/src/business/business-ledger'
> > > >
> > > > i have looked at libintl.h which is part of my (and
> > > probably everyones ;-)
> > > > gcc 3.3 installation and i found it is probably related to
> > > gettext and my
> > > > locale which is standard LANG=C but again if i knew what i
> > > was talking
> > > > about, i would not bother you...
> > > >
> > > > looks like i am almost through though. i wonder if i'll be
> > > able to reproduce
> > > > what i have done to make this compilation work ;-) i'll set
> > > up a naked
> > > > solaris next time and document more of what i'm doing.
> > > >
> > > > cheers
> > > >
> > > > rene
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Derek Atkins [mailto:warlord at MIT.EDU]
> > > > > Sent: Wednesday, July 02, 2003 5:37 PM
> > > > > To: Gerlich, Rene
> > > > > Cc: gnucash-user at lists.gnucash.org
> > > > > Subject: Re: make problems on solaris8 (here we go again...)
> > > > >
> > > > >
> > > > > Are you using Gnu Make? If not, well, you need to ;)
> > > > > If you ARE using Gnu Make, then I'd like to see your
> > > > > "examples/Makefile".
> > > > >
> > > > > -derek
> > > > >
> > > > > "Gerlich, Rene" <Rene.Gerlich at commerzbank.com> writes:
> > > > >
> > > > > > cheers everyone!
> > > > > >
> > > > > > well, finally the ./configure on my solaris8 box works!
> > > > > thanks to derek!
> > > > > >
> > > > > > now the bugger hangs during make (see below)
> > > > > >
> > > > > > make all-recursive
> > > > > > Making all in intl
> > > > > > Making all in m4
> > > > > > Making all in macros
> > > > > > Making all in debian
> > > > > > Making all in doc
> > > > > > Making all in examples
> > > > > > rm -f gnc-prices.1.tmp
> > > > > > sed < > gnc-prices.1.tmp \
> > > > > > -e 's:@-VERSION-@:1.8.4:g' \
> > > > > > -e 's:@-DATE-@::g'
> > > > > > sh: syntax error at line 1: `>' unexpected
> > > > > > *** Error code 2
> > > > > > make: Fatal error: Command failed for target `gnc-prices.1'
> > > > > > Current working directory
> > > /export/download/gnucash/gnucash-1.8.4/doc
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `all-recursive'
> > > > > > Current working directory
> > > /export/download/gnucash/gnucash-1.8.4/doc
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target `all-recursive'
> > > > > > Current working directory
> /export/download/gnucash/gnucash-1.8.4
> > > > > > *** Error code 1
> > > > > > make: Fatal error: Command failed for target
> `all-recursive-am'
> > > > > >
> > > > > > i have enabled --disable-error-on-warning so it won't exit
> > > > > right away (maybe
> > > > > > not so smart?)
> > > > > >
> > > > > > i would be very thankful if anyone (maybe derek ;-) knows a
> > > > > way out here. if
> > > > > > you need more data (configure output, make output,
> > > > > environment, ...) please
> > > > > > let me know
> > > > > >
> > > > > > cheers
> > > > > >
> > > > > > rene
> > > > > >
> > > > > > _______________________________________________
> > > > > > gnucash-user mailing list
> > > > > > gnucash-user at lists.gnucash.org
> > > > > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > > >
> > > > > --
> > > > > Derek Atkins, SB '93 MIT EE, SM '95 MIT Media
> Laboratory
> > > > > Member, MIT Student Information Processing
> Board (SIPB)
> > > > > URL: http://web.mit.edu/warlord/ PP-ASEL-IA
> N1NWH
> > > > > warlord at MIT.EDU PGP key
> available
> > > > >
> > > > _______________________________________________
> > > > gnucash-user mailing list
> > > > gnucash-user at lists.gnucash.org
> > > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > >
> > > --
> > > Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> > > Member, MIT Student Information Processing Board (SIPB)
> > > URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> > > warlord at MIT.EDU PGP key available
> > > _______________________________________________
> > > gnucash-user mailing list
> > > gnucash-user at lists.gnucash.org
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > >
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
More information about the gnucash-user
mailing list