Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample handlers don't compile #2

Open
marianoguerra opened this issue Nov 2, 2011 · 1 comment
Open

sample handlers don't compile #2

marianoguerra opened this issue Nov 2, 2011 · 1 comment

Comments

@marianoguerra
Copy link

I get this error while compiling the sample handlers

[mariano@ganesha lib]$ make test
ar rcs libm2handler.a m2handler.o m2websocket.o md5.o bstrlib.o bstraux.o
ranlib libm2handler.a
cc -g -std=c99 -Wall -Werror -I/opt/local/include -I. -c sample_handlers/body_toupper.c -o body_toupper.o
sample_handlers/body_toupper.c: In function ‘main’:
sample_handlers/body_toupper.c:23:77: error: the comparison will always evaluate as ‘false’ for the address of ‘SENDER’ will never be NULL [-Werror=address]
cc1: all warnings being treated as errors

make: *** [body_toupper.o] Error 1

@xrl
Copy link
Contributor

xrl commented Nov 6, 2011

Please look at github.com/xrl/libm2handler . That's the actively maintained branch of this code. I really should add a note somewhere -- Zed hasn't been updating mongrel2.org so it points to some old code. Sorry about the confusion -- hopefully that code builds for you! If not, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants