Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549664 - >=dev-qt/qtcore-4.8.6-r2 does not build on sys-libs/uclibc and GNU libiconv
Summary: >=dev-qt/qtcore-4.8.6-r2 does not build on sys-libs/uclibc and GNU libiconv
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: REGRESSION
: 553986 (view as bug list)
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2015-05-16 18:26 UTC by René Rhéaume
Modified: 2018-08-20 16:14 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,5.94 KB, text/plain)
2015-05-16 18:27 UTC, René Rhéaume
Details
build.log from emerge (build.log,452.03 KB, text/plain)
2015-05-16 18:27 UTC, René Rhéaume
Details
qtcore-4.8.6-uclibc.patch (qtcore-4.8.6-uclibc.patch,1.56 KB, patch)
2015-05-25 11:19 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2015-05-16 18:26:51 UTC
Qt 4.8.6 does not currently build on uclibc, while 4.8.5 works (I use some programs using it). It fails to detect libiconv.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =dev-qt/qtcore-4.8.6-r2

Actual Results:  
 * ERROR: dev-qt/qtcore-4.8.6-r2::gentoo failed (configure phase):
 *   configure failed


Expected Results:  
Qt 4.8.6 installed on system
Comment 1 René Rhéaume 2015-05-16 18:27:12 UTC
Created attachment 403422 [details]
emerge --info output
Comment 2 René Rhéaume 2015-05-16 18:27:54 UTC
Created attachment 403424 [details]
build.log from emerge
Comment 3 René Rhéaume 2015-05-25 11:19:32 UTC
Created attachment 403924 [details, diff]
qtcore-4.8.6-uclibc.patch

I had to apply this patch to be able to build Qt. But why would the libiconv iconv function prototype change between uclibc and other libcs?
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2015-05-28 10:10:27 UTC
The "POSIX iconv auto-detection" test should succeed but it fails to link due to a missing -liconv. This is consistent with a recent eclass change.
Do you have dev-libs/libiconv installed?
Comment 5 René Rhéaume 2015-05-31 11:02:35 UTC
(In reply to Davide Pesavento from comment #4)
> Do you have dev-libs/libiconv installed?

Yes, I do have libiconv installed

% emerge --search libiconv

[ Results for search key : libiconv ]
Searching...

*  dev-libs/libiconv
      Latest version available: 1.14-r1
      Latest version installed: 1.14-r1
      Size of files: 4868 KiB
      Homepage:      http://www.gnu.org/software/libiconv/
      Description:   GNU charset conversion library for libc which doesn't implement it
      License:       GPL-3

*  virtual/libiconv
      Latest version available: 0-r2
      Latest version installed: 0-r2
      Size of files: 0 KiB
      Homepage:
      Description:   Virtual for the GNU conversion library
      License:

[ Applications found : 2 ]
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2015-07-05 16:46:28 UTC
*** Bug 553986 has been marked as a duplicate of this bug. ***
Comment 7 David Flogeras 2015-07-05 19:28:06 UTC
The attached patch worked for me on Arm/uClibc as well.

pesa, I don't think this one is the usual missing -liconv type bug, it seems to be a const correctness issue with the libiconv header (vs the normal glibc provided one) which the patch works around.
Comment 8 Anthony Basile gentoo-dev 2016-03-01 11:30:10 UTC
(In reply to David Flogeras from comment #7)
> The attached patch worked for me on Arm/uClibc as well.
> 
> pesa, I don't think this one is the usual missing -liconv type bug, it seems
> to be a const correctness issue with the libiconv header (vs the normal
> glibc provided one) which the patch works around.

I'm having success with 4.8.6-r2 provided I feed it LDFLAGS=-liconv via /etc/portage/package.env.  It made it through my tinderbox run and produced a package: http://lilblue.freeharbor.net/dev-qt/qtcore-4.8.6-r2.tbz2

(In reply to David Flogeras from comment #7)
> The attached patch worked for me on Arm/uClibc as well.
> 
> pesa, I don't think this one is the usual missing -liconv type bug, it seems
> to be a const correctness issue with the libiconv header (vs the normal
> glibc provided one) which the patch works around.

The build log in comment #2 suggests just a missing -liconv.  The patch in comment #3 seems to be an issue of inconsistent const declaration.

@Rene.  Can you check what's going on here. I'm not seing a problem and thinking of closing this NEED INFO.
Comment 9 René Rhéaume 2017-01-28 22:48:50 UTC
(In reply to Anthony Basile from comment #8)
> The build log in comment #2 suggests just a missing -liconv.  The patch in
> comment #3 seems to be an issue of inconsistent const declaration.
> 
> @Rene.  Can you check what's going on here. I'm not seing a problem and
> thinking of closing this NEED INFO.

I looked again at the log I attached to this bug and I see the same failures in iconv tests during the configure phase as with Qt 5 I filed in bug #587062. This is not a missing iconv problem, but an inconsistent const declaration problem. 

We got confused because -liconv used to be forced into qt eclass under uclibc(-ng), so even when the tests failed, Qt was linked to libiconv anyway.
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2018-08-20 16:14:27 UTC
Qt4 is gone.