Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2013 15:31:11 +0100
From:      John <freebsd-lists@potato.growveg.org>
To:        freebsd-ports@freebsd.org
Subject:   graphics/ocropus fails to build on 9.2-R ports rev 329191
Message-ID:  <20131003143111.GB12625@potato.growveg.org>

next in thread | raw e-mail | index | archive | help
Hello freebsd-ports,

# svn info /usr/ports

Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: https://svn0.eu.freebsd.org/ports/head
Relative URL: ^/head
Repository Root: https://svn0.eu.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 329191
Node Kind: directory
Schedule: normal
Last Changed Author: bf
Last Changed Rev: 329191
Last Changed Date: 2013-10-03 14:47:44 +0100 (Thu, 03 Oct 2013)


graphics/ocropus fails to build and gives the following error:

===>  Building for ocropus-0.4_11
Making all in .
gmake[1]: Entering directory
/usr/ports/graphics/ocropus/work/ocropus-0.4/ocropus'
clang++ -DPACKAGE_NAME=\"ocropus\" -DPACKAGE_TARNAME=\"ocropus\"
-DPACKAGE_VERSION=\"0.3\" -DPACKAGE_STRING=\"ocropus\ 0.3\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ocropus\"
-DVERSION=\"0.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_FLOAT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBPNG=1
-DHAVE_LIBJPEG=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBPTHREAD=1
-DHAVE_LIBIULIB=1 -DHAVE_LIBLEPT=1 -DHAVE_LIBGSLCBLAS=1
-DHAVE_LIBGSL=1 -DHAVE_LIBGOMP=1 -DHAVE_FORK=1 -DHAVE_VFORK=1
-DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_DUP2=1
-DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1
-DHAVE_STRRCHR=1 -I.  -I./include -I./ocr-utils -I/usr/local/include
-I/usr/local/include/leptonica -DHAVE_LEPTONICA -I/usr/local/include
-O2 -pipe -fstack-protector -fno-strict-aliasing -fopenmp -Wall
-Wno-sign-compare -Wno-write-strings -Wno-deprecated -O2 -pipe
-fstack-protector -fno-strict-aliasing -fopenmp -MT didegrade.o -MD
-MP -MF .deps/didegrade.Tpo -c -o didegrade.o test -f
'./ocr-utils/didegrade.cc' || echo './'./ocr-utils/didegrade.cc
clang++: warning: argument unused during compilation: '-fopenmp'
clang++: warning: argument unused during compilation: '-fopenmp'
In file included from ./ocr-utils/didegrade.cc:25:
In file included from /usr/local/include/iulib/imglib.h:29:
In file included from /usr/local/include/iulib/imgfilters.h:30:
In file included from /usr/local/include/colib/colib.h:34:
In file included from /usr/local/include/colib/classifier.h:33:
/usr/local/include/colib/narray.h:79:5: warning: 'narray' defined as a
class template here but previously declared as a
      struct template [-Wmismatched-tags]
          class narray {
	      ^
	      /usr/local/include/colib/narray.h:66:5: note: did you
mean class here?
    struct narray;
        ^~~~~~
	    class
	    In file included from ./ocr-utils/didegrade.cc:25:
	    In file included from /usr/local/include/iulib/imglib.h:29:
	    In file included from /usr/local/include/iulib/imgfilters.h:30:
	    In file included from /usr/local/include/colib/colib.h:37:
	    /usr/local/include/colib/env.h:36:17: warning: using
directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
		In file included from ./ocr-utils/didegrade.cc:26:
		In file included from ./ocr-utils/didegrade.h:29:
		In file included from ./include/ocropus.h:61:
		./ocr-utils/enumerator.h:83:25: error: call to
function 'Hash_hash' that is neither visible in the template
definition nor
      found by argument-dependent lookup
              int index = abs(Hash_hash(key)) % entries.length();
	                              ^
				      ./ocr-utils/enumerator.h:71:21:
note: in instantiation of member function 'EnumHash<int,
int>::find_index' requested here
        int index = find_index(key);
	                    ^
			    ./ocr-utils/enumerator.h:116:34: note: in
instantiation of member function 'EnumHash<int, int>::get' requested
here
        int result = translation.get(i,n);
	                                 ^
					 ./ocr-utils/enumerator.h:105:12:
note: 'Hash_hash' should be declared prior to the call site
inline int Hash_hash(int x) {
           ^
	   2 warnings and 1 error generated.
	   gmake[1]: *** [didegrade.o] Error 1
	   gmake[1]: Leaving directory
/usr/ports/graphics/ocropus/work/ocropus-0.4/ocropus'
gmake: *** [all-recursive] Error 1
*** [do-build] Error code 1

Stop in /usr/ports/graphics/ocropus.
*** [build] Error code 1

Stop in /usr/ports/graphics/ocropus.

can anyone help?

thanks,
-- 
John





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131003143111.GB12625>