1 |
-- Brandon Low <lostlogic@g.o> spake thusly: |
2 |
|
3 |
> Log file for the failed db compile. |
4 |
> http://gentoo.lostlogicx.com/2834-db-3.2.9-r2.log |
5 |
|
6 |
I'm not sure whether this will help, but it might give you a place to |
7 |
start looking. The error seems to involve the db.h file that gets |
8 |
included. For instance, the message: |
9 |
|
10 |
../db_dump185/db_dump185.c:210: warning: assignment makes |
11 |
pointer from integer without a cast |
12 |
|
13 |
Indicates that on line 210: |
14 |
|
15 |
if ((dbp = dbopen(argv[0], ... |
16 |
|
17 |
dbopen is not defined, so the compiler is assuming it returns an |
18 |
integer, when in fact the correct function definition returns a DB*. |
19 |
|
20 |
There are two versions of db.h, one for 1.85 and one for 3.2.9. The |
21 |
3.2.9 version (which _doesn't_ define dbopen) is in |
22 |
/tmp/portage/.../build-static/, and the 1.85 version is in |
23 |
/usr/include/db1/. Your compile command for db_dump185 is: |
24 |
|
25 |
gcc -c -D_GNU_SOURCE -I../dist/../include -D_REENTRANT |
26 |
../dist/../db_dump185/db_dump185.c |
27 |
|
28 |
whereas on my system it's using: |
29 |
|
30 |
gcc -I/usr/include/db1 -c -D_GNU_SOURCE -I../dist/../include |
31 |
-D_REENTRANT ../dist/../db_dump185/db_dump185.c |
32 |
|
33 |
This stuff is hard-coded in dist/Makefile.in: |
34 |
|
35 |
DB185INC= -I/usr/include/db1 -c @CFLAGS@ |
36 |
-I$(srcdir)/include @CPPFLAGS@ |
37 |
DB185LIB= -ldb1 |
38 |
. |
39 |
. |
40 |
. |
41 |
db_dump185@o@: $(srcdir)/db_dump185/db_dump185.c |
42 |
$(CC) $(DB185INC) $? |
43 |
|
44 |
However, it's _NOT_ in Makefile.in.orig, so I assume there's a gentoo |
45 |
patch that you're not picking up. 'emerge sync' perhaps? |
46 |
|
47 |
Although I would say that if there are two different revisions of the |
48 |
same ebuild version, there's a design issue. But that seems to be what |
49 |
Gentoo does. |
50 |
|
51 |
|
52 |
-- |
53 |
gentoo-dev@g.o mailing list |