EnvironmentSetup/OpenBSD/FixedBuildIssues

Back to EnvironmentSetup/OpenBSD



Here, we'll provide the logs and solutions about the build issues we met on OpenBSD

configure and patch


configure
 i have downloaded the source, after an autoconf (configure is here): ./configure - We'll use TO_BUILD=_OOo4Kids After the awk operation SOURCEVERSION=O4K110 checking build system type... i386-unknown-openbsd4.8 checking host system type... i386-unknown-openbsd4.8 checking target system type... i386-unknown-openbsd4.8 configure: error: operating system is not suitable to build OpenOffice.org! 

patches
 in order to avoid the same problem as last time, here is the patch i applied: Succeeded : - patch-external_gcc3_specific_makefile_mk.diff                  patch-solenv_bin_modules_installer_globals_pm.diff patch-set_soenv_in.diff (Hunk fuzz 2)                          patch-solenv_bin_modules_installer_packagepool_pm.diff patch-solenv_bin_mapgen_pl.diff                                patch-solenv_bin_modules_installer_parameter_pm.diff patch-solenv_bin_modules_installer_download_pm.diff            patch-solenv_bin_modules_installer_regmerge_pm.diff patch-solenv_config_ssolar_cmn.diff                            patch-solenv_bin_modules_installer_worker_pm.diff patch-solenv_inc_libs_mk.diff                                  patch-solenv_inc_settings_mk.diff patch-solenv_inc_unx_mk.diff

patch-autodoc_source_mkinc_fullcpp_mk.diff                                      patch-automation_source_testtool_objtest_cxx.diff patch-bridges_prj_build_lst.diff                                                patch-cppu_source_uno_data_cxx.diff patch-cppu_test_alignment_diagnose_h.diff                                       patch-cppu_util_makefile_mk.diff patch-cppunit_cppunit-1_8_0-r1_patch.diff                                       patch-crashrep_source_unx_main_cxx.diff patch-crashrep_source_unx_makefile_mk.diff                                      patch-desktop_scripts_soffice_sh.diff(hunk #2 1 fuzz) patch-desktop_scripts_unopkg_sh.diff                                            patch-desktop_source_deployment_misc_dp_platform_cxx.diff patch-desktop_source_migration_wizard_cxx.diff                                  patch-desktop_util_makefile_mk.diff patch-extensions_source_nsplugin_source_makefile_mk.diff                        patch-extensions_source_plugin_unx_makefile_mk.diff patch-extensions_source_scanner_makefile_mk.diff                                patch-hunspell_hunspell-1_2_8_patch.diff patch-hyphen_makefile_mk.diff                                                   patch-hyphen_prj_d_lst.diff patch-i18npool_source_paper_makefile_mk.diff                                    patch-idlc_source_idlccompile_cxx.diff patch-instsetoo_native_util_makefile_mk.diff                                    patch-jvmfwk_plugins_sunmajor_pluginlib_sunversion_cxx.diff patch-jvmfwk_plugins_sunmajor_pluginlib_sunversion_hxx.diff                     patch-jvmfwk_sunmajor_pluginlib_sunjre_cxx.diff patch-lingucomponent_source_hyphenator_altlinuxhyph_hyphen_makefile_mk.diff     patch-lpsolve_lp_solve_5_5_patch.diff patch-odk_configure_pl.diff                                                     patch-odk_setsdkenv_unix_csh_in.diff patch-odk_setsdkenv_unix_sh_in.diff                                             patch-odk_settings_settings_mk.diff patch-odk_source_unoapploader_unx_makefile_mk.diff                              patch-odk_util_makefile_pmk.diff patch-padmin_source_spadmin_sh.diff                                             patch-pyuno_source_module_makefile_mk.diff patch-sal_inc_osl_endian_h.diff                                                 patch-sal_inc_rtl_uuid_h.diff patch-sal_inc_sal_alloca_h.diff                                                 patch-sal_inc_sal_config_h.diff patch-sal_inc_sal_types_h.diff                                                  patch-sal_osl_unx_asm_interlck_sparc_s.diff patch-sal_osl_unx_backtrace_c.diff                                              patch-sal_osl_unx_backtrace_h.diff patch-sal_osl_unx_file_cxx.diff                                                 patch-sal_osl_unx_file_error_transl_cxx.diff patch-sal_osl_unx_file_volume_cxx.diff                                          patch-sal_osl_unx_makefile_mk.diff patch-sal_osl_unx_nlsupport_c.diff                                              patch-sal_osl_unx_process_c.diff patch-sal_osl_unx_security_c.diff                                               patch-sal_osl_unx_socket_c.diff patch-sal_osl_unx_system_h.diff                                                 patch-sal_osl_unx_tempfile_c.diff patch-sal_osl_unx_thread_c.diff                                                 patch-sal_osl_unx_time_c.diff patch-sal_rtl_source_alloc_c.diff                                               patch-sal_rtl_source_macro_hxx.diff patch-sal_workben_makefile_mk.diff                                              patch-scp2_source_ooo_file_library_ooo_scp.diff patch-scp2_source_ooo_ure_scp.diff                                              patch-sdext_source_pdfimport_filterdet_cxx.diff patch-sdext_source_pdfimport_wrapper_wrapper_cxx.diff                           patch-sdext_source_pdfimport_wrapper_wrapper_cxx.diff patch-sfx2_source_doc_objuno_cxx.diff                                           patch-shell_source_backends_localebe_localebackend_cxx.diff patch-shell_source_unix_misc_gnome-open-url_c.diff                              patch-shell_source_unix_misc_makefile_mk.diff patch-shell_source_unix_sysshell_makefile_mk.diff                               patch-shell_source_unix_sysshell_recently_used_file_handler_cxx.diff patch-soltools_checkdll_makefile_mk.diff                                        patch-soltools_mkdepend_def_h.diff patch-soltools_mkdepend_ifparser_c.diff                                         patch-soltools_mkdepend_main_c.diff patch-stoc_source_corereflection_criface_cxx.diff                               patch-svx_source_customshapes_makefile_mk.diff patch-tools_bootstrp_command_cxx.diff                                           patch-tools_inc_tools_inetdef_hxx.diff patch-tools_inc_tools_solar_h.diff                                              patch-tools_inc_tools_stream_hxx.diff patch-tools_source_fsys_unx_cxx.diff                                            patch-tools_source_stream_strmunx_cxx.diff patch-ucb_source_ucp_ftp_ftpcontent_cxx.diff                                    patch-ucb_source_ucp_ftp_ftpurl_cxx.diff patch-udm_source_mkinc_fullcpp_mk.diff                                          patch-vcl_unx_inc_saldata_hxx.diff patch-vcl_unx_inc_salunx_h.diff                                                 patch-vcl_unx_source_app_i18n_ic_cxx.diff patch-vcl_unx_source_app_saldisp_cxx.diff                                       patch-vcl_unx_source_dtrans_X11_selection_cxx.diff patch-vcl_unx_source_printer_cupsmgr_cxx.diff                                   patch-vcl_unx_source_printer_printerinfomanager_cxx.diff patch-vcl_util_makefile_mk.diff                                                 patch-writerfilter_source_resourcemodel_makefile_mk.diff patch-xpdf_makefile_mk.diff Previously applied patch : - patch-solenv_inc_startup_OPENBSD_macros_mk.diff patch-solenv_inc_unxobsd_mk.diff                     (diff from L50(patch)/L47(file), info about Building OOo4Kids/OOoLight) patch-solenv_bin_modules_osarch_pm.diff              (Hunk 2 Failed but is applied (NetBSD/FreeBSD position changed: L15/L42) patch-filter_source_config_fragments_makefile_mk.diff (diff from L5(patch)/L186(file), hack to workaround the java build requirement) patch-icc_SampleICC-1_3_2_patch.diff Failed : - patch-configure_in.diff                                :L81 (Hunk 6-7 Failed). patch-binfilter_bf_sc_source_core_data_sc_cell_cxx.diff: no file to patch(thanks to the removal of binfilter) after closing, re-autoconf and the same configure, same problem occurred, i'll look into the configure failed patch.

configure now fail in:
 * Setting up the build environment variables.                   *

checking solver path... default configure: creating ./config.status config.status: creating set_soenv config.status: creating Makefile Setting up the environment for building OOo4Kids or OOoLight Setting platform independent values... set_soenv: Cannot figure out what platform you are running For i386-unknown-openbsd4.8 configure now works fine (revision 1017), dmake error occurred in lpsolve full paste from "build -v" OOo4Kids-r1009/lpsolve/ - cp -f ./unxobsd.pro/misc/build/lp_solve_5.5/lpsolve55/liblpsolve55.so ./unxobsd.pro/lib cp: ./unxobsd.pro/misc/build/lp_solve_5.5/lpsolve55/liblpsolve55.so: No such file or directory dmake: Error code 1, while making './unxobsd.pro/misc/build/so_predeliver_lpsolve'

ERROR: Error 65280 occurred while making OOo4Kids-r1009/lpsolve/ corrected in revision 1023, dmake now fails in pyuno(same registering problem as below).  

Not yet Fixed


hunspell : tests
 in OOo4kids/hunspell

=
========================= 96 of 96 tests failed
 * Error code 1

OOo4Kids/hunspell/unxobsd.pro/misc/build/hunspell-1.2.8/tests (line 1027 of Makefile).
 * Error code 1


 * Workaround (needs investgations) : BUILD_ACTION=make line 70 of makefile.mk in hunspell (removed "&& make test")

build
 Building module instsetoo_native Running processes: 1 Running processes: 2 Running processes: 3 /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/unix /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/windows/msi_languages /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/windows/msi_languages/OOo4Kids Usage: dmake [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!]*][+][:=value ...] [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...] Usage: dmake [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!]*][+][:=value ...] [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...] Usage: dmake [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!]*][+][:=value ...] [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...] Running processes: 2 Running processes: 1 Running processes: 0 ERROR: error 65280 occurred while making /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/windows/msi_languages/OOo4Kids ERROR: error 65280 occurred while making /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/windows/msi_languages ERROR: error 65280 occurred while making /home/dboy/work/my_OOo4Kids_r912/instsetoo_native/inc_openoffice/unix

Why do we build Microsoft stuff on OpenBSD ? 

not realy problems


langpack.ulf
 not a build problem but still weird : cpp version 17.8.1999 : illegal option -- p : illegal option -- t : illegal option -- h : illegal option -- r : illegal option -- e : illegal option -- a : illegal option -- d cpp: :1 EOF inside comment

==> Suggestion : maybe replace $(CP} -p (or something like that) with the right option in the makefile ? 

Warnings
 dmake: OOo4Kids_/solenv/inc/target.mk:  line 555:  Warning: -- Macro `SHL2TARGETN' redefined after use dmake: makefile.mk:  line 96:  Warning: -- More than one prerequisite for %-target. Use :| ruleop or indirect prerequisites. dmake: OOo4Kids/solenv/inc/tg_merge.mk:  line 48:  Warning: -- Duplicate target [../../unxobsd.pro/misc/OOo4Kids/readme.xrm] packimages: WARNING skipping non-existing directory: 'OOo4Kids/ooo_custom_images/crystal' Subroutine installer::epmfile::getcwd redefined at OOo4Kids/solenv/bin/modules/installer/epmfile.pm line 47 "my" variable $infoline masks earlier declaration in same scope at OOo4Kids/solenv/bin/modules/installer/windows/registry.pm line 394. Use of uninitialized value $installer::substfilenamefiles::item in lc at OOo4Kids/solenv/bin/modules/installer/substfilenamefiles.pm line 49. Subroutine installer::epmfile::getcwd redefined at OOo4Kids/solenv/bin/modules/installer/epmfile.pm line 47 "my" variable $infoline masks earlier declaration in same scope at OOo4Kids/solenv/bin/modules/installer/windows/registry.pm line 394. Use of uninitialized value $installer::substfilenamefiles::item in lc at OOo4Kids/solenv/bin/modules/installer/substfilenamefiles.pm line 49. Subroutine installer::epmfile::getcwd redefined at OOo4Kids/solenv/bin/modules/installer/epmfile.pm line 47 "my" variable $infoline masks earlier declaration in same scope at OOo4Kids/solenv/bin/modules/installer/windows/registry.pm line 394. Use of uninitialized value $installer::substfilenamefiles::item in lc at OOo4Kids/solenv/bin/modules/installer/substfilenamefiles.pm line 49. </ul></ul>

register : pythonloader.uno.so
Guilty was a wrong LD_LIBRARY_PATH

 in OOo4Kids/pyuno - register component './pythonloader.uno.so' in registry 'pyuno_services.tmp' failed! error (CannotRegisterImplementationException): loading component library failed: ./pythonloader. the configure env is correctly loaded: PYTHON=/usr/local/bin/python2.6 PYTHON_CFLAGS=-I/usr/local/include/python2.6 PYTHON_LIBS='-lpython2.6 -pthread -lutil' SYSTEM_PYTHON=YES

The issue is fixed as follow :

truc:~/Desktop/r1034 ericb$ svn diff -cr1054 svn://svn.adullact.net/svnroot/ooo4kids1/trunk Index: solenv/inc/unx.mk

=
====================================================== --- solenv/inc/unx.mk  (revision 1053) +++ solenv/inc/unx.mk  (revision 1054) @@ -224,8 +224,13 @@ .IF "$(USE_SHELL)" == "bash" +.IF "$(OS)"=="OPENBSD" + AUGMENT_LIBRARY_PATH *= : && \ +   LD_LIBRARY_PATH=$$:$(SOLARLIBDIR) +.ELSE AUGMENT_LIBRARY_PATH *= : && \ LD_LIBRARY_PATH=$$$(SOLARLIBDIR) +.ENDIF .ELSE AUGMENT_LIBRARY_PATH *= if ($$?LD_LIBRARY_PATH == 1) \ eval 'setenv LD_LIBRARY_PATH "$$:$(SOLARLIBDIR)"' && \
 * 1) an existing && chain; the tcsh case is somewhat imprecise in that it
 * 2) potentially affects multiple commands following on the recipe line:



sal


in OOo4Kids/sal - In file included from rtl/source/uuid.cxx:39: inc/rtl/uuid.h:207:2: error: #error "System time resolution must be calculated!" dmake: Error code 1, while making 'unxobsd.pro/obj/uuid.obj' </ul>
 * correction :ericb * r926 /trunk/sal/inc/rtl/uuid.h: Fixed this breakage.

openssl
 in OOo4Kids/openssl/unxobsd.pro/misc/build/openssl-0.9.8l/crypto/ui/ui_openssl.c - ui_openssl.c ui_openssl.c:224:21: error: termio.h: No such file or directory zlib: unzip
 * correction : adding the --with-system-openssl in the ./configure command. The idea is to avoid as much as possible external solutions (OpenBSD openssl implementation, is supposed to be always better and more up to date than our).

in OOo4Kids/zlib/unxobsd.pro/misc/ - In file included from unzip.c:42: build/zlib-1.1.4/contrib/minizip/unzip.h:57:19: error: ioapi.h: No such file or directory


 * correction : adding the --with-system-zlib in the ./configure command.

</ul>

vcl
 in OOo4Kids/vcl/ - In file included from unx/inc/salobj.h:37, from unx/source/app/saldisp.cxx:102: inc/vcl/salobj.hxx:76: warning: unused parameter 'bEnable' unx/source/app/saldisp.cxx: In member function 'XLIB_Cursor SalDisplay::GetPointer(int)': unx/source/app/saldisp.cxx:2083: error: 'POINTER_ERASER' was not declared in this scope dmake: Error code 1, while making '../../../unxobsd.pro/slo/saldisp.obj'

</ul>
 * correction : ericb * r931 /trunk/solenv/inc/unxobsd.mk: Added OOo4Kids and OOoLight on OpenBSD Fixed this problem.

Filter
 in OOo4Kids/filter/ - echo zipdep_langs=en-US fr >> ../../../unxobsd.pro/misc/FCFGPkg.dpz

=
====================================================== Merge localized filter fragments for package ../../../unxobsd.pro/misc/filters/ui/merge/filter_ui.xcu

=
====================================================== mkdir -p ../../../unxobsd.pro/misc/filters/ui/merge ../tools/merge/pyAltFCFGMerge fragmentsdir=../../../unxobsd.pro/misc/filters/ui/fragments tempdir= pkg=../../../unxobsd.pro/misc/filters/ui/merge/filter_ui.xcu xmlpackage=Filter fcfg=/tmp/mkYq5mKI languagepack=true dmake: Error executing '../tools/merge/pyAltFCFGMerge': No such file or directory dmake: Error code -1, while making '../../../unxobsd.pro/misc/filters/ui/merge/filter_ui.xcu'

ERROR: Error 65280 occurred while making OOo4Kids/filter/source/config/fragments

</ul>
 * correction : see pyuno.

pyuno
 Building module pyuno in OOo4Kids/pyuno/ - register component './pythonloader.uno' in registry 'pyuno_services.tmp' failed! error (CannotRegisterImplementationException): loading component library failed: ./pythonloader.uno.so dmake: Error code 1, while making '../../unxobsd.pro/lib/pyuno_services.rdb'

ERROR: Error 65280 occurred while making OOo4Kids/pyuno/source/loader

</ul>
 * : FIXED at configure time (patch from Fabien Rendu).

openoffice_en-US.portable
 ERROR: ERROR: Could not register all components for file services.rdb (gid_Starregistry_Services_Rdb)! in function: create_services_rdb

register component 'vnd.openoffice.pymodule:mailmerge' in registry '/tmp/educooopackaging/i_261851288198325/unxobsd.pro/OOo4Kids/portable/\ gid_Starregistry_Services_Rdb_servicesrdb/en-US_inprogress_1/services.rdb' failed! error (CannotRegisterImplementationException): ImplementationRegistration::registerImplementation - The service com.sun.star.loader.Pyth\ on cannot be instantiated

dmake: Error code 255, while making 'openoffice_en-US.portable'

</ul></ul>
 * correction : FIXED by fixing PYUNO