Re: tlsdate port to NetBSD?
Thomas Klausner <[email protected]> Thu, 11 Apr 2013 11:16:24 +0200
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 11, 2013 at 08:09:56AM +0000, Jacob Appelbaum wrote: > I've recently been working on porting my tlsdate ( > https://github.com/ioerror/tlsdate ) program to various operating > systems. NetBSD is one such system that I'd like to ensure is working > before I tag my next release (0.0.7). The port to FreeBSD 10-CURRENT > (and OS X 10.8.x) seems to work for a few users and thus I think most of > the BSD heavy lifting should be handled. > > I suspect the specific build conditions that check for FreeBSD could > easily modified to also check for NetBSD. With such a change, I guess it > could work out of the box. Ideally, I'd like to explicitly support > NetBSD and not just accidentally support it as a side effect of > supporting FreeBSD. Thank you :) > I wonder if the best bet is to pick NetBSD 6.0.1-RC2 and then work on a > pkgsrc targeting the current git tip of tlsdate master? Sounds good. > If anyone has already managed to port tlsdate to NetBSD, I'd love to > know before I set out to port it. :) I've just tried the git version on NetBSD-current with some packages installed. git clone https://github.com/ioerror/tlsdate autoreconf -fiv ./configure (output attached) make and wondered that the make output is so small: make all-am CCLD src/compat/libtlsdate_compat.la Then I tried 'make check': make check-am make src/test/proxy-override src/test/return-argc src/test/rotate src/test/sleep-wrap CC src/test/proxy-override.o CCLD src/test/proxy-override CC src/test/return-argc.o CCLD src/test/return-argc CC src/test/rotate.o CCLD src/test/rotate CC src/test/sleep-wrap.o CCLD src/test/sleep-wrap make check-TESTS CCLD src/conf_unittest gcc: no input files *** Error code 1 'make check V=1' then gives: make check-TESTS /bin/bash ./libtool --tag=CC --mode=link gcc "-D__STDC_LIMIT_MACROS" -g -O1 -Wall -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIE -Wstack-protector --param=ssp-buffer-size=1 -L/lib -o src/conf_unittest libtool: link: gcc -D__STDC_LIMIT_MACROS -g -O1 -Wall -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIE -Wstack-protector --param=ssp-buffer-size=1 -o src/conf_unittest -L/lib gcc: no input files *** Error code 1 Why do you have "if TARGET_FREEBSD" etc. instead of using feature test( result)s? So at least some more work is definitely needed :) Let me know if I can help. Thomas ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ pkgsrc-wip-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
configure.out
(text/plain, 6.3 KB)
checking build system type... x86_64-unknown-netbsd6.99.19 checking host system type... x86_64-unknown-netbsd6.99.19 checking target system type... x86_64-unknown-netbsd6.99.19 checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... config/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking how to create a ustar tar archive... plaintar checking dependency style of gcc... gcc3 checking for pkg-config... /usr/pkg/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for a sed that does not truncate output... /usr/pkg/bin/gsed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$ checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... NetBSD ld.elf_so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking whether make supports nested variables... (cached) yes checking PolarSSL... checking whether C compiler accepts ... yes checking for ssl_init in -lpolarssl... no checking whether C compiler accepts -I/include... yes checking for ssl_init in -lpolarssl... (cached) no checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/bio.h usability... yes checking openssl/bio.h presence... yes checking for openssl/bio.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking openssl/evp.h usability... yes checking openssl/evp.h presence... yes checking for openssl/evp.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking for stdint.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking for setresuid... no checking for gettimeofday... yes checking user/group to drop privs to... nobody: checking whether the linker accepts ... yes checking whether C compiler accepts -g... yes checking whether C compiler accepts -O1... yes checking whether C compiler accepts -Wall... yes checking whether C compiler accepts -fno-strict-aliasing... yes checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes checking whether C compiler accepts -fstack-protector-all... yes checking whether C compiler accepts -fwrapv... yes checking whether C compiler accepts -fPIE... yes checking whether C compiler accepts -Wstack-protector... yes checking whether C compiler accepts --param=ssp-buffer-size=1... yes checking whether the linker accepts -z relro -z now... yes checking whether the linker accepts -pie... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands