[Pkg-giraffe-discuss] possible fixes for build issues on kfreebsd

Carsten Schoenert c.schoenert at t-online.de
Tue Oct 17 19:58:12 UTC 2017


Hi Mark,

Am 13.10.2017 um 11:04 schrieb Mark Dufour:
>> But I'd like to also fix the remaining build issues on kfreebsd
>> platforms. I know you have done some research on that while the Kopano
>> Conference. If possible I would add that fixes into a next upload of
>> kopanocore. Have you something you could point to so I can check on some
>> porterbox if issues an kfreebsd solvable?
> 
> please see attachment.

your patch (with small changes to fit configure.ac in 8.3.4) fixes the
original build issue. But new errors are arising. :-)
I'm building the source on a kfreebsd-amd64 porterbox and now the build
stops a few files and lines later.

> make[2]: Entering directory '/home/tijuca/kopanocore-8.3.4/debian/build'
> /bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I./common -I./common/include/kopano  -I./common/include 	-I../../common/include 	-I../../m4lcommon/include 	-I../../provider/common/include 	-I../../provider/libserver/include 	-I../../ECtools/archiver/include 	-I../../inetmapi/include 	-I../../swig/include 	-I../../swig/python/include  -DNDEBUG -DUNICODE  -DUSE_EPOLL    -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/etc/mapi\" -DPKGLIBDIR='"/usr/lib/x86_64-kfreebsd-gnu/kopano"' -DSOAP_CMAC='__attribute__((visibility("default")))' -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I../../common -I../../libfreebusy -I../../libsync -I../../m4lcommon -I../../mapi4linux/include -I../../provider/client -I../../provider/common -I../../provider/include -I../../provider/libserver -I../../provider/plugins -I../../libfreebusy -I../../libicalmapi -I../../ECtools/archiver  -I/usr/include/x86_64-kfreebsd-gnu -DWITH_OPENSSL -DWITH_GZIP -DHAVE_OPENSSL_SSL_H -DHAVE_ZLIB_H  -isystem /usr/include/mit-krb5 -DLDAP_DEPRECATED=1 -I/usr/include/mysql    -I/usr/include/vmime/ -I/usr/include/p11-kit-1 -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -std=c++11 -Wno-variadic-macros -O2 -fno-strict-aliasing -Wno-sign-compare -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -fdebug-prefix-map=/home/tijuca/kopanocore-8.3.4=. -fstack-protector-strong -Wformat -Werror=format-security -c -o common/platform.linux.lo ../../common/platform.linux.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I./common -I./common/include/kopano -I./common/include -I../../common/include -I../../m4lcommon/include -I../../provider/common/include -I../../provider/libserver/include -I../../ECtools/archiver/include -I../../inetmapi/include -I../../swig/include -I../../swig/python/include -DNDEBUG -DUNICODE -DUSE_EPOLL -DLDAP_THREAD_SAFE -DMAPICONFIGDIR=\"/etc/mapi\" -DPKGLIBDIR=\"/usr/lib/x86_64-kfreebsd-gnu/kopano\" "-DSOAP_CMAC=__attribute__((visibility(\"default\")))" -DSOAP_FMAC3=SOAP_CMAC -DSOAP_FMAC5=SOAP_CMAC -DSOAP_NMAC=SOAP_CMAC -Iprovider/soap -I../../common -I../../libfreebusy -I../../libsync -I../../m4lcommon -I../../mapi4linux/include -I../../provider/client -I../../provider/common -I../../provider/include -I../../provider/libserver -I../../provider/plugins -I../../libfreebusy -I../../libicalmapi -I../../ECtools/archiver -I/usr/include/x86_64-kfreebsd-gnu -DWITH_OPENSSL -DWITH_GZIP -DHAVE_OPENSSL_SSL_H -DHAVE_ZLIB_H -isystem /usr/include/mit-krb5 -DLDAP_DEPRECATED=1 -I/usr/include/mysql -I/usr/include/vmime/ -I/usr/include/p11-kit-1 -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -std=c++11 -Wno-variadic-macros -O2 -fno-strict-aliasing -Wno-sign-compare -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -fdebug-prefix-map=/home/tijuca/kopanocore-8.3.4=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../common/platform.linux.cpp  -fPIC -DPIC -o common/.libs/platform.linux.o
> ../../common/platform.linux.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > KC::get_backtrace()':
> ../../common/platform.linux.cpp:237:16: error: 'backtrace' was not declared in this scope
>   int addrlen = backtrace(addrlist, BT_MAX);
>                 ^~~~~~~~~
> ../../common/platform.linux.cpp:237:16: note: suggested alternative: 'get_backtrace'
>   int addrlen = backtrace(addrlist, BT_MAX);
>                 ^~~~~~~~~
>                 get_backtrace
> ../../common/platform.linux.cpp:240:22: error: 'backtrace_symbols' was not declared in this scope
>   char **symbollist = backtrace_symbols(addrlist, addrlen);
>                       ^~~~~~~~~~~~~~~~~
> Makefile:3808: recipe for target 'common/platform.linux.lo' failed
> make[2]: *** [common/platform.linux.lo] Error 1
> make[2]: Leaving directory '/home/tijuca/kopanocore-8.3.4/debian/build'
> Makefile:4508: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/tijuca/kopanocore-8.3.4/debian/build'
> Makefile:1998: recipe for target 'all' failed
> make: *** [all] Error 2

I tried also to add the suggest get_backtrace function, but this also
did not work.

> ../../common/platform.linux.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > KC::get_backtrace()':
> ../../common/platform.linux.cpp:237:46: error: too many arguments to function 'std::vector<std::__cxx11::basic_string<char> > KC::get_backtrace()'
>   int addrlen = get_backtrace(addrlist, BT_MAX);
>                                               ^
> ../../common/platform.linux.cpp:232:26: note: declared here
>  std::vector<std::string> get_backtrace(void)
>                           ^~~~~~~~~~~~~
> ../../common/platform.linux.cpp:237:46: error: cannot convert 'std::vector<std::__cxx11::basic_string<char> >' to 'int' in initialization
>   int addrlen = get_backtrace(addrlist, BT_MAX);
>                                               ^
> ../../common/platform.linux.cpp:240:22: error: 'backtrace_symbols' was not declared in this scope
>   char **symbollist = backtrace_symbols(addrlist, addrlen);
>                       ^~~~~~~~~~~~~~~~~
> Makefile:3808: recipe for target 'common/platform.linux.lo' failed

configure.ac has a check for detecting a openbsd platform, even if I add
the simplified kfreebsd host_os string 'kfreebsd*' the build is either
not successful.

I assume Jan has done some more fixing on *BSD so we maybe should not
waist to much time here and be focused on a more recent version of
kopanocore later there probably most of such issues are fixed?
At one day we should catch this build issue, but I haven't much time
currently to digging deeper into the interns here.
If someone can come up with some other probably solution we can add
this, for now I'd vote for not working further here and prepare a upload
with the other various RC fixes instead.

-- 
Regards
Carsten Schoenert


More information about the Pkg-giraffe-discuss mailing list