Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481104 - net-misc/curl-7.3{0,1}.0 - configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/i686-pc-mingw32/usr/include/
Summary: net-misc/curl-7.3{0,1}.0 - configure: CFLAGS error: CFLAGS may only be used t...
Status: RESOLVED DUPLICATE of bug 364003
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 22:38 UTC by Luke-Jr
Modified: 2014-10-26 03:22 UTC (History)
2 users (show)

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


Attachments
net-dns/c-ares-1.10.0-r1 build.log (build.log,5.26 KB, text/plain)
2014-10-25 21:44 UTC, Luke-Jr
Details
emerge --info (emerge--info,20.61 KB, text/plain)
2014-10-25 21:44 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2013-08-14 22:38:16 UTC
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/i686-pc-mingw32/usr/include/
Comment 1 Luke-Jr 2013-08-14 22:41:44 UTC
And it seems 7.28.1, the last working version, has been removed from the tree...
(7.29.0 has a bad memory leak that seems unpatched in -r1)
Comment 2 Anthony Basile gentoo-dev 2013-08-15 18:17:43 UTC
(In reply to Luke-Jr from comment #1)
> And it seems 7.28.1, the last working version, has been removed from the
> tree...
> (7.29.0 has a bad memory leak that seems unpatched in -r1)

I can put 7.28.1 back on.  But is this a problem also in 7.32.0.  I can test myself but since you didn't put it in the summary I'm wondering if its already fixed.
Comment 3 Luke-Jr 2013-08-16 05:56:31 UTC
(In reply to Anthony Basile from comment #2)
> (In reply to Luke-Jr from comment #1)
> > And it seems 7.28.1, the last working version, has been removed from the
> > tree...
> > (7.29.0 has a bad memory leak that seems unpatched in -r1)
> 
> I can put 7.28.1 back on.  But is this a problem also in 7.32.0.  I can test
> myself but since you didn't put it in the summary I'm wondering if its
> already fixed.

7.32.0 wasn't in my local rsync of the portage tree at the time.
I presume it's still affected, as this is IMO a bug in crossdev, not curl.
That is, include paths *do* belong in CPPFLAGS ordinarily.
Comment 4 Anthony Basile gentoo-dev 2013-12-18 15:49:37 UTC
(In reply to Luke-Jr from comment #3)
> (In reply to Anthony Basile from comment #2)
> > (In reply to Luke-Jr from comment #1)
> > > And it seems 7.28.1, the last working version, has been removed from the
> > > tree...
> > > (7.29.0 has a bad memory leak that seems unpatched in -r1)
> > 
> > I can put 7.28.1 back on.  But is this a problem also in 7.32.0.  I can test
> > myself but since you didn't put it in the summary I'm wondering if its
> > already fixed.
> 
> 7.32.0 wasn't in my local rsync of the portage tree at the time.
> I presume it's still affected, as this is IMO a bug in crossdev, not curl.
> That is, include paths *do* belong in CPPFLAGS ordinarily.

Luke-jr, what are we doing with this bug.  Should we reassign to crossdev?
Comment 5 Luke-Jr 2013-12-18 15:52:34 UTC
Probably. Even if libcurl has a workaround (unknown), crossdev should be using CPPFLAGS for this.
Comment 6 SpanKY gentoo-dev 2013-12-21 22:01:43 UTC
no actual logs anywhere here.  you know you must post `emerge --info` and a full build log with every report as attachments.
Comment 7 Luke-Jr 2014-10-25 21:44:16 UTC
Created attachment 387352 [details]
net-dns/c-ares-1.10.0-r1 build.log

This now affects c-ares.
Comment 8 Luke-Jr 2014-10-25 21:44:36 UTC
Created attachment 387354 [details]
emerge --info
Comment 9 SpanKY gentoo-dev 2014-10-26 02:51:12 UTC
post config.log and `emerge --debug` output.  crossdev doesn't insert any -I flags like this by design -- doing so is broken.
Comment 10 Luke-Jr 2014-10-26 02:54:57 UTC
(In reply to SpanKY from comment #9)
> post config.log and `emerge --debug` output.  crossdev doesn't insert any -I
> flags like this by design -- doing so is broken.

My /usr/x86_64-w64-mingw32/etc/portage/make.conf has the line:
CFLAGS="-Os -pipe ${MARCH_TUNE} -fomit-frame-pointer -I${ROOT}usr/include/ -I${ROOT}include/"

I guess maybe crossdev has changed since then? Any way to update existing environments?
Comment 11 SpanKY gentoo-dev 2014-10-26 03:22:12 UTC
(In reply to Luke-Jr from comment #10)

http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=af354f0cb593a818d203580e94d098ab3c0657e9

this was fixed over 2 years ago

crossdev won't rewrite config files it has already installed.  no plans to change that behavior.

*** This bug has been marked as a duplicate of bug 364003 ***