OpenMotif 2.3.1 on PPC

Hi to all,
i'm trying to compile openMotif 2.3.1 on a 64bit PPC architecture.
After many unsuccessful attempts i'm not able to go on over this error:

compiling step:
gcc -m64 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -o wmluiltok wmluiltok.o

error:
/usr/lib64/crt1.o:(.data.rel.ro.local+0x8): undefined reference to `main'

Any ideas? CFLAGS, LDFLAGS, others?

many thanks,
gab


fgenolini

fgenolini's picture

Re: OpenMotif 2.3.1 on PPC

%option main

with this line at the top of the offending .l file, flex will generate the main function and GCC will be happy
OpenMotif assumes the old lex, but most Linux distributions have flex which behaves differently