Error code 1 when upgrading ftp-proxy port
lists at socruel.nu
lists at socruel.nu
Sun Sep 30 08:30:19 PDT 2007
Hi,
Thanx for your reply.
libevent is installed:
root at host /root # pkg_version -Iv | grep libevent
libevent-1.3d = up-to-date with index
and event.h does exist in /usr/local/include:
root at host /root # ll /usr/local/include/event.h
-r--r--r-- 1 root wheel 10944 Sep 30 16:41
/usr/local/include/event.h
I just installed libevent again, therefore the date of today 30 september.
I have deleted the ftp-proxy package, it was not usable anyway. Now an
install gives me the same result
root at host /root # cd /usr/ports/ftp/ftp-proxy/
root at host ftp-proxy # make
===> Vulnerability check disabled, database not found
===> Extracting for ftp-proxy-4.1p2_1
=> MD5 Checksum OK for ftp-proxy-4.1p2.tar.gz.
=> SHA256 Checksum OK for ftp-proxy-4.1p2.tar.gz.
===> Patching for ftp-proxy-4.1p2_1
===> ftp-proxy-4.1p2_1 depends on shared library: event-1.3d - found
===> Configuring for ftp-proxy-4.1p2_1
===> Building for ftp-proxy-4.1p2_1
Warning: Object directory not changed from original
/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2
cc -O -pipe -I/usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c ftp-proxy.c
ftp-proxy.c:32:19: event.h: No such file or directory
ftp-proxy.c: In function `client_error':
ftp-proxy.c:140: error: `EVBUFFER_EOF' undeclared (first use in this
function)
ftp-proxy.c:140: error: (Each undeclared identifier is reported only once
ftp-proxy.c:140: error: for each function it appears in.)
ftp-proxy.c:142: error: `EVBUFFER_ERROR' undeclared (first use in this
function)
ftp-proxy.c:142: error: `EVBUFFER_READ' undeclared (first use in this
function)
ftp-proxy.c:144: error: `EVBUFFER_TIMEOUT' undeclared (first use in this
function)
ftp-proxy.c:146: error: `EVBUFFER_WRITE' undeclared (first use in this
function)
ftp-proxy.c: In function `client_parse_anon':
ftp-proxy.c:186: warning: implicit declaration of function
`bufferevent_write'
ftp-proxy.c: In function `client_read':
ftp-proxy.c:239: warning: implicit declaration of function `bufferevent_read'
ftp-proxy.c: In function `end_session':
ftp-proxy.c:293: warning: implicit declaration of function `bufferevent_free'
ftp-proxy.c: In function `handle_connection':
ftp-proxy.c:493: warning: implicit declaration of function `bufferevent_new'
ftp-proxy.c:494: warning: assignment makes pointer from integer without a
cast
ftp-proxy.c:499: warning: implicit declaration of function
`bufferevent_settimeout'
ftp-proxy.c:500: warning: implicit declaration of function
`bufferevent_enable'
ftp-proxy.c:500: error: `EV_READ' undeclared (first use in this function)
ftp-proxy.c:500: error: `EV_TIMEOUT' undeclared (first use in this function)
ftp-proxy.c:503: warning: assignment makes pointer from integer without a
cast
ftp-proxy.c: In function `main':
ftp-proxy.c:592: error: storage size of 'ev' isn't known
ftp-proxy.c:592: error: storage size of 'ev_sighup' isn't known
ftp-proxy.c:592: error: storage size of 'ev_sigint' isn't known
ftp-proxy.c:592: error: storage size of 'ev_sigterm' isn't known
ftp-proxy.c:768: warning: implicit declaration of function `event_init'
ftp-proxy.c:772: warning: implicit declaration of function `signal_set'
ftp-proxy.c:775: warning: implicit declaration of function `signal_add'
ftp-proxy.c:779: warning: implicit declaration of function `event_set'
ftp-proxy.c:779: error: `EV_READ' undeclared (first use in this function)
ftp-proxy.c:779: error: `EV_PERSIST' undeclared (first use in this function)
ftp-proxy.c:780: warning: implicit declaration of function `event_add'
ftp-proxy.c:785: warning: implicit declaration of function `event_dispatch'
ftp-proxy.c:592: warning: unused variable `ev'
ftp-proxy.c:592: warning: unused variable `ev_sighup'
ftp-proxy.c:592: warning: unused variable `ev_sigint'
ftp-proxy.c:592: warning: unused variable `ev_sigterm'
ftp-proxy.c: In function `server_error':
ftp-proxy.c:904: error: `EVBUFFER_EOF' undeclared (first use in this
function)
ftp-proxy.c:906: error: `EVBUFFER_ERROR' undeclared (first use in this
function)
ftp-proxy.c:906: error: `EVBUFFER_READ' undeclared (first use in this
function)
ftp-proxy.c:908: error: `EVBUFFER_WRITE' undeclared (first use in this
function)
ftp-proxy.c:910: error: `EVBUFFER_TIMEOUT' undeclared (first use in this
function)
*** Error code 1
Stop in /usr/ports/ftp/ftp-proxy/work/ftp-proxy-4.1p2.
*** Error code 1
Stop in /usr/ports/ftp/ftp-proxy.
I looked up the Makefile in work/ftp-proxy-4.1p2 and saw
CFLAGS+= -I${.CURDIR}
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
-Wno-uninitialized
LDADD+= -levent -L${PREFIX}/lib
DPADD+= ${LIBEVENT}
which means that /usr/local/include is not referenced in CFLAGS as is
mentioned in the Makefile of the port. After linking
/usr/local/include/event.h to work/ftp-proxy-4.1p2/event.h all is OK!
Cheers,
Lars.
> Hello,
>
> your errors seem to be related to libevent. From your logs portmaster
> shows that you have libevent-1.3d installed. Is that really the case?
> Does /usr/local/include/event.h exist? Because this file could not be
> found by the compiler.
>
> Try reinstalling libevent and after that try to update ftp-proxy again.
>
>
> - Christian
>
>
>
More information about the freebsd-ports
mailing list