LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-29-2009, 01:03 PM   #1
voyage-linux-noob
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Problem installing flex-2.5.33.tar.gz on linux (debian); ‘make’ fails


Hello, I'm trying to install 'flex'. I don't have a previous version of flex installed. I'm running a stripped down version of linux, so I don't have apt-get or yum. To install I untarred the flex package (flex-2.5.33.tar.gz) and ran ./configure (which works). However, then I ran make and it failed. I've attached the output of ./configure and make if that helps. What should I do? Thanks in advance.

-Nick

###############################################################################
CONFIGURE
###############################################################################
meshLium-AX:/mnt/sda/flex-2.5.33# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether ln -s works... no, using cp -p
checking for ranlib... ranlib
checking for bison... bison
checking for help2man... help2man
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/local/bin/m4
checking for GNU m4... yes
checking for indent... indent
configure: WARNING: no indent program found: make indent target will not function
checking for log in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/params.h usability... no
checking sys/params.h presence... no
checking for sys/params.h... no
checking cunistd usability... no
checking cunistd presence... no
checking for cunistd... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for size_t... yes
checking whether __func__ is declared... yes
configure: creating ./config.status
config.status: creating flex.spec
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating examples/fastwc/Makefile
config.status: creating examples/manual/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/TEMPLATE/Makefile
config.status: creating tests/test-array-nr/Makefile
config.status: creating tests/test-array-r/Makefile
config.status: creating tests/test-basic-nr/Makefile
config.status: creating tests/test-basic-r/Makefile
config.status: creating tests/test-bison-yylloc/Makefile
config.status: creating tests/test-bison-yylval/Makefile
config.status: creating tests/test-c-cpp-nr/Makefile
config.status: creating tests/test-c-cpp-r/Makefile
config.status: creating tests/test-header-nr/Makefile
config.status: creating tests/test-header-r/Makefile
config.status: creating tests/test-include-by-buffer/Makefile
config.status: creating tests/test-include-by-push/Makefile
config.status: creating tests/test-include-by-reentrant/Makefile
config.status: creating tests/test-multiple-scanners-nr/Makefile
config.status: creating tests/test-multiple-scanners-r/Makefile
config.status: creating tests/test-noansi-nr/Makefile
config.status: creating tests/test-noansi-r/Makefile
config.status: creating tests/test-prefix-nr/Makefile
config.status: creating tests/test-prefix-r/Makefile
config.status: creating tests/test-pthread/Makefile
config.status: creating tests/test-string-nr/Makefile
config.status: creating tests/test-string-r/Makefile
config.status: creating tests/test-yyextra/Makefile
config.status: creating tests/test-lineno-nr/Makefile
config.status: creating tests/test-lineno-r/Makefile
config.status: creating tests/test-linedir-r/Makefile
config.status: creating tests/test-debug-r/Makefile
config.status: creating tests/test-debug-nr/Makefile
config.status: creating tests/test-mem-nr/Makefile
config.status: creating tests/test-mem-r/Makefile
config.status: creating tests/test-posix/Makefile
config.status: creating tests/test-posixly-correct/Makefile
config.status: creating tests/test-table-opts/Makefile
config.status: creating tests/test-c++-basic/Makefile
config.status: creating tests/test-bison-nr/Makefile
config.status: creating tests/test-reject/Makefile
config.status: creating tests/test-c++-multiple-scanners/Makefile
config.status: creating tests/test-top/Makefile
config.status: creating tests/test-rescan-nr/Makefile
config.status: creating tests/test-rescan-r/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing depfiles commands



###############################################################################
MAKE
###############################################################################
meshLium-AX:/mnt/sda/flex-2.5.33# make
make all-recursive
make[1]: Entering directory `/mnt/sda/flex-2.5.33'
Making all in .
make[2]: Entering directory `/mnt/sda/flex-2.5.33'
gcc -g -O2 -o flex ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o options.o scanopt.o buf.o tables.o tables_shared.o filter.o regex.o -lm
dfa.o: In function `ntod':
/mnt/sda/flex-2.5.33/dfa.c:823: undefined reference to `flex_free'
/mnt/sda/flex-2.5.33/dfa.c:824: undefined reference to `flex_free'
gen.o: In function `gentabs':
/mnt/sda/flex-2.5.33/gen.c:1476: undefined reference to `flex_free'
gen.o: In function `make_tables':
/mnt/sda/flex-2.5.33/gen.c:2172: undefined reference to `flexscan'
main.o: In function `flexinit':
/mnt/sda/flex-2.5.33/main.c:1425: undefined reference to `set_input_file'
main.o: In function `check_options':
/mnt/sda/flex-2.5.33/main.c:372: undefined reference to `yyout'
/mnt/sda/flex-2.5.33/main.c:452: undefined reference to `flex_alloc'
misc.o: In function `yy_flex_xmalloc':
/mnt/sda/flex-2.5.33/misc.c:1047: undefined reference to `flex_alloc'
misc.o: In function `copy_string':
/mnt/sda/flex-2.5.33/misc.c:285: undefined reference to `flex_alloc'
misc.o: In function `allocate_array':
/mnt/sda/flex-2.5.33/misc.c:172: undefined reference to `flex_alloc'
misc.o: In function `reallocate_array':
/mnt/sda/flex-2.5.33/misc.c:873: undefined reference to `flex_realloc'
misc.o: In function `sko_push':
/mnt/sda/flex-2.5.33/misc.c:68: undefined reference to `flex_realloc'
/mnt/sda/flex-2.5.33/misc.c:63: undefined reference to `flex_alloc'
sym.o: In function `addsym':
/mnt/sda/flex-2.5.33/sym.c:96: undefined reference to `flex_alloc'
yylex.o: In function `yylex':
/mnt/sda/flex-2.5.33/yylex.c:177: undefined reference to `yytext'
/mnt/sda/flex-2.5.33/yylex.c:50: undefined reference to `flexscan'
/mnt/sda/flex-2.5.33/yylex.c:194: undefined reference to `yytext'
buf.o: In function `buf_destroy':
/mnt/sda/flex-2.5.33/buf.c:201: undefined reference to `flex_free'
buf.o: In function `buf_m4_undefine':
/mnt/sda/flex-2.5.33/buf.c:178: undefined reference to `flex_alloc'
buf.o: In function `buf_m4_define':
/mnt/sda/flex-2.5.33/buf.c:161: undefined reference to `flex_alloc'
buf.o: In function `buf_prints':
/mnt/sda/flex-2.5.33/buf.c:75: undefined reference to `flex_alloc'
/mnt/sda/flex-2.5.33/buf.c:78: undefined reference to `flex_free'
buf.o: In function `buf_linedir':
/mnt/sda/flex-2.5.33/buf.c:92: undefined reference to `flex_alloc'
/mnt/sda/flex-2.5.33/buf.c:95: undefined reference to `flex_free'
filter.o: In function `filter_fix_linedirs':
/mnt/sda/flex-2.5.33/filter.c:337: undefined reference to `flex_alloc'
filter.o: In function `filter_tee_header':
/mnt/sda/flex-2.5.33/filter.c:278: undefined reference to `flex_alloc'
filter.o: In function `filter_create_int':
/mnt/sda/flex-2.5.33/filter.c:106: undefined reference to `flex_alloc'
filter.o: In function `filter_create_ext':
/mnt/sda/flex-2.5.33/filter.c:50: undefined reference to `flex_alloc'
/mnt/sda/flex-2.5.33/filter.c:67: undefined reference to `flex_alloc'
/mnt/sda/flex-2.5.33/filter.c:76: undefined reference to `flex_realloc'
regex.o: In function `regmatch_dup':
/mnt/sda/flex-2.5.33/regex.c:82: undefined reference to `flex_alloc'
regex.o: In function `flex_regcomp':
/mnt/sda/flex-2.5.33/regex.c:60: undefined reference to `flex_alloc'
collect2: ld returned 1 exit status
make[2]: *** [flex] Error 1
make[2]: Leaving directory `/mnt/sda/flex-2.5.33'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sda/flex-2.5.33'
make: *** [all] Error 2
 
Old 06-29-2009, 09:11 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Saw your thread in the 'Zero Replies' section and wanted to give a bit of input, though no guarantees my advice will help

It *looks* like there is a missing header file(s), even though I see no error of 'File not found'.
What I would do if I were having this problem (and I have many times) is look at the beginning of the sourcecode (for example start with dfa.c) and see what header files are trying to be included with the #INCLUDE statements, and verify that they are all present and accounted for on your machine. I suspect that since all of the errors seem to involve 'flex-this' or 'flex-that' that the missing file is part of the flex package, and may well be right there in the directory with the source code. You may need to add an extra include path for the linker, to tell it where to look for the files it is seeking.

Hope this helps,

Sasha
 
  


Reply

Tags
debian, error, flex, install, make


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing from source: When 'make' fails... stefanolima Linux - Software 2 06-27-2009 01:22 AM
Make install fails for Intel NIC on Debian didi167 Debian 4 05-03-2008 09:05 AM
Chapter 6.53 Tar-1.15.1 make check test #2 fails AkBrian Linux From Scratch 3 05-22-2007 10:48 PM
Flex make problem MattZ3 Mandriva 1 02-24-2005 11:34 PM
bison, flex and make problem ChimpFace9000 Programming 4 05-19-2002 07:49 PM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration