Bug 223802 - misc/sword failed to build.
Summary: misc/sword failed to build.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-22 12:33 UTC by Eric Turgeon
Modified: 2018-03-03 00:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tabthorpe)


Attachments
svn-diff-sword (9.58 KB, patch)
2017-12-22 12:51 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Turgeon 2017-11-22 12:33:16 UTC
ericbsd@ericbsd /u/p/m/sword> sudo make MAKE_JOBS_UNSAFE=yes reinstall clean
===>  License GPLv2 accepted by the user
===>   sword-1.7.4_9 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by sword-1.7.4_9 for building
===>  Extracting for sword-1.7.4_9
=> SHA256 Checksum OK for sword-1.7.4.tar.gz.
===>  Patching for sword-1.7.4_9
===>   sword-1.7.4_9 depends on executable: cppunit-config - found
===>   sword-1.7.4_9 depends on executable: gmake - found
===>   sword-1.7.4_9 depends on package: pkgconf>=1.3.0_1 - found
===>   sword-1.7.4_9 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so)
===>   sword-1.7.4_9 depends on shared library: libclucene-core.so - found (/usr/local/lib/libclucene-core.so)
===>   sword-1.7.4_9 depends on shared library: libicudata.so - found (/usr/local/lib/libicudata.so)
===>  Configuring for sword-1.7.4_9
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd11.1
checking host system type... amd64-portbld-freebsd11.1
checking target system type... amd64-portbld-freebsd11.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking whether gmake supports nested variables... yes
checking for gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by gmake... GNU
checking dependency style of cc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd11.1 file names to amd64-portbld-freebsd11.1 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd11.1 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cpp
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd11.1 ld.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 how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd11.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking pkg-config is at least version 0.9.0... yes
checking for CLUCENE2... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for compress in -lz... yes
checking for library containing regexec... none required
configure: Using system regex.h
checking for cppunit-config... /usr/local/bin/cppunit-config
checking for Cppunit - version >= 1.8.0... 1.13.2
checking for pkg-config... /usr/local/bin/pkg-config
checking for icu-config... /usr/local/bin/icu-config
checking for curl-config... /usr/local/bin/curl-config
curl found - remote install options available
test: x: unexpected operator
clucene 2.x found - lucene searching options available
checking for vsnprintf... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating tests/Makefile
config.status: creating tests/cppunit/Makefile
config.status: creating utilities/Makefile
config.status: creating examples/Makefile
config.status: creating examples/cmdline/Makefile
config.status: creating examples/tasks/Makefile
config.status: creating utilities/diatheke/Makefile
config.status: creating sword.pc
config.status: creating include/swversion.h
config.status: creating sword.spec
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands


Configuration:
     LIBDIR:           ${exec_prefix}/lib
     DEBUG:            no
     PROFILE:          no
     BUILD TESTS:      yes
     BUILD EXAMPLES:   no
     BUILD UTILITIES:  yes
     LIBZ:             yes
     ICU:              yes
     ICUSWORD:         no
     CXX11REGEX:       no
     CURL:             yes
     CURL SFTP:        no
     INTERNAL FTPLIB:  no
     INTERNAL REGEX:   no
     CLUCENE:          yes 2.x


===>  Building for sword-1.7.4_9
gmake[3]: Entering directory '/usr/ports/misc/sword/work/sword-1.7.4'
Making all in lib
gmake[4]: Entering directory '/usr/ports/misc/sword/work/sword-1.7.4/lib'
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\"  -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext  -DUSELUCENE -DCLUCENE2 -I/usr/local/lib  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT swkey.lo -MD -MP -MF .deps/swkey.Tpo -c -o swkey.lo `test -f '../src/keys/swkey.cpp' || echo './'`../src/keys/swkey.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT swkey.lo -MD -MP -MF .deps/swkey.Tpo -c ../src/keys/swkey.cpp  -fPIC -DPIC -o .libs/swkey.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT swkey.lo -MD -MP -MF .deps/swkey.Tpo -c ../src/keys/swkey.cpp -o swkey.o >/dev/null 2>&1
mv -f .deps/swkey.Tpo .deps/swkey.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\"  -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext  -DUSELUCENE -DCLUCENE2 -I/usr/local/lib  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT listkey.lo -MD -MP -MF .deps/listkey.Tpo -c -o listkey.lo `test -f '../src/keys/listkey.cpp' || echo './'`../src/keys/listkey.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT listkey.lo -MD -MP -MF .deps/listkey.Tpo -c ../src/keys/listkey.cpp  -fPIC -DPIC -o .libs/listkey.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT listkey.lo -MD -MP -MF .deps/listkey.Tpo -c ../src/keys/listkey.cpp -o listkey.o >/dev/null 2>&1
mv -f .deps/listkey.Tpo .deps/listkey.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\"  -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext  -DUSELUCENE -DCLUCENE2 -I/usr/local/lib  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT strkey.lo -MD -MP -MF .deps/strkey.Tpo -c -o strkey.lo `test -f '../src/keys/strkey.cpp' || echo './'`../src/keys/strkey.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT strkey.lo -MD -MP -MF .deps/strkey.Tpo -c ../src/keys/strkey.cpp  -fPIC -DPIC -o .libs/strkey.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT strkey.lo -MD -MP -MF .deps/strkey.Tpo -c ../src/keys/strkey.cpp -o strkey.o >/dev/null 2>&1
mv -f .deps/strkey.Tpo .deps/strkey.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\"  -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext  -DUSELUCENE -DCLUCENE2 -I/usr/local/lib  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT treekey.lo -MD -MP -MF .deps/treekey.Tpo -c -o treekey.lo `test -f '../src/keys/treekey.cpp' || echo './'`../src/keys/treekey.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT treekey.lo -MD -MP -MF .deps/treekey.Tpo -c ../src/keys/treekey.cpp  -fPIC -DPIC -o .libs/treekey.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT treekey.lo -MD -MP -MF .deps/treekey.Tpo -c ../src/keys/treekey.cpp -o treekey.o >/dev/null 2>&1
mv -f .deps/treekey.Tpo .deps/treekey.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../include  -I../include  -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\"  -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT  -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext  -DUSELUCENE -DCLUCENE2 -I/usr/local/lib  -O2 -pipe -fstack-protector -fno-strict-aliasing  -MT treekeyidx.lo -MD -MP -MF .deps/treekeyidx.Tpo -c -o treekeyidx.lo `test -f '../src/keys/treekeyidx.cpp' || echo './'`../src/keys/treekeyidx.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/local/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/lib/sword/1.7.4_icu_\" -DGLOBCONFPATH=\"/usr/local/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -fPIC -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -I/usr/local/include -I/usr/local/include -I/usr/local/include/CLucene/ext -DUSELUCENE -DCLUCENE2 -I/usr/local/lib -O2 -pipe -fstack-protector -fno-strict-aliasing -MT treekeyidx.lo -MD -MP -MF .deps/treekeyidx.Tpo -c ../src/keys/treekeyidx.cpp  -fPIC -DPIC -o .libs/treekeyidx.o
../src/keys/treekeyidx.cpp:64:12: error: ordered comparison between pointer and zero ('sword::FileDesc *' and 'int')
        if (datfd <= 0) {
            ~~~~~ ^  ~
../src/keys/treekeyidx.cpp:334:12: error: ordered comparison between pointer and zero ('sword::FileDesc *' and 'int')
        if (datfd > 0) {
            ~~~~~ ^ ~
../src/keys/treekeyidx.cpp:388:12: error: ordered comparison between pointer and zero ('sword::FileDesc *' and 'int')
        if (idxfd > 0) {
            ~~~~~ ^ ~
../src/keys/treekeyidx.cpp:425:12: error: ordered comparison between pointer and zero ('sword::FileDesc *' and 'int')
        if (idxfd > 0) {
            ~~~~~ ^ ~
../src/keys/treekeyidx.cpp:491:12: error: ordered comparison between pointer and zero ('sword::FileDesc *' and 'int')
        if (idxfd > 0) {
            ~~~~~ ^ ~
5 errors generated.
gmake[4]: *** [Makefile:1180: treekeyidx.lo] Error 1
gmake[4]: Leaving directory '/usr/ports/misc/sword/work/sword-1.7.4/lib'
gmake[3]: *** [Makefile:610: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/misc/sword/work/sword-1.7.4'
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/misc/sword
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/misc/sword
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/sword
Comment 1 Walter Schwarzenfeld freebsd_triage 2017-12-22 07:33:11 UTC
Duplicate r216194.
Comment 2 Walter Schwarzenfeld freebsd_triage 2017-12-22 07:34:14 UTC
Duplicate of bug #216194.
Comment 3 Walter Schwarzenfeld freebsd_triage 2017-12-22 12:51:49 UTC
Created attachment 189032 [details]
svn-diff-sword

Maybe, it builds also on 12.X, I cannot test this.
Comment 4 Rene Ladan freebsd_committer freebsd_triage 2018-02-24 21:47:35 UTC
Maintainer reset.
Comment 5 Walter Schwarzenfeld freebsd_triage 2018-03-03 00:04:36 UTC
Fixed with
https://svnweb.freebsd.org/ports?view=revision&revision=462657