Bug 12772 - rpm-4.0-0.33 Solaris compile problems
Summary: rpm-4.0-0.33 Solaris compile problems
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm
Version: 1.0
Hardware: sparc
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-06-21 05:56 UTC by Moritz Barsnick
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-09-14 17:24:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Moritz Barsnick 2000-06-21 05:56:33 UTC
I know RPM is most thought of as a Linux app, but it's used on Solaris as
well.  :-)

On Solaris 2.6 (officially: SunOS5.6), there are several problems which
prevent successful compilation:

- In lib/rpmdb.h and lib/md5.h, u_int32_t and u_int8_t are unknown types.
- Programs can't link against "-lrpm" if rpm-devel isn't previously
  installed. (This is a duplicate, it's allegedly fixed in CVS. Missing
  -L../lib/.libs and the likes.)
- And you seem to have put some quirks in your db{1,2,3} packages which are
  far from what BerkeleyDB delivers by default, because e.g. installing
  BerkeleyDB according to your instructions produces no db1/db.h, there
are   conflicting types in lib/db1.c, ... Perhaps your "instructions for
  building db-2.6.4" (file INSTALL) are out of date?

Comment 1 Jeff Johnson 2000-06-21 09:57:51 UTC
Porting rpm-4.0 to solaris has not been seriously attempted yet, will be before
rpm-4.0 is released. Some of the problems you mention have already been fixed,
get changes from anonymos cvs
	cvs -d :pserver:anonymous.org:/cvs/devel login
        (no password, just carriage return)
        cvs -d :pserver:anonymous.org:/cvs/devel get rpm
        cd rpm
However, you will need both db-1.85 (or db-2.x in db-1.85 compatibility mode)
and db-3.1.14 in order to build rpm-4.0, and you can expect that some of the
paths to include files and libraries are very linuxish at the moment. Support
for native db-2.x will probably never be implemented in rpm-4.0 as there is
little need. Use the db-1.85 compatibility interface instead.

Yes the instructions for building with db-2.6 don't apply to rpm-4.0.


Comment 2 Jeff Johnson 2001-01-09 16:00:15 UTC
I believe this problem has been solved. Please reopen if I'm wrong.

Comment 3 Dimitri Papadopoulos 2001-05-15 13:00:20 UTC
It's still broken in RPM 4.0.2.

Berkeley DB installs its db.h header file in <prefix>/include not in
<prefix>/include/db3
but RPM tries to include <db3/db.h>. I get a compile-time error:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../rpmio -I../popt -I../misc
-I/usr/local/include -fast -c dbconfig.c  -KPIC -DPIC -o dbconfig.o
"dbconfig.c", line 7: cannot find include file: <db3/db.h>
cc: acomp failed for dbconfig.c
gmake[2]: *** [dbconfig.lo] Error 1
gmake[2]: Leaving directory `/home/papadopo/rpm-4.0.2/lib'

RPM doesn't try to autodetect that as far as I can tell.

Dimitri



Note You need to log in before you can comment on or make changes to this bug.