Compiling coz-toolkit-1.0.5 under FreeBSD - Fails

General discussion on the JZOS batch launcher and toolkit
Post Reply
jacobsm
Posts: 37
Joined: Thu Apr 23, 2009 9:18 am
Location: Tampa, Florida

Compiling coz-toolkit-1.0.5 under FreeBSD - Fails

Post by jacobsm »

I'm running FreeBSD 7.0 on my company issued workstation and the toolkit is failing to compile. I tried several configure options (since compiling x3270 also fails w/o additional configure options also). Can anyone offer advice on how to proceed/

[mark@bc008988 /tmp/coz-toolkit-1.0.5]$ ./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking build system type... i386-unknown-freebsd7.2
checking host system type... i386-unknown-freebsd7.2
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for socket in -lsocket... no
checking for libiconv in -liconv... yes
checking for iconv declaration... const
checking for bzero... yes
checking for dup2... yes
checking for ftime... no
checking for getcwd... yes
checking for getaddrinfo... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for isblank... yes
checking for localtime_r... yes
checking for memset... yes
checking for nl_langinfo... yes
checking for putenv... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for socket... yes
checking for snprintf... yes
checking for strchr... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for vsnprintf... yes
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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for error_at_line... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for vprintf... yes
checking for _doprnt... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... (cached) yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
[mark@bc008988 /tmp/coz-toolkit-1.0.5]$ make
Making all in src
make all-am
g++ -DHAVE_CONFIG_H -I. -I/usr/local/include -g -O2 -DENV_PREFIX=COZ -DBUILD_VERSION="1.0.5 2008-03-01" -MT CoZAgent.o -MD -MP -MF .deps/CoZAgent.Tpo -c -o CoZAgent.o CoZAgent.C
In file included from DtlLog.h:49,
from CoZAgent.C:24:
/usr/include/sys/timeb.h:43: error: 'time_t' does not name a type
In file included from CoZAgent.C:24:
DtlLog.h: In static member function 'static void DtlLog::setProgName(const char*)':
DtlLog.h:184: warning: deprecated conversion from string constant to 'char*'
In file included from CoZAgent.C:25:
sys_util.h: At global scope:
sys_util.h:316: error: 'fd_set' has not been declared
sys_util.h:316: error: 'fd_set' has not been declared
sys_util.h:316: error: 'fd_set' has not been declared
sys_util.h: In static member function 'static void SysUtil::err_impl(const char*, int, int, char*, char*)':
sys_util.h:109: error: '::snprintf' has not been declared
sys_util.h:110: error: '::vsnprintf' has not been declared
sys_util.h: In static member function 'static void SysUtil::gethostname(char*, size_t, const char*, int)':
sys_util.h:240: error: '::gethostname' has not been declared
sys_util.h: In static member function 'static int SysUtil::select(int, int*, int*, int*, timeval*, const char*, int)':
sys_util.h:319: error: '::select' has not been declared
In file included from CoZAgent.C:27:
pthread_util.h: In static member function 'static void PthreadUtil::error(const char*, int, ...)':
pthread_util.h:43: error: '::snprintf' has not been declared
pthread_util.h:44: error: '::vsnprintf' has not been declared
In file included from CoZAgent.C:28:
CoZUtil.h: In static member function 'static void CoZUtil::parseCommand(char*, char**, int&)':
CoZUtil.h:42: error: 'isblank' was not declared in this scope
CoZUtil.h:52: error: 'isblank' was not declared in this scope
CoZUtil.h:61: error: '::snprintf' has not been declared
CoZAgent.C: At global scope:
CoZAgent.C:51: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C: In member function 'int CoZAgent::run()':
CoZAgent.C:268: error: '::snprintf' has not been declared
CoZAgent.C: In member function 'void CoZAgent::startStdinDDReader()':
CoZAgent.C:306: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:306: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:306: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C: In member function 'void CoZAgent::startStdoutDDWriter()':
CoZAgent.C:341: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:341: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:341: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:341: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C: In member function 'void CoZAgent::startStderrDDWriter()':
CoZAgent.C:376: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:376: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:376: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C:376: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C: In member function 'void CoZAgent::startTargetProgram()':
CoZAgent.C:400: error: 'gethostname' was not declared in this scope
CoZAgent.C:440: warning: deprecated conversion from string constant to 'char*'
CoZAgent.C: In member function 'int CoZAgent::waitForChildren()':
CoZAgent.C:499: error: '::snprintf' has not been declared
*** Error code 1

Stop in /tmp/coz-toolkit-1.0.5/src.
*** Error code 1

Stop in /tmp/coz-toolkit-1.0.5/src.
*** Error code 1

Stop in /tmp/coz-toolkit-1.0.5.
[mark@bc008988 /tmp/coz-toolkit-[1.0.5]$
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

This belongs in the Co:Z forum.

We never built the target system toolkit under FreeBSD, so it's not surprising that there are changes required to support that OS. It looks like there are differences in some of the header files and possibly in the POSIX support levels.

It shouldn't be too much work to get this working - can you give us a sense of your urgency? BTW, if you are interested in purchasing a commercial support contract, we would do this for you right away.
Post Reply