Solved Error building owfs-3.1p0

I try update comms/owfs

Change
Code:
PORTVERSION=3.1p0
Update checksumms
Code:
make makesum

Try building, have error:

Code:
/bin/sh ../../../../libtool  --tag=CC  --mode=compile cc -DHAVE_CONFIG_H -I. -I../../../../src/include  -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -D_THREAD_SAFE -pthread  -O2 -pipe  -fstack-protector -fno-strict-aliasing -DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_rwlock.lo -MD -MP -MF .deps/ow_rwlock.Tpo -c -o ow_rwlock.lo ow_rwlock.c
ow_return_code.c:243:72: warning: unused parameter 'd_file' [-Wunused-parameter]
void return_code_set( int raw_rc, struct parsedname * pn, const char * d_file, int d_line, const char * d_func )
  ^
ow_return_code.c:243:84: warning: unused parameter 'd_line' [-Wunused-parameter]
void return_code_set( int raw_rc, struct parsedname * pn, const char * d_file, int d_line, const char * d_func )
  ^
ow_return_code.c:243:105: warning: unused parameter 'd_func' [-Wunused-parameter]
void return_code_set( int raw_rc, struct parsedname * pn, const char * d_file, int d_line, const char * d_func )
  ^
ow_return_code.c:285:65: warning: unused parameter 'd_file' [-Wunused-parameter]
void return_code_set_scalar( int raw_rc, int * pi, const char * d_file, int d_line, const char * d_func )
  ^
ow_return_code.c:285:77: warning: unused parameter 'd_line' [-Wunused-parameter]
void return_code_set_scalar( int raw_rc, int * pi, const char * d_file, int d_line, const char * d_func )
  ^
ow_return_code.c:285:98: warning: unused parameter 'd_func' [-Wunused-parameter]
void return_code_set_scalar( int raw_rc, int * pi, const char * d_file, int d_line, const char * d_func )
  ^
6 warnings generated.
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector -fno-strict-aliasing -DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_return_code.lo -MD -MP -MF .deps/ow_return_code.Tpo -c ow_return_code.c -o ow_return_code.o >/dev/null 2>&1
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -D_THREAD_SAFE -pthread -O2 -pipe -fstack-protector -fno-strict-aliasing -DNO_NESTED_FUNCTIONS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_rwlock.lo -MD -MP -MF .deps/ow_rwlock.Tpo -c ow_rwlock.c  -fPIC -DPIC -o .libs/ow_rwlock.o
ow_rwlock.c:29:3: error: expected expression
  LOCK_DEBUG("semrc=%d [%s] RWLOCK INIT", semrc, strerror(errno));
  ^
ow_rwlock.c:18:26: note: expanded from macro 'LOCK_DEBUG'
#define LOCK_DEBUG(...)  if ( Globals.locks != 0 ) { LEVEL_DEFAULT(__VA_ARGS__) ; }
  ^
1 error generated.
Makefile:1085: recipe for target 'ow_rwlock.lo' failed
gmake[6]: *** [ow_rwlock.lo] Error 1
gmake[6]: *** Waiting for unfinished jobs....
mv -f .deps/ow_return_code.Tpo .deps/ow_return_code.Plo
gmake[6]: Leaving directory '/usr/ports/comms/owfs/work/owfs-3.1p0/module/owlib/src/c'
Makefile:497: recipe for target 'all-recursive' failed
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory '/usr/ports/comms/owfs/work/owfs-3.1p0/module/owlib/src'
Makefile:497: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/comms/owfs/work/owfs-3.1p0/module/owlib'
Makefile:511: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/comms/owfs/work/owfs-3.1p0/module'
Makefile:566: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/comms/owfs/work/owfs-3.1p0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/comms/owfs
*** Error code 1

Stop.
make: stopped in /usr/ports/comms/owfs

I try change compiler to gcc 4.8, 4.7,4.9 - no happy...
 
Mm...
It's some options, because
make patch
cd work/owfs-3.1p0/
./configure
make

Builds fine
 
Back
Top