[OpenVCP] build on centos

erik pepermans peperjam at skynet.be
Mon Apr 21 21:02:40 UTC 2008


Good evening,

Installed the iptables source; now I get :

gcc -g -O2 -I/usr/include/libxml2   -DPACKAGE_NAME=\"openvcpd\"
-DPACKAGE_TARNAME=\"openvcpd\" -DPACKAGE_VERSION=\"0.4\ rc1\"
-DPACKAGE_STRING=\"openvcpd\ 0.4\ rc1\"
-DPACKAGE_BUGREPORT=\"gerrit at t4a.net\" -DHAVE_LIBVSERVER=1
-DHAVE_LIBSQLITE3=1 -DHAVE_LIBXML2=1 -DHAVE_LIBPCAP=1 -DHAVE_LIBDL=1
-DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_NETINET_IN_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_SOCKET_H=1
-DHAVE_SYS_VFS_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1
-DHAVE_WORKING_FORK=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SOCKET_H=1
-DSELECT_TYPE_ARG1=int -DSELECT_TYPE_ARG234=\(fd_set\ \*\)
-DSELECT_TYPE_ARG5=\(struct\ timeval\ \*\) -DRETSIGTYPE=void
-DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1
-DHAVE_RMDIR=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1
-DHAVE_STRSTR=1  -DOPENVCP_CONFIG=\"/etc/openvcpd.conf\"
-DOPENVCP_DATA=\"@datarootdir@/openvcpd\" -Ilib/ -Isrc/ -rdynamic
-DREVISION=\"`svnversion | sed 's/M//'`\" -o openvcpd src/main.c src/misc.o
src/node.o src/traffic.o src/logtraffic.o src/setup.o src/set.o
src/parseconfig.o src/get.o src/request.o lib/fs.o lib/strings.o src/xml.o
src/filter.o src/bandwidth.o src/trafficlimit.o -ldl -lpcap -lxml2 -lsqlite3
-lvserver 
src/filter.o: In function `ovcp_create_chains':
/usr/src/openvcp/trunk/daemon/src/filter.c:49: undefined reference to
`iptc_init'
/usr/src/openvcp/trunk/daemon/src/filter.c:58: undefined reference to
`iptc_first_chain'
/usr/src/openvcp/trunk/daemon/src/filter.c:58: undefined reference to
`iptc_next_chain'
/usr/src/openvcp/trunk/daemon/src/filter.c:79: undefined reference to
`iptc_create_chain'
/usr/src/openvcp/trunk/daemon/src/filter.c:83: undefined reference to
`iptc_commit'
/usr/src/openvcp/trunk/daemon/src/filter.c:87: undefined reference to
`iptc_init'
/usr/src/openvcp/trunk/daemon/src/filter.c:89: undefined reference to
`iptc_first_rule'
/usr/src/openvcp/trunk/daemon/src/filter.c:89: undefined reference to
`iptc_next_rule'
/usr/src/openvcp/trunk/daemon/src/filter.c:91: undefined reference to
`iptc_get_target'
/usr/src/openvcp/trunk/daemon/src/filter.c:113: undefined reference to
`iptc_first_rule'
/usr/src/openvcp/trunk/daemon/src/filter.c:113: undefined reference to
`iptc_next_rule'
/usr/src/openvcp/trunk/daemon/src/filter.c:115: undefined reference to
`iptc_get_target'
/usr/src/openvcp/trunk/daemon/src/filter.c:136: undefined reference to
`iptc_commit'
/usr/src/openvcp/trunk/daemon/src/filter.c:70: undefined reference to
`iptc_create_chain'
/usr/src/openvcp/trunk/daemon/src/filter.c:53: undefined reference to
`iptc_strerror'
src/filter.o: In function `ovcp_create_tables':
/usr/src/openvcp/trunk/daemon/src/filter.c:322: undefined reference to
`iptc_init'
/usr/src/openvcp/trunk/daemon/src/filter.c:330: undefined reference to
`iptc_flush_entries'
/usr/src/openvcp/trunk/daemon/src/filter.c:331: undefined reference to
`iptc_flush_entries'
/usr/src/openvcp/trunk/daemon/src/filter.c:333: undefined reference to
`iptc_commit'
/usr/src/openvcp/trunk/daemon/src/filter.c:337: undefined reference to
`iptc_strerror'
/usr/src/openvcp/trunk/daemon/src/filter.c:326: undefined reference to
`iptc_strerror'
collect2: ld returned 1 exit status
make: *** [openvcpd] Error 1

What else am I missing ?

[root at ns include]# cd libiptc
[root at ns libiptc]# ls
ipt_kernel_headers.h  libip6tc.h  libiptc.h

Brgds
Erik

-----Oorspronkelijk bericht-----
Van: openvcp-bounces at lists.openvcp.org
[mailto:openvcp-bounces at lists.openvcp.org] Namens Cryptronic
Verzonden: zondag 20 april 2008 16:02
Aan: openvcp at lists.openvcp.org
Onderwerp: Re: [OpenVCP] build on centos


Hi,

I found a solution:

just download ftp://ftp.netfilter.org/pub/iptables/iptables-1.3.5.tar.bz2
and 
extract it.

After that cp the includes/libiptc dir to /usr/include rerun configure and 
build

best regards

Am Freitag, 18. April 2008 00:02:07 schrieb erik pepermans:
> Hi,
>
> This returns :
>
> find /usr -name *iptc*
>
> /usr/lib64/libiptc.a 
> /usr/share/vim/vim70/autoload/javascriptcomplete.vim
> /usr/lib/libiptc.a
>
> Brgds
> Erik
>
> -----Oorspronkelijk bericht-----
> Van: openvcp-bounces at lists.openvcp.org 
> [mailto:openvcp-bounces at lists.openvcp.org] Namens Cryptronic
> Verzonden: donderdag 17 april 2008 22:53
> Aan: openvcp at lists.openvcp.org
> Onderwerp: Re: [OpenVCP] build on centos
>
> Am Donnerstag, 17. April 2008 20:55:03 schrieb erik pepermans:
> > Hi Gerrit,
> >
> > Yes - I did :
> >
> > iptables-devel.x86_64                    1.3.5-1.2.1
installed
>
> what does
>
> find /usr -name *iptc*
>
> return?
>
> > Matched from:
> > iptables-devel
> >
> > Brgds
> > Erik
>
> _______________________________________________
> OpenVCP mailing list
> OpenVCP at lists.openvcp.org 
> http://lists.openvcp.org/cgi-bin/mailman/listinfo/openvcp
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.


_______________________________________________
OpenVCP mailing list
OpenVCP at lists.openvcp.org
http://lists.openvcp.org/cgi-bin/mailman/listinfo/openvcp

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the OpenVCP mailing list