erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 268 forks source link

rebar compile has stopped working #96

Closed vdzk closed 12 years ago

vdzk commented 12 years ago

My project doesn't compile with rebar compile anymore, only with make.

$ rebar compile
==> rel (compile)
==> yaws (compile)
c_src/yaws_sendfile_drv.o: In function `driver_init':
/home/andrey/yaws/c_src/yaws_sendfile_drv.c:325: multiple definition of `driver_init'
c_src/setuid_drv.o:/home/andrey/yaws/c_src/setuid_drv.c:125: first defined here
collect2: ld returned 1 exit status
ERROR: cc c_src/epam.o c_src/hashtable.o c_src/setuid_drv.o c_src/yaws_sendfile_drv.o  -shared  -L/usr/local/lib/erlang/lib/erl_interface-3.7.6/lib -lerl_interface -lei -o priv/yaws_drv.so failed with error: 1 and output:
c_src/yaws_sendfile_drv.o: In function `driver_init':
/home/andrey/yaws/c_src/yaws_sendfile_drv.c:325: multiple definition of `driver_init'
c_src/setuid_drv.o:/home/andrey/yaws/c_src/setuid_drv.c:125: first defined here
vinoski commented 12 years ago

Please make sure your rebar is up to date. I suggest grabbing the latest off of github: https://github.com/basho/rebar

vdzk commented 12 years ago

Updating rebar has helped. Thank you.