tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libbozohttpd Build Errors



Hi,

I was trying to build libbozohttpd from src/libexec/httpd/libbozohttpd
but it failed to build with following errors from lint

$ make USETOOLS=no
#   compile  libbozohttpd/auth-bozo.ln
lint -chapbxzFS   -DDO_HTPASSWD    -i
/usr/src/libexec/httpd/libbozohttpd/../auth-bozo.c
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.h(180): syntax error
'BOZO_PRINTFLIKE' [249]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.h(182): syntax error
'BOZO_PRINTFLIKE' [249]
*** Error code 1

I commented out the #if defined (__GNUC__)... at line 174 in
bozohttpd.h and tried again. This time the build process succeeded to
some extent but failed again (pasted below). I am not sure if the
errors are because something is broken on my system or I am doing
something wrong. Can anyone reproduce this ?

$ make USETOOLS=no
#   compile  libbozohttpd/auth-bozo.ln
lint -chapbxzFS   -DDO_HTPASSWD    -i
/usr/src/libexec/httpd/libbozohttpd/../auth-bozo.c
#   compile  libbozohttpd/auth-bozo.o
gcc -O2 -std=gnu99  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare  -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
-Wsign-compare -Wformat=2  -Werror
-I/usr/src/libexec/httpd/libbozohttpd/.. -DDO_HTPASSWD  -DDO_HTPASSWD
-c    /usr/src/libexec/httpd/libbozohttpd/../auth-bozo.c -o
auth-bozo.o
objcopy -x auth-bozo.o
#   compile  libbozohttpd/auth-bozo.pico
gcc -O2 -std=gnu99  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare  -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
-Wsign-compare -Wformat=2  -Werror
-I/usr/src/libexec/httpd/libbozohttpd/.. -DDO_HTPASSWD  -DDO_HTPASSWD
-c    -fPIC -DPIC /usr/src/libexec/httpd/libbozohttpd/../auth-bozo.c
-o auth-bozo.pico
objcopy -x auth-bozo.pico
#   compile  libbozohttpd/auth-bozo.po
gcc -O2 -std=gnu99  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare  -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
-Wsign-compare -Wformat=2  -Werror
-I/usr/src/libexec/httpd/libbozohttpd/.. -DDO_HTPASSWD  -DDO_HTPASSWD
-c -DGPROF -DPROF    -pg
/usr/src/libexec/httpd/libbozohttpd/../auth-bozo.c -o auth-bozo.po
objcopy -X auth-bozo.po
#   compile  libbozohttpd/bozohttpd.ln
lint -chapbxzFS   -DDO_HTPASSWD    -i
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(996): syntax error '*' [249]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(999): dirp undefined [99]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(999): warning:
illegal combination of pointer and integer, op p = p [123]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(999): warning:
illegal combination of pointer and integer, op p != p [123]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1000): d undefined [99]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1000): warning:
illegal combination of pointer and integer, arg #1 [154]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1000): warning:
illegal combination of pointer and integer, op p = p [123]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1000): warning:
illegal combination of pointer and integer, op p != p [123]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1001): left operand
of '->' must be pointer to struct/union [104]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1002): left operand
of '->' must be pointer to struct/union [104]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1005): left operand
of '->' must be pointer to struct/union [104]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1007): left operand
of '->' must be pointer to struct/union [104]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1011): left operand
of '->' must be pointer to struct/union [104]
/usr/src/libexec/httpd/libbozohttpd/../bozohttpd.c(1018): warning:
illegal combination of pointer and integer, arg #1 [154]
*** Error code 1

Stop.
make: stopped in /usr/src/libexec/httpd/libbozohttpd


--
Abhinav


Home | Main Index | Thread Index | Old Index