Bug 255532 - mail/evolution: 'make configure' fails - iconv detection failing - non-default LOCALBASE
Summary: mail/evolution: 'make configure' fails - iconv detection failing - non-defaul...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-01 17:27 UTC by John Hein
Modified: 2021-05-03 21:38 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
[patch] fix build for non-default LOCALBASE (1.03 KB, patch)
2021-05-03 21:35 UTC, John Hein
jcfyecrayz: maintainer-approval? (gnome)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Hein 2021-05-01 17:27:39 UTC
'make configure' fails in poudriere (noticed on 11-stable/amd64) for mail/evolution:

=====================
-- Checking for modules 'gnome-autoar-0>=0.1.1;gnome-autoar-gtk-0>=0.1.1'
--   Found gnome-autoar-0, version 0.3.0
--   Found gnome-autoar-gtk-0, version 0.3.0
-- Performing Test HAVE_LIBICONV
-- Performing Test HAVE_LIBICONV - Failed
-- Looking for iconv
-- Looking for iconv - found
-- Performing Test _correct_iconv
-- Performing Test _correct_iconv - Failed
CMake Error at CMakeLists.txt:381 (message):
  You need to install a working iconv implementation, such as
  ftp://ftp.gnu.org/pub/gnu/libiconv


-- Configuring incomplete, errors occurred!
See also "/wrkdirs/usr/ports/mail/evolution/work/.build/CMakeFiles/CMakeOutput.log".
See also "/wrkdirs/usr/ports/mail/evolution/work/.build/CMakeFiles/CMakeError.log".
*** Error code 1
=====================



From CMakeOutput.log ...

=======================
 .
 .

Determining if the function iconv exists passed with the following output:
Change Dir: /wrkdirs/usr/ports/mail/evolution/work/.build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/loc/bin/ninja cmTC_946aa && [1/2] Building C object CMakeFiles/cmTC_946aa.dir/CheckFunctionExists.c.o
cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
[2/2] Linking C executable cmTC_946aa

=======================


From CMakeError.log ...

=======================
Performing C SOURCE FILE Test HAVE_LIBICONV failed with the following output:
Change Dir: /wrkdirs/usr/ports/mail/evolution/work/.build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/loc/bin/ninja cmTC_fb354 && [1/2] Building C object CMakeFiles/cmTC_fb354.dir/src.c.o
cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
[2/2] Linking C executable cmTC_fb354
FAILED: cmTC_fb354
: && /usr/bin/cc -Wno-format-nonliteral -Wno-parentheses-equality -Wnested-externs -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wno-deprecated-declarations -fno-strict-aliasing -Wwrite-strings -Wundef -Wredundant-decls -Wpointer-arith -Wmissing-noreturn -Wmissing-declarations -Winit-self -Wformat-security -Wformat -O2 -pipe  -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/loc/include -fno-strict-aliasing -L/usr/local/lib  CMakeFiles/cmTC_fb354.dir/src.c.o -o cmTC_fb354  -liconv && :
/usr/bin/ld: cannot find -liconv
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


Source file was:
#include <iconv.h>
                        #include <stdlib.h>
                        int main(void) { iconv_t cd; cd = iconv_open ("UTF-8", "ISO-8859-1"); return 0; }
Performing C SOURCE FILE Test _correct_iconv failed with the following compile output:
Change Dir: /wrkdirs/usr/ports/mail/evolution/work/.build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/loc/bin/ninja cmTC_661e4 && [1/2] Building C object CMakeFiles/cmTC_661e4.dir/src.c.o
cc: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
[2/2] Linking C executable cmTC_661e4
FAILED: cmTC_661e4
: && /usr/bin/cc -Wno-format-nonliteral -Wno-parentheses-equality -Wnested-externs -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wno-deprecated-declarations -fno-strict-aliasing -Wwrite-strings -Wundef -Wredundant-decls -Wpointer-arith -Wmissing-noreturn -Wmissing-declarations -Winit-self -Wformat-security -Wformat -O2 -pipe  -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/loc/include -fno-strict-aliasing -L/usr/local/lib  CMakeFiles/cmTC_661e4.dir/src.c.o -o cmTC_661e4   && :
CMakeFiles/cmTC_661e4.dir/src.c.o: In function `main':
src.c:(.text+0x5e): undefined reference to `libiconv_open'
src.c:(.text+0x83): undefined reference to `libiconv'
src.c:(.text+0xb9): undefined reference to `libiconv_close'
src.c:(.text+0x112): undefined reference to `libiconv_open'
src.c:(.text+0x127): undefined reference to `libiconv_close'
src.c:(.text+0x166): undefined reference to `libiconv_open'
src.c:(.text+0x186): undefined reference to `libiconv_open'
src.c:(.text+0x1a9): undefined reference to `libiconv_open'
src.c:(.text+0x1cc): undefined reference to `libiconv_open'
src.c:(.text+0x1ef): undefined reference to `libiconv_open'
src.c:(.text+0x206): undefined reference to `libiconv_close'
src.c:(.text+0x258): undefined reference to `libiconv_open'
src.c:(.text+0x271): undefined reference to `libiconv_open'
src.c:(.text+0x297): undefined reference to `libiconv_open'
src.c:(.text+0x2ae): undefined reference to `libiconv_close'
src.c:(.text+0x300): undefined reference to `libiconv_open'
src.c:(.text+0x320): undefined reference to `libiconv_open'
src.c:(.text+0x340): undefined reference to `libiconv_open'
src.c:(.text+0x35c): undefined reference to `libiconv_open'
src.c:(.text+0x378): undefined reference to `libiconv_open'
CMakeFiles/cmTC_661e4.dir/src.c.o:src.c:(.text+0x394): more undefined references to `libiconv_open' follow
CMakeFiles/cmTC_661e4.dir/src.c.o: In function `main':
src.c:(.text+0x3c2): undefined reference to `libiconv_close'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


...and run output:

Return value: 1
Source file was:
#define ICONV_DETECT_BUILD_DIR "/wrkdirs/usr/ports/mail/evolution/work/.build/"
                     #include "/wrkdirs/usr/ports/mail/evolution/work/evolution-3.38.4/iconv-detect.c"
=======================
Comment 1 John Hein 2021-05-03 21:35:16 UTC
Created attachment 224649 [details]
[patch] fix build for non-default LOCALBASE

That build was for evolution 3.38.4
I updated the ports tree, and 3.40.0 has the same issue.

But this jail was set up for non-default LOCALBASE (/opt).  I had forgotten that important piece of information.  After I remembered that, the fix came easily enough.  See patch.