Strange error when compile vpnc

I was playing around with Arch linux recently. It’s a minimalistic distro which lets you configure your system the way you want. Advatanges are booting time ( man it’s fast ), rolling release system so it doesn’t require you to install new release every 6 months like other distros, good package management tool alongside with the ports-like ABS to build things from source. Disadavantges are the time consuming configuration and you really need some linux knowledge, otherwise you will go back to Ubuntu someday :p

Back on topic, i rarely have any trouble compiling vpnc before, but this time it’s quite strange:

gcc -O3 -g -W -Wall -Wmissing-declarations -Wwrite-strings -DVERSION=\”0.5.1\” -c -o sysdep.o sysdep.c
In file included from config.h:27,
from sysdep.h:31,
from sysdep.c:71:
vpnc-debug.h:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
vpnc-debug.h:16: warning: ’struct debug_strings’ declared inside parameter list
vpnc-debug.h:16: warning: its scope is only this definition or declaration, which is probably not what you want
vpnc-debug.h:18: error: array type has incomplete element type
vpnc-debug.h:19: error: array type has incomplete element type
….
vpnc-debug.h:20: error: array type has incomplete element type

Turn out that you just need to define the locale with “sudo locale-gen” after editing the /etc/locale ( the location may differ with other distros )

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • StumbleUpon
  • Ma.gnolia
  • Reddit

Related posts:

Post a Comment

Your email is never published nor shared. Required fields are marked *