pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56028: mail/neomutt fails to build if converters/libiconv is installed.



>Number:         56028
>Category:       pkg
>Synopsis:       mail/neomutt fails to build if converters/libiconv is installed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 01 00:55:01 +0000 2021
>Originator:     Greg Oster
>Release:        NetBSD 9.1_STABLE
>Organization:
>Environment:
System: NetBSD thog 9.1_STABLE NetBSD 9.1_STABLE (GENERIC) #0: Wed Feb 17 12:02:07 CST 2021 oster@thog:/u1/builds/build337/src/obj/amd64/u1/builds/build337/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:


mail/neomutt fails to build if converters/libiconv is installed:
...
Checking for ncursesw/ncurses.h...ok
Checking for iconv() in /usr/pkg...no
Checking for iconv() in libiconv...no
Checking for iconv() in libc...no
Error: Unable to find iconv()
Try: 'configure --help' for options
*** Error code 1


Looking at config.log we find:
conftest__.c:(.text.startup+0xa): undefined reference to `libiconv_open'
ld: conftest__.c:(.text.startup+0x1e): undefined reference to `libiconv'
ld: conftest__.c:(.text.startup+0x26): undefined reference to `libiconv_close'

Compiling the test program (by hand) without "-I/usr/pkg/include" results in success,
whereas with "-I/usr/pkg/include" before "-I/usr/include" things fail. 


>How-To-Repeat:

cd /usr/pkgsrc/converters/libiconv
make install
cd /usr/pkgsrc/mail/neomutt
make install
*boom*


>Fix:

Unsure.  I don't know how to convince the build mechanism to ignore 
iconv.h from /usr/pkgsrc/include.

Usual workaround is just:

  mv /usr/pkg/include/iconv.h /usr/pkg/include/iconv.h.no
  cd /usr/pkgsrc/mail/neomutt
  make install
  mv /usr/pkg/include/iconv.h.no /usr/pkg/include/iconv.h

but that's more of an ugly hack than anything else.



Home | Main Index | Thread Index | Old Index