News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[Help Needed !!!] OpenBSD 6.7 Compile problem with codeblocks version 20.03

Started by jmsbl0, June 05, 2020, 06:48:36 PM

Previous topic - Next topic

jmsbl0

OpenBSD JameS.my.domain 6.7 GENERIC.MP#1 amd64
I am trying to compile codeblocks 20.3 with these available patches:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/codeblocks/patches/

$  export AUTOCONF_VERSION=2.69

$  export AUTOMAKE_VERSION=1.1

$  ./bootstrap

$   env CXX=eg++ ./configure CONFIGURE_STYLE=gnu CXXFLAGS=-std=c++11 CPPFLAGS="-I/usr/X11R6/include -I/usr/local/include" LDFLAGS="-L/usr/local/lib"  --with-contrib-plugins=all  --with-boost-libdir=/usr/local/lib --with-boost-system=boost_system

and I get:

error: undefined symbol: __cxa_atexit

      ../../src/base/tinyxml/libtinyxml.la  ../../src/sdk/scripting/squirrel/libsquirrel.la ../../src/sdk/scripting/sqstdlib/libsqstdlib.la -lpthread
libtool: link: eg++ -shared  -fPIC -DPIC   .libs/annoyingdialog.o .libs/autodetectcompilers.o .libs/base64.o .libs/blockallocated.o .libs/cbart_provider.o .libs/cbauibook.o .libs/cbcolourmanager.o .libs/cbdebugger_interfaces.o .libs/cbeditor.o .libs/cbeditorprintout.o .libs/cbexception.o .libs/cbplugin.o .libs/cbproject.o .libs/cbstatusbar.o .libs/cbstyledtextctrl.o .libs/cbthreadpool.o .libs/cbtreectrl.o .libs/cbworkspace.o .libs/ccmanager.o .libs/compileoptionsbase.o .libs/compiler.o .libs/compilercommandgenerator.o .libs/compilerfactory.o .libs/compileroptions.o .libs/compiletargetbase.o .libs/configmanager-revision.o .libs/configmanager.o .libs/configurationpanel.o .libs/configuretoolsdlg.o .libs/confirmreplacedlg.o .libs/crc32.o .libs/debuggermanager.o .libs/editarrayfiledlg.o .libs/editarrayorderdlg.o .libs/editarraystringdlg.o .libs/editor_hooks.o .libs/editorbase.o .libs/editorcolourset.o .libs/editorlexerloader.o .libs/editormanager.o .libs/editpairdlg.o .libs/editpathdlg.o .libs/edittooldlg.o .libs/encodingdetector.o .libs/externaldepsdlg.o .libs/filefilters.o .libs/filegroupsandmasks.o .libs/filemanager.o .libs/findreplacedlg.o .libs/genericmultilinenotesdlg.o .libs/globals.o .libs/importers_globals.o .libs/incremental_select_helper.o .libs/infowindow.o .libs/loggers.o .libs/logmanager.o .libs/macrosmanager.o .libs/manager.o .libs/menuitemsmanager.o .libs/multiselectdlg.o .libs/newfromtemplatedlg.o .libs/personalitymanager.o .libs/pipedprocess.o .libs/pluginmanager.o .libs/pluginsconfigurationdlg.o .libs/printing_types.o .libs/projectbuildtarget.o .libs/projectfile.o .libs/projectfileoptionsdlg.o .libs/projectlayoutloader.o .libs/projectloader.o .libs/projectloader_hooks.o .libs/projectmanager.o .libs/projectsfilemasksdlg.o .libs/projecttemplateloader.o .libs/scriptingmanager.o .libs/scriptsecuritywarningdlg.o .libs/scrollingdialog.o .libs/sdk_events.o .libs/searchresultslog.o .libs/selecttargetdlg.o .libs/templatemanager.o .libs/tinywxuni.o .libs/toolsmanager.o .libs/uservarmanager.o .libs/workspaceloader.o .libs/xtra_res.o mozilla_chardet/src/.libs/CharDistribution.o mozilla_chardet/src/.libs/JpCntx.o mozilla_chardet/src/.libs/LangBulgarianModel.o mozilla_chardet/src/.libs/LangCyrillicModel.o mozilla_chardet/src/.libs/LangGreekModel.o mozilla_chardet/src/.libs/LangHebrewModel.o mozilla_chardet/src/.libs/LangHungarianModel.o mozilla_chardet/src/.libs/LangThaiModel.o mozilla_chardet/src/.libs/nsBig5Prober.o mozilla_chardet/src/.libs/nsCharSetProber.o mozilla_chardet/src/.libs/nsEscCharsetProber.o mozilla_chardet/src/.libs/nsEscSM.o mozilla_chardet/src/.libs/nsEUCJPProber.o mozilla_chardet/src/.libs/nsEUCKRProber.o mozilla_chardet/src/.libs/nsEUCTWProber.o mozilla_chardet/src/.libs/nsGB2312Prober.o mozilla_chardet/src/.libs/nsHebrewProber.o mozilla_chardet/src/.libs/nsLatin1Prober.o mozilla_chardet/src/.libs/nsMBCSGroupProber.o mozilla_chardet/src/.libs/nsMBCSSM.o mozilla_chardet/src/.libs/nsSBCharSetProber.o mozilla_chardet/src/.libs/nsSBCSGroupProber.o mozilla_chardet/src/.libs/nsSJISProber.o mozilla_chardet/src/.libs/nsUniversalDetector.o mozilla_chardet/src/.libs/nsUTF8Prober.o  -Wl,--whole-archive scripting/bindings/.libs/libsqbindings.a scripting/sqplus/.libs/libsqplus.a wxscintilla/.libs/libwxscintilla.a ../../src/base/tinyxml/.libs/libtinyxml.a ../../src/sdk/scripting/squirrel/.libs/libsquirrel.a ../../src/sdk/scripting/sqstdlib/.libs/libsqstdlib.a -Wl,--no-whole-archive  -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk3u_aui-3.0 -lwx_gtk3u_propgrid-3.0 -lwx_gtk3u_richtext-3.0 -lwx_gtk3u_xrc-3.0 -lwx_gtk3u_html-3.0 -lwx_gtk3u_qa-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lgdk-3 -lgio-2.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lepoxy -lfribidi -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgraphite2 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lpixman-1 -lfontconfig -lfreetype -lz -lpng -lxcb-shm -lxcb -lxcb-render -lXrender -lX11 -lXext -lm -lexpat -lgobject-2.0 -lglib-2.0 -lintl -liconv -lpthread   -Wl,--no-undefined -pthread -Wl,-rpath-link -Wl,/usr/X11R6/lib -pthread -pthread   -pthread -o .libs/libcodeblocks.so.0.1
ld: error: undefined symbol: __cxa_atexit
>>> referenced by crtbeginS.c
>>>               /usr/lib/crtbeginS.o:(atexit)

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(AnnoyingDialog::AnnoyingDialog(wxString const&, wxString const&, wxString, AnnoyingDialog::dStyle, AnnoyingDialog::dReturnType, wxString const&, wxString const&, wxString const&))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(AnnoyingDialog::AnnoyingDialog(wxString const&, wxString const&, wxString const&, wxString, AnnoyingDialog::dStyle, AnnoyingDialog::dReturnType, wxString const&, wxString const&, wxString const&))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(AnnoyingDialog::Init(wxString const&, wxString const&, wxString const&, wxString, AnnoyingDialog::dStyle, wxString const&, wxString const&, wxString const&))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(AnnoyingDialog::OnButton(wxCommandEvent&))

ld: error: undefined symbol: __cxa_atexit
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(__static_initialization_and_destruction_0(int, int))

ld: error: undefined symbol: __cxa_atexit
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(__static_initialization_and_destruction_0(int, int))

ld: error: undefined symbol: __cxa_atexit
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(__static_initialization_and_destruction_0(int, int))

ld: error: undefined symbol: __cxa_atexit
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(__static_initialization_and_destruction_0(int, int))

ld: error: undefined symbol: __cxa_atexit
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(__static_initialization_and_destruction_0(int, int))

ld: error: undefined symbol: free
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxPrivate::UntypedBufferData::~UntypedBufferData())

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxString::ImplStr(char const*, wxMBConv const&))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxString::wxString(char const*))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxString::wxString(wchar_t const*))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxString::assign(unsigned long, wchar_t))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxString::erase(unsigned long, unsigned long))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxThreadHelperThread::Entry())

ld: error: undefined symbol: strcmp
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxTypeIdentifier::operator==(wxTypeIdentifier const&))

ld: error: undefined symbol: strcmp
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxTypeIdentifier::operator!=(wxTypeIdentifier const&))

ld: error: undefined symbol: __stack_smash_handler
>>> referenced by annoyingdialog.cpp
>>>               .libs/annoyingdialog.o:(wxObjectEventFunctor::IsMatching(wxEventFunctor const&) const)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
collect2: error: ld returned 1 exit status
*** Error 1 in src/sdk (Makefile:854 'libcodeblocks.la')
*** Error 1 in src/sdk (Makefile:1040 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_run...)
*** Error 1 in src (Makefile:568 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_...)
*** Error 1 in /home/admin/Downloads/codeblocks-20.03 (Makefile:699 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in...)




eg++ -v                                                                                                                                      (1) (*master+12528) 21:44:17
Using built-in specs.
COLLECT_GCC=eg++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd6.7/8.3.0/lto-wrapper
Target: x86_64-unknown-openbsd6.7
Configured with: /usr/obj/ports/gcc-8.3.0/gcc-8.3.0/configure --with-stage1-ldflags=-L/usr/obj/ports/gcc-8.3.0/bootstrap/lib --verbose --program-transform-name='s,^,e,' --disable-nls --with-system-zlib --disable-libmudflap --disable-libgomp --disable-libssp --disable-tls --with-gnu-ld --with-gnu-as --enable-threads=posix --enable-wchar_t --with-gmp=/usr/local --enable-languages=c,c++,fortran,objc,ada --disable-libstdcxx-pch --enable-default-ssp --enable-default-pie --without-isl --enable-cpp --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var --disable-silent-rules --disable-gtk-doc
Thread model: posix
gcc version 8.3.0 (GCC)



the same result is if I do ./configure with `env CXX=clang++`

oBFusCATed

This is strange. Are you able to compile a simple c++ and run it?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

jmsbl0

I want to compile codeblock v 20.3 from source on openbsd 64bit version 6.7

oBFusCATed

I know what you're trying to do. But these errors are highly suspicious, them mean that either your compiler is broken or something in the build script is not right. So we have to find out if the compiler works. What are the exact commands you're executing?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]