Page 1 of 1

Problem installing, compiling problem

Posted: Sun Jan 23, 2011 12:45 pm
by rolvs
Hi!

I am trying to install openvpn-2.1.4 but at the end of the compiling i get this error message:

Code: Select all

make[2]: Entering directory `/root/openvpn/openvpn-2.1.4'
gcc  -g -O2   -o openvpn base64.o buffer.o crypto.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o httpdigest.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ieproxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o cryptoapi.o  -lssl -lcrypto -ldl
buffer.o: In function `buf_len':
/root/openvpn/openvpn-2.1.4/buffer.h:146: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.h:146: undefined reference to `__builtin_expect'
buffer.o: In function `array_mult_safe':
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
buffer.o:/root/openvpn/openvpn-2.1.4/buffer.c:40: more undefined references to `__builtin_expect' follow
collect2: ld returned 1 exit status
make[2]: *** [openvpn] Error 1
make[2]: Leaving directory `/root/openvpn/openvpn-2.1.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/openvpn/openvpn-2.1.4'
make: *** [all] Error 2
Whats wrong and how do i fix it?

Re: Problem installing, compiling problem

Posted: Tue Jan 25, 2011 4:37 pm
by gladiatr72
You might be a mile or twelve ahead to look for a package for your distro. With that being said, what OS/distro/version are you using? Have you tried a more recent version of openvpn?

Anyway, in the famous words of a very annoying 80's movie-robot: need more input
:)

Regards,
Stephen