[wmluiltok] Error 1

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
[wmluiltok] Error 1

Submitted by joyssstan on Mon, 04/26/2010 - 04:44.

While I 'make', I had the below error.

Making all in tools
make[1]: Entering directory `/home/birg/Desktop/openmotif-2.3.3/tools'
Making all in wml
make[2]: Entering directory `/home/birg/Desktop/openmotif-2.3.3/tools/wml'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -o wmluiltok wmluiltok.o -lXp
libtool: link: gcc -g -O2 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -o wmluiltok wmluiltok.o -lXp
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [wmluiltok] Error 1
make[2]: Leaving directory `/home/birg/Desktop/openmotif-2.3.3/tools/wml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/birg/Desktop/openmotif-2.3.3/tools'
make: *** [all-recursive] Error 1

After browsing through the forum, the problem seem to caused by flex and there are advice saying that adding %option main in front of wmluiltok.l would solve the problem. But I'm wondering where wmluiltok.l is located? can someone please help me on this?

Thanks.

Sat, 08/20/2011 - 16:07#1

Sat, 08/20/2011 - 16:07#1

RobArthan

I expect joyssstan

I expect joyssstan remembered the find command and solved the problem. In case it helps anybody else, I had the same problem on Fedora 15. The advice about %option main is still sound. You put it as the first line in openmotif-2.3.3/tools/wml/wmluiltok.l. N.b., you will need to install flex and byacc (which can be located by a query in Add/Remove Programs).

Regards,

Rob.