Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20730 - Does 9libs break other software?
Summary: Does 9libs break other software?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-09 21:38 UTC by Howard B. Golden
Modified: 2005-09-25 03:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Howard B. Golden 2003-05-09 21:38:10 UTC
9libs is the Linux code to emulate Plan9. As currently built by the 9libs
ebuild, it creates some Plan9 C headers in /usr/include. (Under the non-Gentoo
default, these includes would go into /usr/local/include.) The files are libc.h,
libg.h, frame.h, regexp.h, and u.h.

Should the C headers go into /usr/include/plan9 instead of /usr/include? If so,
its seems to me that the 9libs-1.0/include/Makefile.am should have a different
definition for execincludedir.

I wonder if any of these files collide with standard C headers. I suspect they
do, based on bug #17723 and bug #18470. At the very least, something in 9libs
seems to be causing problems with libwww and mod_php. That is, if the problem
isn't the C headers, then maybe it's something else that ebuilding 9libs causes.

I hope this description is sufficient to determine if there is a problem with
9libs. At this time, I don't understand enough about autoconf, automake, etc. to
diagnose the problem myself. (But I'm learning!)
Comment 1 SpanKY gentoo-dev 2003-06-09 19:34:50 UTC
yes, it should go into /usr/include/plan9 since it clobbers files in /usr/include/
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-04-05 06:57:09 UTC
yes, it broke vim, which I fixed in vim.
but now I've noticed it also breaks sane-backends.
Comment 3 Sigurd Schneider 2004-11-13 08:00:40 UTC
Applies to versions:
dev-libs/9libs-1.0
media-gfx/sane-backends-1.0.14-r6

libc.h of 9libs is broken. Running gcc main.c -I/usr/lib/9libs/include with
>>>
#include <libc.h>
int main() { return 0; }
<<<
bails out with:
/usr/include/libc.h:33: error: `Rune' has not been declared

<libc.h> is missing #include directive for <u.h> which declares `Rune'.

This patch for libc.h solves the problem with 9libs.
>>>
--- libc.h      2004-11-13 16:41:47.567491200 +0100
+++ libc.h      2004-11-13 16:42:08.556300416 +0100
@@ -2,6 +2,8 @@

        /* Plan 9 C library interface */

+#include <u.h>
+
 #define        dup(a,b)                        dup2(a,b)
 #define        seek(a,b,c)                     lseek(a,b,c)
 #define        create(name, mode, perm)        creat(name, perm)
<<<

Also sane-backends will compile cleanly then; their error was:
In file included from fujitsu.c:173:
/usr/include/libc.h:33: error: parse error before "Rune"

Hope that helps. If this is the wrong bugzilla for this bug then pease excuse me.

Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 11:18:00 UTC
No idea if this is still an issue, reassigning.
Comment 5 SpanKY gentoo-dev 2005-09-25 03:17:45 UTC
should be all set now