Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#47755 - Can't compile with libiconv

Attached to Project: Arch Linux
Opened by Leo (enclle) - Thursday, 14 January 2016, 22:23 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 15 January 2016, 19:37 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I can't compile a lot of packages that use libiconv, because they can't found it on the system.
I have installed it by ABS, by hand with --prefix=/usr/local and with --prefix=/usr.
if I try and it fail because of libiconv, if I do "sudo ldconfig" (to recreate the linker cache) and run again the makepkg -isr ... or make (if manually installing), sometimes it fix the problem, and if not, if it uses ./configure to configure the source, then I add --with-libiconv to the configure script command (./configure --with-libiconv ...), and it fixes the problem, but the source that don't use configure I don't know how to fix the problem.

The interesting thing is that the problem is only with Arch Linux.

PS: I'm using custom C[XX]FLAGS all the time: "-O3 -march=haswell -fomit-frame-pointer -pipe", but I has nothing to do with the flags as I have the same problem with clean flags (C[XX]FLAGS = "").
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 15 January 2016, 19:37 GMT
Reason for closing:  Not a bug
Comment by Leo (enclle) - Thursday, 14 January 2016, 22:24 GMT
Sorry, I have installed it by ABS, ... = I have installed LIBICONV by ABS, ...
Comment by Doug Newgard (Scimmia) - Friday, 15 January 2016, 06:02 GMT
Where, exactly, is this library from?
Comment by Jan de Groot (JGC) - Friday, 15 January 2016, 11:36 GMT
We don't package libiconv and it's for a reason: libiconv is only needed on systems without a native iconv() implementation. Glibc implements a native iconv() implementation, so there's no need for libiconv. Software requiring libiconv is just plain broken and should be fixed instead.

Comment by Leo (enclle) - Friday, 15 January 2016, 19:19 GMT
Doug Newgard:

Sorry, I don't know what you mean. If you are asking where it's downloaded, it's from GNU site.

Jan de Groot:

??? But the question is that the same program compiles ok in Ubuntu, but not in Arch Linux.

They ask for libiconv only in Arch Linux.

I only installed programs either using pacman or ABS, so some package compiles and install libiconv, because when I got the errors, I verified where it was in the system (/usr/local/lib) and reinstalled it, changing the place of install hoping this was the problem.

So some package from either the compiled repository or the ABS recipes installs libiconv in the process of installing itself, maybe has it as a dependency.
Comment by Doug Newgard (Scimmia) - Friday, 15 January 2016, 19:37 GMT
Nothing goes to /usr/local when packaged. This is something you've done outside the package manager, not a bug in Arch.

Loading...