Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213769 - app-portage/eix-0.12.1 doesn't compile in prefixed OS X: uint is not declared
Summary: app-portage/eix-0.12.1 doesn't compile in prefixed OS X: uint is not declared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High major (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 02:31 UTC by Michał Bartoszkiewicz
Modified: 2008-03-26 18:24 UTC (History)
0 users

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


Attachments
patch adding #include <sys/types.h> (eix-0.12.1-uint.patch,632 bytes, patch)
2008-03-24 23:41 UTC, Michał Bartoszkiewicz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Bartoszkiewicz 2008-03-18 02:31:56 UTC
make fails with:
depbase=`echo diff-eix.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	i686-apple-darwin9-g++ -DHAVE_CONFIG_H -I. -I..     -O2 -pipe -march=nocona -MT diff-eix.o -MD -MP -MF $depbase.Tpo -c -o diff-eix.o diff-eix.cc &&\
	mv -f $depbase.Tpo $depbase.Po
diff-eix.cc: In function 'void load_db(const char*, DBHeader*, PackageTree*)':
diff-eix.cc:130: error: 'uint' was not declared in this scope
diff-eix.cc: In function 'int run_diff_eix(int, char**)':
diff-eix.cc:409: error: 'uint' was not declared in this scope
make[2]: *** [diff-eix.o] Error 1
make[2]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/app-portage/eix-0.12.1/work/eix-0.12.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/app-portage/eix-0.12.1/work/eix-0.12.1'
make: *** [all] Error 2
Comment 1 Fabian Groffen gentoo-dev 2008-03-21 19:11:58 UTC
weird, I just compiled this without any problem....
Comment 2 Michał Bartoszkiewicz 2008-03-21 19:28:57 UTC
(In reply to comment #1)
> weird, I just compiled this without any problem....

It doesn't work for me (I'm using Mac OS X 10.5.2).

uint seems to be defined in sys/types.h and diff-eix.cc doesn't include it explicitly. Maybe some other header file includes it on your system, but not on mine?
Comment 3 Fabian Groffen gentoo-dev 2008-03-21 19:32:05 UTC
ohw, I should say that on Tiger (10.4.11) it does work.  So I should test/fix on Leopard...
Comment 4 Michał Bartoszkiewicz 2008-03-24 23:41:36 UTC
Created attachment 147190 [details, diff]
patch adding #include <sys/types.h>

This patch makes eix compile for me (on Leopard).
Comment 5 Michał Bartoszkiewicz 2008-03-24 23:54:42 UTC
eix-0.12.2 works (it no longer uses uint) and references this bug in the ChangeLog.
Comment 6 Fabian Groffen gentoo-dev 2008-03-26 18:24:04 UTC
in the tree, fixzed.  Thanks.