Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367527 - app-editors/xemacs-21.5.31: build error due to conflicting sys-libs/db versions
Summary: app-editors/xemacs-21.5.31: build error due to conflicting sys-libs/db versions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 13:26 UTC by Martin von Gagern
Modified: 2011-05-16 17:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (app-editors:xemacs-21.5.31:20110516-094622.log,58.83 KB, text/x-log)
2011-05-16 13:26 UTC, Martin von Gagern
Details
emerge --info (app-editors:xemacs-21.5.31.emerge--info,6.64 KB, text/plain)
2011-05-16 13:27 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-05-16 13:26:18 UTC
Created attachment 273427 [details]
build log

xemacs fails to build for me, starting here:

In file included from /usr/include/ndbm.h:42:0,
                 from database.c:87:
/usr/include/db1/db.h:77:3: error: conflicting types for ‘DBT’
/usr/include/db.h:142:42: note: previous declaration of ‘DBT’ was here

The mentioned files belong to these packages:
/usr/include/ndbm.h:     sys-libs/db-1.85-r3
/usr/include/db1/db.h:   sys-libs/db-1.85-r3
/usr/include/db.h:       orphaned, symlink to db4.8/db.h
/usr/include/db4.8/db.h: sys-libs/db-4.8.30

The /usr/include/db.h header was included here:
71: #include DB_H_FILE              /* Berkeley db's header file */
Whereas the ndbm.h file which lead to db1/db.h was here:
87: #  include NDBM_H_FILE
Comment 1 Martin von Gagern 2011-05-16 13:27:31 UTC
Created attachment 273431 [details]
emerge --info
Comment 2 Martin von Gagern 2011-05-16 13:31:44 UTC
(In reply to comment #1)
> Created attachment 273431 [details]
> emerge --info

Looking at the emerge -pqv output, I see that portage would have unmerged sys-libs/db-1.85-r3, as there already is a blocker. So probably the only thing you'll have to do is make that blocker a strong compile-time blocker, i.e. !! instead of !.
Comment 3 Hans de Graaff gentoo-dev Security 2011-05-16 17:13:05 UTC
(In reply to comment #2)

> Looking at the emerge -pqv output, I see that portage would have unmerged
> sys-libs/db-1.85-r3, as there already is a blocker. So probably the only thing
> you'll have to do is make that blocker a strong compile-time blocker, i.e. !!
> instead of !.

Yes, that was the intention all along. Thanks for catching and reporting it.