Bug 252799 - editors/poedit: linker error
Summary: editors/poedit: linker error
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-18 10:03 UTC by Sergey V. Koupreyenko
Modified: 2021-02-17 15:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey V. Koupreyenko 2021-01-18 10:03:39 UTC
Can't build the port with poudriere jail, both amd64 and i386 architecure.

make.conf:

WITH_PKGNG=             yes
NO_PORTSUPDATE=         yes
NO_IGNORE=              yes

LICENSES_ACCEPTED=      GPLv2+ MSPAT

DEFAULT_VERSIONS+=      apache=2.4
DEFAULT_VERSIONS+=      bdb=5
DEFAULT_VERSIONS+=      gcc=9
DEFAULT_VERSIONS+=      java=14
DEFAULT_VERSIONS+=      linux=c7
#DEFAULT_VERSIONS+=     llvm=90
DEFAULT_VERSIONS+=      mysql=5.7
DEFAULT_VERSIONS+=      perl5=5.32
DEFAULT_VERSIONS+=      pgsql=12
DEFAULT_VERSIONS+=      php=7.4
DEFAULT_VERSIONS+=      python=3.8
DEFAULT_VERSIONS+=      python2=2.7
DEFAULT_VERSIONS+=      python3=3.8
DEFAULT_VERSIONS+=      ruby=2.7
DEFAULT_VERSIONS+=      samba=4.13
DEFAULT_VERSIONS+=      ssl=base

poudriere report:

=>> Building editors/poedit
build started at Sun Jan 17 13:15:14 MSK 2021
port directory: /usr/ports/editors/poedit
package name: poedit-1.8.4_33
building for: FreeBSD freebsd.fractel.priv 12.2-STABLE FreeBSD 12.2-STABLE 1202504 i386
maintained by: rodrigo@FreeBSD.org
Makefile ident:      $FreeBSD: head/editors/poedit/Makefile 553940 2020-11-03 00:56:26Z jbeich $
Poudriere version: 3.3.99.20200326_2
Host OSVERSION: 1202504
Jail OSVERSION: 1202504
Job Id: 03

---Begin Environment---
SHELL=/bin/csh
UNAME_p=i386
UNAME_m=i386
OSVERSION=1202504
UNAME_v=FreeBSD 12.2-STABLE 1202504
UNAME_r=12.2-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20200326_2
MAKEOBJDIRPREFIX=/freebsd/obj/i386
MASTERMNT=/freebsd/poudriere/data/.m/FreeBSD-12-stable-i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
GID=0
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
UID=0
PWD=/freebsd/poudriere/data/.m/FreeBSD-12-stable-i386-default/ref/.p/pool
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=FreeBSD-12-stable-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/freebsd/poudriere/data/.m/FreeBSD-12-stable-i386-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for poedit-1.8.4_33:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
rodrigo@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--enable-nls --with-wx-config=/usr/local/bin/wxgtk3u-3.0-config --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
WXRC="/usr/local/bin/wxrc-gtk3u-3.0" MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/editors/poedit/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/editors/poedit/work  HOME=/wrkdirs/usr/ports/editors/poedit/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/editors/poedit/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh WX_CONFIG=/usr/local/bin/wxgtk3u-3.0-config LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/editors/poedit/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/editors/poedit/work  HOME=/wrkdirs/usr/ports/editors/poedit/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/editors/poedit/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES WX_CONFIG=/usr/local/bin/wxgtk3u-3.0-config LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-I/usr/local/include/db5 -I/usr/local/include"  LDFLAGS=" -lpthread -L/usr/local/lib/db5 -L/usr/local/lib -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
 NLS="" NO_NLS="@comment " GTK2_VERSION="2.10.0"  GTK3_VERSION="3.0.0" OSREL=12.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/poedit"  EXAMPLESDIR="share/examples/poedit"  DATADIR="share/poedit"  WWWDIR="www/poedit"  ETCDIR="etc/poedit"
--End PLIST_SUB--

--SUB_LIST--
 NLS="" NO_NLS="@comment " PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/poedit DOCSDIR=/usr/local/share/doc/poedit EXAMPLESDIR=/usr/local/share/examples/poedit  WWWDIR=/usr/local/www/poedit ETCDIR=/usr/local/etc/poedit
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
#### /usr/local/etc/poudriere.d/FreeBSD-12-stable-i386-make.conf ####
KERNCONF=		BUILDER
WITH_PKGNG=		yes
WITHOUT_SWITCHER=	yes
NO_PORTSUPDATE=		yes

NO_CHECKSUM=		yes
NO_IGNORE=		yes

LICENSES_ACCEPTED=	GPLv2+ MSPAT

DEFAULT_VERSIONS+=      apache=2.4
DEFAULT_VERSIONS+=      bdb=5
DEFAULT_VERSIONS+=      gcc=9
DEFAULT_VERSIONS+=      java=14
DEFAULT_VERSIONS+=      linux=c7
#DEFAULT_VERSIONS+=      llvm=90
DEFAULT_VERSIONS+=      mysql=5.7
DEFAULT_VERSIONS+=      perl5=5.32
DEFAULT_VERSIONS+=      pgsql=12
DEFAULT_VERSIONS+=      php=7.4
DEFAULT_VERSIONS+=      python=3.8
DEFAULT_VERSIONS+=      python3=3.8
DEFAULT_VERSIONS+=      ruby=2.7
DEFAULT_VERSIONS+=      samba=4.13
DEFAULT_VERSIONS+=      ssl=base

...

ld: error: undefined symbol: Lucene::AttributeSource::getAttribute(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&)
>>> referenced by transmem.cpp
>>>               tm/transmem.o:(boost::shared_ptr<Lucene::TermAttribute> Lucene::AttributeSource::getAttribute<Lucene::TermAttribute>())

ld: error: undefined symbol: typeinfo for Lucene::TermAttribute
>>> referenced by transmem.cpp
>>>               tm/transmem.o:(boost::shared_ptr<Lucene::TermAttribute> Lucene::AttributeSource::getAttribute<Lucene::TermAttribute>())

ld: error: undefined symbol: typeinfo for Lucene::Attribute
>>> referenced by transmem.cpp
>>>               tm/transmem.o:(boost::shared_ptr<Lucene::TermAttribute> Lucene::AttributeSource::getAttribute<Lucene::TermAttribute>())

ld: error: undefined symbol: Lucene::LuceneException::LuceneException(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, Lucene::LuceneException::ExceptionType)
>>> referenced by transmem.cpp
>>>               tm/transmem.o:(boost::shared_ptr<Lucene::TermAttribute> Lucene::AttributeSource::getAttribute<Lucene::TermAttribute>())

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:507: poedit] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/editors/poedit/work/poedit-1.8.4/src'
gmake[1]: *** [Makefile:351: all-recursive] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/editors/poedit/work/poedit-1.8.4'
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/poedit
=>> Cleaning up wrkdir
===>  Cleaning for poedit-1.8.4_33
build of editors/poedit | poedit-1.8.4_33 ended at Sun Jan 17 13:23:19 MSK 2021
build time: 00:08:06
!!! build failure encountered !!!
Comment 1 Rodrigo Osorio freebsd_committer 2021-02-08 07:01:19 UTC
After multiples attempts, the issue seems to be caused by the latest lucene++ upgrade, including for latest poedit version.
Need to figure out how to fix that.
Comment 2 Rodrigo Osorio freebsd_committer 2021-02-17 15:56:51 UTC
I identify the commit[1] who start this mess in lucene++, and open two issues on poedit and lucene++ projects.


https://github.com/luceneplusplus/LucenePlusPlus/issues/165

https://github.com/vslavik/poedit/issues/684


[1] https://github.com/luceneplusplus/LucenePlusPlus/commit/9fe7860465c765be8ebaaeef8c4ec5fe2252a65d