This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

automake, flex, libfl.a


Let me begin by saying that it was a tough decision whether to mail this
list, an automake one or a flex one.

Im trying to use automake, autoconf and libtool to build, in my case, a dll.
Heres the error/warning Im generating;

*** Warning: linker path does not have real file for library -lfl.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libfl and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libfl.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

My understanding is that I should have @LEXLIB@ in myLibrary_LIBADD in my
Makefile.am if Im going to be using lex/flex. On my platform, @LEXLIB@ has
the value -lfl, i.e. it instructs /usr/lib/libfl.a to be used during the
linking of my program. But, as you can see from the message above, this
causes problems and prevents a proper shared library (dll) from being
generated (I get a static library instead). When I remove @LEXLIB@ it seems
to sort it out (admitedly there are other linker errors that I havent sorted
yet).

My problem is that I think I should be using @LEXLIB@ if my source is to be
buildable on other platforms. So the question is, is there something unusual
about Cygwins libfl.a that is causing my problem and hence I should know
about? I just dont understand that error, ``not have real file''???

Please assist.

A


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]