[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Compile problems with avrdude-5.5
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] Compile problems with avrdude-5.5 |
Date: |
Sun, 27 Apr 2008 08:32:24 +0200 |
User-agent: |
Mutt/1.5.11 |
As Bernard Mentink wrote:
> ./libavrdude.a(libavrdude_a-config_gram.o): In function `yyparse':
> /home/bmentink/amForth/avrdude-5.5/config_gram.c:908: undefined reference to
> `yylex'
> /home/bmentink/amForth/avrdude-5.5/config_gram.c:2163: undefined reference
> to `yylex'
This is supposed to be the result of running lex/flex, and to be found
in libavrdude_a-lexer.o:
% nm libavrdude_a-lexer.o | grep yylex
00000878 T yylex
Here's the build log that is produced if I remove just the generated
file "lexer.c", and recompile:
make all-recursive
flex lexer.l
sed '/^#/ s|lex.yy\.c|lexer.c|' lex.yy.c >lexer.c
rm -f lex.yy.c
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DCONFIG_DIR=\"/usr/local/etc\" -Wall -g
-O -I/usr/local/include -MT libavrdude_a-lexer.o -MD -MP -MF
".deps/libavrdude_a-lexer.Tpo" -c -o libavrdude_a-lexer.o `test -f 'lexer.c' ||
echo './'`lexer.c; then mv -f ".deps/libavrdude_a-lexer.Tpo"
".deps/libavrdude_a-lexer.Po"; else rm -f ".deps/libavrdude_a-lexer.Tpo"; exit
1; fi
rm -f libavrdude.a
ar cru libavrdude.a libavrdude_a-config_gram.o libavrdude_a-lexer.o
libavrdude_a-avr.o libavrdude_a-avr910.o libavrdude_a-avrpart.o
libavrdude_a-bitbang.o libavrdude_a-butterfly.o libavrdude_a-config.o
libavrdude_a-confwin.o libavrdude_a-crc16.o libavrdude_a-fileio.o
libavrdude_a-jtagmkI.o libavrdude_a-jtagmkII.o libavrdude_a-lists.o
libavrdude_a-par.o libavrdude_a-pgm.o libavrdude_a-ppi.o libavrdude_a-ppiwin.o
libavrdude_a-safemode.o libavrdude_a-serbb_posix.o
libavrdude_a-serbb_win32.o libavrdude_a-ser_avrdoper.o
libavrdude_a-ser_posix.o libavrdude_a-ser_win32.o libavrdude_a-stk500.o
libavrdude_a-stk500v2.o libavrdude_a-stk500generic.o libavrdude_a-term.o
libavrdude_a-usbasp.o libavrdude_a-usb_libusb.o libavrdude_a-usbtiny.o
libavrdude_a-update.o
ranlib libavrdude.a
gcc -g -O -I/usr/local/include -L/usr/local/lib -o avrdude avrdude-main.o
./libavrdude.a -lusb -lm -lreadline -lncurses -ltermcap
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)