Bug 215927 - databases/akonadi: undefined reference to `__stack_chk_fail_local'
Summary: databases/akonadi: undefined reference to `__stack_chk_fail_local'
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-10 09:36 UTC by Arrigo Marchiori
Modified: 2017-01-10 12:35 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arrigo Marchiori 2017-01-10 09:36:46 UTC
I cannot build databases/akonadi on my 9-STABLE system.

[  8%] Linking CXX executable ../bin/akonadi_agent_server
cd /usr/ports/databases/akonadi/work/.build/agentserver && /usr/local/bin/cmake-E cmake_link_script CMakeFiles/akonadi_agent_server.dir/link.txt --verbose=1
/usr/bin/clang++   -O2 -fno-strict-aliasing -pipe -march=athlon-mp -fstack-protector -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall-Wextra -Wpointer-arith -Wformat-security -fno-common -fexceptions -O2 -fno-strict-aliasing -pipe -march=athlon-mp -fstack-protector   -fstack-protector CMakeFiles/akonadi_agent_server.dir/agentpluginloader.cpp.o CMakeFiles/akonadi_agent_server.dir/agentserver.cpp.o CMakeFiles/akonadi_agent_server.dir/agentthread.cpp.o CMakeFiles/akonadi_agent_server.dir/main.cpp.o CMakeFiles/akonadi_agent_server.dir/akonadi_agent_server_automoc.cpp.o  -o ../bin/akonadi_agent_server -Wl,-rpath,/usr/local/lib/qt4:/usr/ports/databases/akonadi/work/.build/lib:/usr/local/lib:  ../lib/libakonadi_shared.a /usr/local/lib/qt4/libQtGui.so /usr/local/lib/qt4/libQtDBus.so /usr/local/lib/libexecinfo.so /usr/local/lib/qt4/libQtCore.so /usr/local/lib/qt4/libQtDBus.so ../lib/libakonadiprotocolinternals.so.1.13.0 /usr/local/lib/libboost_program_options.so /usr/local/lib/qt4/libQtDBus.so /usr/local/lib/qt4/libQtCore.so
/usr/local/lib/libboost_program_options.so: undefined reference to `__stack_chk_fail_local'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [bin/akonadi_agent_server] Error code 1

[...]

Other information about my system:

# uname -a
FreeBSD myhost 9.3-STABLE FreeBSD 9.3-STABLE #180 r311768M: Mon Jan  9 14:18:16 CET 2017     root@myhost:/usr/obj/usr/src/sys/GENERIC  i386

# svn info /usr/ports | grep Revision
Revision: 431071

# pkg info | grep boost
boost-jam-1.63.0               Build tool from the boost.org
boost-libs-1.63.0_1            Free portable C++ libraries (without Boost.Python)

# cat /etc/make.conf
WITH_PKGNG=yes
CPUTYPE?=athlon64
CFLAGS= -O2 -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe
BOOTWAIT=2000
SVN_UPDATE=yes
DOC_LANG=       en_US.ISO8859-1
LOCALIZED_LANG=it
WITH_WIDE_CHARS=yes
QT4_OPTIONS= CUPS
WITH_GALLIUM=yes
PORTS_MODULES=emulators/virtualbox-ose-kmod
DEFAULT_VERSIONS+=linux=c6
DEFAULT_VERSIONS+=ssl=openssl
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2017-01-10 11:52:33 UTC
Hi there

You should move to a supported version of FreeBSD [1]


mfg Tobias


[1] https://lists.freebsd.org/pipermail/freebsd-announce/2017-January/001779.html
Comment 2 Arrigo Marchiori 2017-01-10 12:19:30 UTC
Whoops... you are right... I totally forgot about the EOL.

New Year's resolution: upgrade my system!

I apologize for the noise. I leave to you the decision about how to close this bug.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2017-01-10 12:35:12 UTC
According to ports r327697 GCC + i386 is broken with -fstack-protector, so requires a workaround which was removed in ports r430441. If you don't have time to upgrade atm try staying on RELEASE_9_EOL tag (aka ports r430140).

The build doesn't fail early because maintaining such a conditional still requires extra effort. The rationale is lost in the following thread:
https://lists.freebsd.org/pipermail/freebsd-ports/2014-June/092980.html