westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.61k stars 537 forks source link

Out of source code tree builds no longer works in flex 2.6.4 #522

Closed libTorrentUser closed 2 years ago

libTorrentUser commented 2 years ago

The newest release (flex 2.6.4) will no longer "install" if built out of source code tree.

Everything will be fine during the configure and make stages. But when I do make DESTDIR=somedir install-strip, the install will fail, complaining it cannot find libfl.so.2.0.0

here is the relevant part of the build log

    make[3]:` Entering directory '/home/vm/flex/obj/src'
     /usr/bin/mkdir -p '/home/vm/flex/package/usr/lib'
     /bin/sh ../libtool   --mode=install /usr/bin/install -c -s  libfl.la '/home/vm/flex/package/usr/lib'
    libtool: install: /usr/bin/install -c .libs/libfl.so.2.0.0 /home/vm/flex/package/usr/lib/libfl.so.2.0.0
    /usr/bin/install: cannot stat '.libs/libfl.so.2.0.0': No such file or directory
    make[3]: *** [Makefile:597: install-libLTLIBRARIES] Error 1
libTorrentUser commented 2 years ago

I did a bunch of tests and I'm not sure why exactly libfl.so.2.0.0 wasn't being created. Maybe there was something wrong with my system, I don't know. After a clean boot, everything seems to be working just fine. I did see the error once more, but I wasn't able to reproduce and now build seems to be working fine.