librelp build failure on FreeBSD

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

librelp build failure on FreeBSD

Postby hkspvt on Wed Jul 23, 2008 3:55 pm

When installing librelp on FreeBSD 7 (shocker), I'm getting a compilation error at the "make" stage. This doesn't appear on Ubuntu or OpenBSD, but I'm not C-literate enough to debug it myself.

Here's the output from configure and make:

Code: Select all
qa-freebsd# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i386-unknown-freebsd7.0
checking host system type... i386-unknown-freebsd7.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... 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... freebsd7.0 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd7.0 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for library containing clock_gettime... none required
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for struct sockaddr.sa_len... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... 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 types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
configure: creating ./config.status
config.status: creating Makefile
config.status: creating relp.pc
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
*****************************************************
librelp will be compiled with the following settings:

Debug mode enabled:          no
qa-freebsd# make
make  all-recursive
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -pthread   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relp.lo -MD -MP -MF .deps/librelp_la-relp.Tpo -c -o librelp_la-relp.lo `test -f 'relp.c' || echo './'`relp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relp.lo -MD -MP -MF .deps/librelp_la-relp.Tpo -c relp.c  -fPIC -DPIC -o .libs/librelp_la-relp.o
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relp.lo -MD -MP -MF .deps/librelp_la-relp.Tpo -c relp.c -o librelp_la-relp.o >/dev/null 2>&1
mv -f .deps/librelp_la-relp.Tpo .deps/librelp_la-relp.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -pthread   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpsess.lo -MD -MP -MF .deps/librelp_la-relpsess.Tpo -c -o librelp_la-relpsess.lo `test -f 'relpsess.c' || echo './'`relpsess.c
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpsess.lo -MD -MP -MF .deps/librelp_la-relpsess.Tpo -c relpsess.c  -fPIC -DPIC -o .libs/librelp_la-relpsess.o
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpsess.lo -MD -MP -MF .deps/librelp_la-relpsess.Tpo -c relpsess.c -o librelp_la-relpsess.o >/dev/null 2>&1
mv -f .deps/librelp_la-relpsess.Tpo .deps/librelp_la-relpsess.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -pthread   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpframe.lo -MD -MP -MF .deps/librelp_la-relpframe.Tpo -c -o librelp_la-relpframe.lo `test -f 'relpframe.c' || echo './'`relpframe.c
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpframe.lo -MD -MP -MF .deps/librelp_la-relpframe.Tpo -c relpframe.c  -fPIC -DPIC -o .libs/librelp_la-relpframe.o
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-relpframe.lo -MD -MP -MF .deps/librelp_la-relpframe.Tpo -c relpframe.c -o librelp_la-relpframe.o >/dev/null 2>&1
mv -f .deps/librelp_la-relpframe.Tpo .deps/librelp_la-relpframe.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -pthread   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-tcp.lo -MD -MP -MF .deps/librelp_la-tcp.Tpo -c -o librelp_la-tcp.lo `test -f 'tcp.c' || echo './'`tcp.c
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-tcp.lo -MD -MP -MF .deps/librelp_la-tcp.Tpo -c tcp.c  -fPIC -DPIC -o .libs/librelp_la-tcp.o
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-tcp.lo -MD -MP -MF .deps/librelp_la-tcp.Tpo -c tcp.c -o librelp_la-tcp.o >/dev/null 2>&1
mv -f .deps/librelp_la-tcp.Tpo .deps/librelp_la-tcp.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -pthread   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-sendq.lo -MD -MP -MF .deps/librelp_la-sendq.Tpo -c -o librelp_la-sendq.lo `test -f 'sendq.c' || echo './'`sendq.c
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT librelp_la-sendq.lo -MD -MP -MF .deps/librelp_la-sendq.Tpo -c sendq.c  -fPIC -DPIC -o .libs/librelp_la-sendq.o
In file included from relpsrv.h:37,
                 from relpsess.h:38,
                 from sendbuf.h:36,
                 from sendq.h:37,
                 from sendq.c:37:
tcp.h:63: error: expected declaration specifiers or '...' before 'ssize_t'
tcp.h:64: error: expected declaration specifiers or '...' before 'ssize_t'
*** Error code 1

Stop in /root/librelp-0.1.1/src.
*** Error code 1

Stop in /root/librelp-0.1.1.
*** Error code 1

Stop in /root/librelp-0.1.1.
qa-freebsd#


Thanks for the help.
-HKS
hkspvt
Frequent Poster
 
Posts: 117
Joined: Thu Jun 26, 2008 6:31 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: librelp build failure on FreeBSD

Postby rgerhards on Thu Jul 24, 2008 12:35 pm

will look into it asap...
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Re: librelp build failure on FreeBSD

Postby hkspvt on Fri Jul 25, 2008 3:31 pm

Okay, just let me know. Thanks!

-HKS
hkspvt
Frequent Poster
 
Posts: 117
Joined: Thu Jun 26, 2008 6:31 pm

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron