error when compling motif
by margu from LinuxQuestions.org on (#4Z2K6)
I am trying to compile motif 2.3.8 on RHEL 7.7.
The compilation stops with the following error:
libtool: link: gcc -g -O2 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng15 -o wmluiltok wmluiltok.o -lXp -lfontconfig -lfreetype -lXft -ljpeg -lpng
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [wmluiltok] Error 1
Has anybody else faced this error and how did you solve it?


The compilation stops with the following error:
libtool: link: gcc -g -O2 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng15 -o wmluiltok wmluiltok.o -lXp -lfontconfig -lfreetype -lXft -ljpeg -lpng
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [wmluiltok] Error 1
Has anybody else faced this error and how did you solve it?