LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2005, 07:04 AM   #1
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Rep: Reputation: 15
C++ compile problem -- HELP !!


Hi All,

I amtrying to compile from the source the ovlfs program that I get from here ( I actually need it for my Live CD project). However following the instructions, both from the Live CD site which suggest to run ./build and from the instruction that comes with the source to use ./configure make and make install, I got the following error:

make[1]: Entering directory `/usr/src/ovlfs-2.0.1/mount'
making ovlmount
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status
make[1]: *** [ovlmount] Error 1
make[1]: Leaving directory `/usr/src/ovlfs-2.0.1/mount'
make: *** [mount] Error 2

I check the Makefile under the directory mount and found the following command:

ovlmount: $(OVLFS_MOUNT_OBJ)
@echo making ovlmount
@$(CXX_FOR_TARGET) $(CFLAGS) -o ovlmount $(OVLFS_MOUNT_OBJ) $(LIB) -lfl


On the same Makefile I also found

CFLAGS ?= -g
INC ?= -I../lib
LIB ?= -L../lib -lasn

# If you have and use a real "lex", unset FLEX_FLAG.
FLEX_FLAG ?= -DFLEX
CFLAGS += $(FLEX_FLAG)

OVLFS_MOUNT_OBJ=\
lex.yy.o \
y.tab.o \
ovlmount.o

and from Rules.mk I found

AR_FOR_BUILD ?= ar
CC_FOR_BUILD ?= cc
CXX_FOR_BUILD ?= c++
LD_FOR_BUILD ?= ld

So I know that somehow the C++ compiler have failed to do what it supposed to do and it has something to do with the -lfl key. My question is what does it all mean ? I don't even know what the -lfl switch is supposed to do.

Can any C/C++ guru out there help me out on this one ?

Thanks a lot in advanced.
 
Old 01-05-2005, 07:17 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
-lfl is a linker flag telling the linker to link with the libfl library. For instance if it is -lX11, that means link with libX11 (just add lib in front). check your system to see if you have a version of flex installed.
 
Old 01-06-2005, 03:29 AM   #3
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Thanks al lot J...it works...

I install the flex package, then my ovlfs compile works like a charm....

Thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile problem wmoti Programming 5 11-08-2005 07:23 AM
Problem to compile os2 Programming 4 05-03-2005 01:36 PM
Problem getting anything to compile Frank_Drebin Slackware 4 01-13-2005 08:12 AM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Problem with compile noeffort Linux - Software 2 02-29-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration