Thread: Building on FreeBSD 12

Started: 2019-11-27 16:30:33
Last activity: 2019-11-27 16:30:33
Topics: SAC Help
Jonathan
2019-11-27 16:30:33
Hi All,

I'm on FreeBSD 12 using gcc8. I'm receiving some errors during compile
that might be due to changes in gcc8 from pervious versions. It might be
an old version of libedit with gcc8 causing the issue:

gcc -DHAVE_CONFIG_H -I. -I.. -O -Wall -pipe -g3 -c vi.c
vi.c:920:74: error: macro "__weak_reference" requires 2 arguments, but
only 1 given
extern char *get_alias_text(const char *)
__weak_reference(get_alias_text);

^
vi.c: In function 'get_alias_text':
vi.c:920:43: error: expected declaration specifiers before
'__weak_reference'
extern char *get_alias_text(const char *)
__weak_reference(get_alias_text);
^~~~~~~~~~~~~~~~
vi.c:925:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'{' token
{
^
vi.c:955:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'{' token
{
^
vi.c:1000:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
{
^
vi.c:1057:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
{
^
vi.c:1106:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
{
^
vi.c:920:29: error: parameter name omitted
extern char *get_alias_text(const char *)
__weak_reference(get_alias_text);
^~~~~~~~~~~~
vi.c:1127: error: expected '{' at end of input
}

Thanks

Jonathan


Page built 20:08:26 | v.b'ea7a92