Neil Hopcroft

A digital misfit

Build break in fltk – build 32

The FLTK build has broken with this error:

Compiling flstring.c…
/usr/lib/gcc/x86_64-amazon-linux/4.8.2/../../../../lib64/crt1.o: In function `_start’:
(.text+0x20): undefined reference to `main’
collect2: error: ld returned 1 exit status
make[1]: *** [flstring.o] Error 1

I don’t see anything in either of the two changes introduced in this build to cause this error, which suggests it might have been introduced by a change to automake version, or some other environmental change.
Reading the README for the project suggests that rather than using ‘./’ the first step should be ‘make makeinclude’ followed by ‘./configure’ – build configuration changed to reflect this.
The change to ‘make makeinclude’ didn’t fix this problem, but I noticed it wasn’t picking up the freetype2 package from pkgconfig, adding freetype2.pc to the PKG_CONFIG_PATH solves this problem and the build is now working again.

Leave a Reply

Your email address will not be published.