Re: solaris compile problem with apt-0.5.15cnc6

Aamer Akhter <[email protected]> Wed, 4 Aug 2004 12:55:45 -0400
Newsgroups gmane.linux.conectiva.apt-rpm
Message-ID <[email protected]>
On Wed, 04 Aug 2004 19:06:43 +0300, Panu Matilainen <[email protected]> wrote:
>
>
> On Wed, 2004-08-04 at 17:43, Aamer Akhter wrote:
> > I realize that a solaris compile problem may not be the most exciting
> > thing to occour on this list, but here it is anyway ;-)
> >
> > This is on solaris8.
> >
> > g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../lua/include
> > -I../lua/local -DLIBDIR=\"/var/tmp/apt-0.5.15cnc6/lib\"
> > -I/var/tmp/cast-rpm/cast/include -I/var/tmp/cast-rpm/cast/include/rpm
> > -I/users/aakhter/include -I/usr/cisco/include -I/usr/include/rpm -g
> > -O2 -c rpm/rpmhandler.cc -Wp,-MD,rpm/.deps/rpmhandler.TPlo -o
> > rpm/rpmhandler.o
> > In file included from rpm/rpmhandler.cc:25:
> > ../include/apt-pkg/rpmhandler.h:106: Floating point numbers not
> > allowed in #if expressions
> > ../include/apt-pkg/rpmhandler.h:111: Floating point numbers not
> > allowed in #if expressions
> > ../include/apt-pkg/rpmhandler.h:142: Floating point numbers not
> > allowed in #if expressions
> >
> > #if RPM_VERSION >= 0x040100
> >    rpmts Handler;
> > #else
> >    rpmdb Handler;
> > #endif
> >
> > Does this problem seem famaliar to anybody?
>
> No :) But apparently RPM_VERSION turns into something with a dot in it
> when it shouldn't. What does
> $ LANG= LC_ALL= rpm --version | sed 's/^RPM version //'

> rpm --version | sed 's/^RPM version //'
4.1

> output and after running ./configure, what does the following output?
> $ grep RPM_VERSION include/config.h

> grep RPM_VERSION include/config.h
#define RPM_VERSION
((RPM_VERSION_MAJOR<<16)|(RPM_VERSION_MINOR<<8)|RPM_VERSION_MICRO)
#define RPM_VERSION_MAJOR 4
#define RPM_VERSION_MICRO 4.1
#define RPM_VERSION_MINOR 1
#define RPM_VERSION_RAW "4.1"

>
>         - Panu -
>
>


-- 
Aamer Akhter / [email protected]