[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: failing rpm 4 compile --- COMPILES!



I managed to get RPM 4.0 to compile. Looked through the linux.redhat.rpm
newsgroup,
and came across a mail from Jeff Johnson, which included the following:

	An rpm configure sets the following defines by checking for
		1) HAVE_DB1_DB_H	/usr/include/db1/db.h
		2) HAVE_DB3_DB_H	/usr/include/db3/db.h
		3) USE_DB1		dbopen() in libc.a/libdb1.a/libdb.a
		4) USE_DB3		db_create() in
libdb-3.1.a/libdb-3.0.a/libdb.a
	using usual autoconf conventions chasing includes and libraries.

I had installed db3.1.17, but by default all the libraries and include files
were
installed in /usr/local/BerkeleyDB.3.1/.. . 

So I copied /usr/local/BerkeleyDB.3.1/include/* to /usr/include/db3/*
and
/usr/local/BerkeleyDB.3.1/lib/libdb.a to /usr/lib/libdb-3.1.a

Then I created a new rpm-4.0 directory from the tar.gz file, ran autogen.sh,
and 
was able to compile. (Note, I'm using libtool-1.3.4, instead of 1.3.5, but
it didn't make
any difference).

After installation, I had to do a rpm --rebuilddb.

Thanks,

Ravi



-----Original Message-----
From: Ravi Budhia [mailto:ravi@desanasystems.com]
Sent: Monday, February 26, 2001 11:39 AM
To: 'rpm-list@redhat.com'
Subject: RE: failing rpm 4 compile


I'm getting the same compile problems.

db3Free and db3New are contained in lib/db3.c, however, db3.c is not
included in the sources while building librpm.so. 

I modified the following line in the Makefile in rpm-4.0/lib:
	DBLIBOBJS =  db1.c falloc.c
to
	DBLIBOBJS =  db3.c db1.c falloc.c

Now I'm getting compile errors in db3.c (lines 557, and 575).
The errors occur when there is a conditional compile based on the Major and
Minor version on db3.

I've installed db3.2. Does anyone know if rpm-4.0 can build with db3.2?

Thanks,

Ravi

-----Original Message-----
From: jonathan ricketson [mailto:jonathanricketson@hotmail.com]
Sent: Friday, February 23, 2001 4:59 AM
To: rpm-list@redhat.com
Subject: failing rpm 4 compile


Hello, I am having a problem getting RPM 4 to compile and I have seen on 
deja news etc that a lot of others are having the same problems.

The actual problem is a missing dependancy for db3free and db3new when 
compiling the tools subdirectory
../lib/.libs/librpm.so: undefined reference to `db3Free'
../lib/.libs/librpm.so: undefined reference to `db3New'
Can anyone lend a hand??

Jonathan Ricketson
jonathan at permanent dot com
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list



_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []