It seems to be a compiler issue as it works with gcc 4.5
$ gcc45 -v
Using built-in specs.
Target: x86_64-portbld-freebsd8.0
Configured with:
./../gcc-4.5-20090924/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local
--with-gmp=/usr/local --program-suffix=45 --libdir=/usr/local/lib/gcc45 --libexecdir=/usr/local/libexec/gcc45
--with-gxx-include-dir=/usr/local/lib/gcc45/include/c++/ --disable-libgcj --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/gcc45 --build=x86_64-portbld-freebsd8.0
Thread model: posix
gcc version 4.5.0 20090924 (experimental) (GCC)
"Markus Moeller" <huaraz@xxxxxxxxxxxxxxxx> wrote in message
news:ibphps$t7n$1@xxxxxxxxxxxxxxxxxx
Hi,
I have an application which compiles fine on Linux, but on FreeBSD I get
the following warning. What might be the reason that it fails on FreeBSD
?
gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/local/include -g -O2 -Wall
-Wno-unknown-pragmas -Wextra -Werror -Wcomment -Wpointer-arith
st-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wdeclaration-after-statement -Wshadow -MT support_ o -MD -MP -MF
.deps/support_sasl.Tpo -c -o support_sasl.o support_sasl.c
/usr/local/include/sasl/sasl.h:349: warning: function declaration isn't a
prototype
%gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
%uname -a
FreeBSD freebsd-80-64.freebsd.home 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat
Nov 21 15:02:08 UTC 2009
root@xxxxxxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC amd64
Thank you
Markus