[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ikev2-devel
Subject:    Re: [Ikev2-devel] Make wrong!
From:       <sgros () zemris ! fer ! hr>
Date:       2013-09-04 19:57:47
Message-ID: 522790BB.6070905 () zemris ! fer ! hr
[Download RAW message or body]

These three lines say what's wrong:

In file included from pfkey_linux.c:57: crypto.h:50: error: conflicting
types for 'encrypt'
/usr/include/unistd.h:1135: note: previous declaration of 'encrypt' was here

in short, conflicting definitions of encrypt function. One of those
definitions is wrong (unexpected by the ike's code) and should be
removed. How, depends first on which one is superfluous...

SG


On 01.09.2013 15:51, Huang, Zhenxing wrote:
> HI:
> 
>          Ikev2-devel, we on centos 6.4 install the openiked2-2.0 , when
> we are exec “make” to compilation the program ,it say :
> 
> .
> 
> .
> 
> .
> 
> .
> 
> .
> 
> _gcc -DPACKAGE_NAME=\"ikev2\" -DPACKAGE_TARNAME=\"ikev2\"
> -DPACKAGE_VERSION=\"1.1\" "-DPACKAGE_STRING=\"ikev2 1.1\""
> -DPACKAGE_BUGREPORT=\"ikev2-devel@lists.sourceforge.net\"
> -DPACKAGE=\"ikev2\" -DVERSION=\"1.1\" -DYYTEXT_POINTER=1
> -DSTDC_HEADERS=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_DLFCN_H=1
> -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCURL=1 -DSTDC_HEADERS=1
> -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_CURL_CURL_H=1
> "-DHAVE_PFKEY_POLICY_PRIORITY=/**/" -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -I.
> -I/usr/src/linux/include -DPFKEY_LINUX -I/usr/src/linux/include
> -D_GNU_SOURCE -DOPENSSL -DCERT_AUTH -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -Wall -g -O2 -MT cfg.lo -MD -MP -MF
> .deps/cfg.Tpo -c cfg.c -o cfg.o >/dev/null 2>&1_
> 
> _mv -f .deps/cfg.Tpo .deps/cfg.Plo_
> 
> _/bin/sh ../libtool --tag=CC   --mode=compile gcc
> -DPACKAGE_NAME=\"ikev2\" -DPACKAGE_TARNAME=\"ikev2\"
> -DPACKAGE_VERSION=\"1.1\" -DPACKAGE_STRING=\"ikev2\ 1.1\"
> -DPACKAGE_BUGREPORT=\"ikev2-devel@lists.sourceforge.net\"
> -DPACKAGE=\"ikev2\" -DVERSION=\"1.1\" -DYYTEXT_POINTER=1
> -DSTDC_HEADERS=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_DLFCN_H=1
> -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCURL=1 -DSTDC_HEADERS=1
> -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_CURL_CURL_H=1
> -DHAVE_PFKEY_POLICY_PRIORITY=/\*\*/ -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -I. 
> -I/usr/src/linux/include  -DPFKEY_LINUX -I/usr/src/linux/include
> -D_GNU_SOURCE -DOPENSSL -DCERT_AUTH  -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   -Wall -g -O2 -MT pfkey_linux.lo -MD -MP
> -MF .deps/pfkey_linux.Tpo -c -o pfkey_linux.lo pfkey_linux.c_
> 
> _gcc -DPACKAGE_NAME=\"ikev2\" -DPACKAGE_TARNAME=\"ikev2\"
> -DPACKAGE_VERSION=\"1.1\" "-DPACKAGE_STRING=\"ikev2 1.1\""
> -DPACKAGE_BUGREPORT=\"ikev2-devel@lists.sourceforge.net\"
> -DPACKAGE=\"ikev2\" -DVERSION=\"1.1\" -DYYTEXT_POINTER=1
> -DSTDC_HEADERS=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_DLFCN_H=1
> -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCURL=1 -DSTDC_HEADERS=1
> -DHAVE_ARPA_INET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_SOCKET_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_CURL_CURL_H=1
> "-DHAVE_PFKEY_POLICY_PRIORITY=/**/" -DHAVE_MEMSET=1 -DHAVE_SOCKET=1 -I.
> -I/usr/src/linux/include -DPFKEY_LINUX -I/usr/src/linux/include
> -D_GNU_SOURCE -DOPENSSL -DCERT_AUTH -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -Wall -g -O2 -MT pfkey_linux.lo -MD -MP -MF
> .deps/pfkey_linux.Tpo -c pfkey_linux.c  -fPIC -DPIC -o .libs/pfkey_linux.o_
> 
> _In file included from pfkey_linux.c:56:_
> 
> _config.h:348:2: warning: #warning "Analyze this field and the proposals
> field above"_
> 
> _In file included from pfkey_linux.c:56:_
> 
> _config.h:599: warning: 'struct ca_item' declared inside parameter list_
> 
> _config.h:599: warning: its scope is only this definition or
> declaration, which is probably not what you want_
> 
> _config.h:627: warning: 'struct radius_config' declared inside parameter
> list_
> 
> _In file included from pfkey_linux.c:57:_
> 
> _crypto.h:50: error: conflicting types for 'encrypt'_
> 
> _/usr/include/unistd.h:1135: note: previous declaration of 'encrypt' was
> here_
> 
> _pfkey_linux.c:1010:2: warning: #warning "Potential memory leak in sa2"_
> 
> _pfkey_linux.c:2929: warning: initialization from incompatible pointer type_
> 
> _make[1]: *** [pfkey_linux.lo] error 1_
> 
> _make[1]: Leaving directory `/usr/local/etc/ikev2-2.0/src'_
> 
> _make: *** [all-recursive] error 1_
> 
> _[root@GW ikev2-2.0]#_
> 
>  
> 
>  
> 
> What is wrong ?
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> 
> 
> 
> _______________________________________________
> Ikev2-devel mailing list
> Ikev2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ikev2-devel
> 


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Ikev2-devel mailing list
Ikev2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ikev2-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic