Problem with Flex shared objects

Robert Connolly robert at linuxfromscratch.org
Fri Jun 1 18:23:49 PDT 2007


On Friday June 1 2007 08:01:55 pm T_B wrote:
> I was trying to build gradm on my HLFS system (2.6 kernel, glibc).
>
> Initially I got an error indicating that -lfl could not be found.  I traced
> the error message back to a problem with the flex shared object libraries.
> The build instructions have the following lines:
>
>     gcc -shared -Wl,-soname,libfl.so.2.5.33 \
>         -o libfl.so.2.5.33 -fPIC libmain.o libyywrap.o
>     rm -v /usr/lib/libfl.a
>     install -v libfl.so.2.5.33 /usr/lib/libfl.so.2.5.33
>     ln -vs 2.5.33 /usr/lib/libfl.so
>
> I think the last line should be:
>
>     ln -vs libfl.so.2.5.33 /usr/lib/libfl.so
>
> I fixed the broken link and the not found error went away, but the gradm
> build then complained about not being able to link to yexx.  So I think
> something else is wrong in trying to make the shared object for flex.  If I
> leave these linkes out of the flex build and keep the static libfl.a than I
> can get gradm to build fine.
>
> Bill

Someone reported this to me before. Flex should be modified with libtool to 
build libfl.so and get flex to link to it. I think currently libfl.so is 
missing a .o file, and doesn't work.

robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20070601/8c67d8f9/attachment.sig>


More information about the hlfs-dev mailing list