Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348938 - dev-libs/libedit-20100424.3.0 failed to build with #error in chartype.h
Summary: dev-libs/libedit-20100424.3.0 failed to build with #error in chartype.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2010-12-17 10:51 UTC by Naohiro Aota
Modified: 2011-05-22 03:05 UTC (History)
2 users (show)

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 Naohiro Aota gentoo-dev 2010-12-17 10:51:50 UTC
emerge libedit-20100424.3.0 fail with the following error:

gmake[3]: Entering directory `/usr/tmp/portage/dev-libs/libedit-20100424.3.0/work/libedit-20100424-3.0/src'
  CC     chared.lo
/bin/bash ../libtool --silent --tag=CC   --mode=compile i686-gentoo-freebsd8.0-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..     -O2 -pipe -march=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 -mtune=prescott -c -o chared.lo chared.c
In file included from el.h:50,
                 from chared.c:48:
chartype.h:52:3: error: #error wchar_t must store ISO 10646 characters
gmake[3]: *** [chared.lo] Error 1
gmake[3]: Leaving directory `/usr/tmp/portage/dev-libs/libedit-20100424.3.0/work/libedit-20100424-3.0/src'

I've had this problem also on DragonFly and applyed a workaround patch [1], but I don't know this is right way.

[1] https://github.com/naota/gentoo-dragonflybsd/raw/a4db6ced0545d1a18c3ba43b17f2d7bc19113fd7/portage-overlay/dev-libs/libedit/files/libedit-20100424.3.0-dragonfly.patch


Reproducible: Always
Comment 1 Naohiro Aota gentoo-dev 2011-02-05 00:56:14 UTC
I believe the above patch do the right work.

Please apply the patch (but not __DragonFly__, use __FreeBSD__)

or PLEASE mask this version! libedit is dependency required by freebsd-bin, which is gentoo/freebsd system package!
Comment 2 Dmitri Bogomolov 2011-02-05 14:21:46 UTC
(In reply to comment #1)
> I believe the above patch do the right work.
> 
> Please apply the patch (but not __DragonFly__, use __FreeBSD__)
> 
> 

I just tested this patch and it's not enough fo my fbsd-8.0:

  CC     vi.lo
/bin/bash ../libtool --silent --tag=CC   --mode=compile i686-gentoo-freebsd8.0-gcc -st
d=gnu99 -DHAVE_CONFIG_H -I. -I..     -O2 -march=i686 -mtune=i686 -pipe -c -o vi.lo vi.
c
vi.c:922:74: error: macro "__weak_reference" requires 2 arguments, but only 1 given
vi.c: In function 'get_alias_text':
vi.c:922: error: expected declaration specifiers before '__weak_reference'
vi.c:927: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vi.c:957: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vi.c:1002: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vi.c:1086: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vi.c:1136: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vi.c:922: error: parameter name omitted
vi.c:1157: error: expected '{' at end of input
Comment 3 Dmitri Bogomolov 2011-02-05 14:55:18 UTC
(In reply to comment #1)

Built successfully with your ${P}-weak-reference.patch on fbsd-8.0.

Comment 4 Naohiro Aota gentoo-dev 2011-02-07 02:25:52 UTC
(In reply to comment #3)
> (In reply to comment #1)
> 
> Built successfully with your ${P}-weak-reference.patch on fbsd-8.0.

ah yes, we need the patch too. See this page for the fix. Same bug was solved with the same patch.
http://bugs.mysql.com/bug.php?id=42817
Comment 5 Naohiro Aota gentoo-dev 2011-05-22 03:05:58 UTC
Fixed in CVS.