Skip to contentSkip to conversation

ARM port

Openvpn-devel ov 2 participants 2 messages Jun 23, 2005

lore
Share & tools
lore

ov

author
#0 lore raw

Hi all,

I'm new to this list, so I hope I'm posting to the right place. I've been working on getting openvpn to work on an ARM system, and I've run into a little trouble.

A straight ./configure; make works fine, but the resulting binary fails the loopback self tests with an assertion failure in integer.h:
TESTING ENCRYPT/DECRYPT of packet length=97
Assertion failed at integer.h:94

Oddly enough, with this code before the assert, it passes the test:
if(0 > x || x >= mod || -mod > y || y > mod)
fprintf(stderr, "x %d y %d mod %dn", x, y, mod);

Any ideas on what's going on? Has anybody seen this before? Should I be worried about this?

Oliver

__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

#1 lore raw
Quoted 11 lines · ov

Hi all,

I'm new to this list, so I hope I'm posting to the right place. I've been working on getting openvpn to work on an ARM system, and I've run into a little trouble.

A straight ./configure; make works fine, but the resulting binary fails the loopback self tests with an assertion failure in integer.h:
TESTING ENCRYPT/DECRYPT of packet length=97
Assertion failed at integer.h:94

Quoted 6 lines

Oddly enough, with this code before the assert, it passes the test:
if(0 > x || x >= mod || -mod > y || y > mod)
fprintf(stderr, "x %d y %d mod %dn", x, y, mod);

Any ideas on what's going on? Has anybody seen this before? Should I be worried about this?

This is the first report I've ever seen of an assertion in this function. Try making the function non-inline and see if that changes anything.

Which compiler/version are you using?

James