Fruneau / pfixtools

The pfixtools project is a collection of postfix-related tools. The pfixtools are written in C.
Other
26 stars 7 forks source link

problems with make all doc command #15

Open Keiishi opened 10 years ago

Keiishi commented 10 years ago

Hello,

I trying to install pfixtools and got some error at make stage.

After downloading and installing dependences, I use commands

git submodule update -i

Next I use command make all doc and got message as below

make[1]: Entering directory /home/xxx/pfixtools/common' cc -pipe -O2 -funsigned-char -fno-strict-aliasing -Wall -Wextra -Werror -Wchar-subscripts -Wundef -Wshadow -Wwrite-strings -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self -Wpointer-arith -Wredundant-decls -Wformat-nonliteral -Wno-format-zero-length -Wno-format-y2k -Wmissing-format-attribute -Wsequence-point -Wparentheses -Wmissing-declarations --std=gnu99 -I../ -I../common -fno-strict-aliasing -MMD -MT ".server.dep .server.o" -MF .server.dep -g -c -o .server.o server.c make[1]: Leaving directory/home/xxx/pfixtools/common'

server.c:36:16: error: ev.h: No such file or directory server.c:41: error: field ‘io’ has incomplete type server.c:71: error: field ‘timer’ has incomplete type cc1: warnings being treated as errors server.c: In function ‘server_io_wipe’: server.c:100: error: implicit declaration of function ‘ev_io_stop’ server.c: In function ‘client_io_rw’: server.c:179: error: implicit declaration of function ‘ev_io_set’ server.c:179: error: ‘EV_READ’ undeclared (first use in this function) server.c:179: error: (Each undeclared identifier is reported only once server.c:179: error: for each function it appears in.) server.c:179: error: ‘EV_WRITE’ undeclared (first use in this function) server.c:180: error: implicit declaration of function ‘ev_io_start’ server.c: In function ‘client_io_ro’: server.c:189: error: ‘EV_READ’ undeclared (first use in this function) server.c: At top level: server.c:214: error: expected ‘)’ before ‘struct’ server.c: In function ‘client_register’: server.c:247: error: implicit declaration of function ‘ev_io_init’ server.c:247: error: ‘client_cb’ undeclared (first use in this function) server.c:247: error: ‘EV_READ’ undeclared (first use in this function) server.c: At top level: server.c:275: error: expected ‘)’ before ‘struct’ server.c: In function ‘start_tcp_listener’: server.c:325: error: ‘listener_cb’ undeclared (first use in this function) server.c:325: error: ‘EV_READ’ undeclared (first use in this function) server.c: In function ‘start_unix_listener’: server.c:354: error: ‘listener_cb’ undeclared (first use in this function) server.c:325: error: ‘EV_READ’ undeclared (first use in this function) server.c: In function ‘start_unix_listener’: server.c:354: error: ‘listener_cb’ undeclared (first use in this function) server.c:354: error: ‘EV_READ’ undeclared (first use in this function) server.c: In function ‘timeout_wipe’: server.c:368: error: implicit declaration of function ‘ev_timer_stop’ server.c: At top level: server.c:379: error: expected ‘)’ before ‘struct’ server.c: In function ‘start_timer’: server.c:397: error: implicit declaration of function ‘ev_timer_set’ server.c:400: error: implicit declaration of function ‘ev_timer_init’ server.c:400: error: ‘timeout_cb’ undeclared (first use in this function) server.c:404: error: implicit declaration of function ‘ev_timer_start’ server.c: In function ‘server_init’: server.c:420: error: implicit declaration of function ‘ev_default_loop’ server.c:420: error: assignment makes pointer from integer without a cast server.c: In function ‘server_shutdown’: server.c:430: error: implicit declaration of function ‘ev_default_destroy’ server.c: At top level: server.c:438: error: expected ‘)’ before ‘struct’ server.c:450: error: expected ‘)’ before ‘struct’ server.c: In function ‘server_loop’: server.c:458: error: storage size of ‘ev_sighup’ isn’t known server.c:459: error: storage size of ‘ev_sigint’ isn’t known server.c:460: error: storage size of ‘ev_sigterm’ isn’t known server.c:469: error: implicit declaration of function ‘ev_signal_init’ server.c:469: error: ‘refresh_cb’ undeclared (first use in this function) server.c:470: error: implicit declaration of function ‘ev_signal_start’ server.c:472: error: ‘exit_cb’ undeclared (first use in this function) server.c:479: error: implicit declaration of function ‘ev_loop’ server.c:460: error: unused variable ‘ev_sigterm’ server.c:459: error: unused variable ‘ev_sigint’ server.c:458: error: unused variable ‘ev_sighup’ make[1]: * [.server.o] Error 1 make[1]: Leaving directory `/home/xxx/pfixtools/common' make: * [all-recurse] Error 2

Unfortunatelly I dont know how to, make that working :/, could you help me with that?

Best regards Keiishi

Fruneau commented 9 years ago

Hi,

The first line "server.c:36:16: error: ev.h: No such file or directory" tends to say libev development headers are missing. How to install these will depend on the distribution/OS you are using. On debian-related distributions "apt-get install libev-dev" will do the trick, on redhat-related "yum install libev-devel"