[kde-solaris] KDEPIM 3.1.1 Build error
Lars Tunkrans
kde-solaris@mail.kde.org
Wed Apr 2 01:52:13 2003
Brian Foddy wrote:
> Receiving the following...
>
> /bin/bash ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I../.. -I../.. -I../../src -I../../src -I../../src/libical
> -I../../src/libical -I./libical -O2 -mcpu=ultrasparc -c -o
> icalsslexer.lo `test -f 'icalsslexer.c' || echo './'`icalsslexer.c
> icalsslexer.l: In function `sslex':
> icalsslexer.l:94: `sslval' undeclared (first use in this function)
> icalsslexer.l:94: (Each undeclared identifier is reported only once
> icalsslexer.l:94: for each function it appears in.)
> make[5]: *** [icalsslexer.lo] Error 1
> make[5]: Leaving directory
> `/opt/local/build/kde311/kdepim-3.1.1/libical/src/libicalss'
>
> Using gcc 3.2.2, Solaris 2.8. I've upgraded to Flex 2.5.27 but no
> difference.
> I don't know the lex language to try to diag the problem. Any ideas?
I have no Problems at all on Solaris 9 vith this.
here is the compile log.
# gmake
flex -Pss `test -f icalsslexer.l || echo './'`icalsslexer.l
sed '/^#/ s|lex.ss\.c|icalsslexer.c|' lex.ss.c >icalsslexer.c
rm -f lex.ss.c
/bin/bash ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src -I../../src/libical -I../../src/libical -I./libical -I/usr/sfw/include
-I/opt/sfw/include -I/usr/local/include -I/usr/local/include/libmal -O3 -mcpu=ultrasparc -mtune=ultrasparc -Wa,-xarch=v8plusa -c -o icalsslexer.lo `test -f 'icalsslexer.c' || echo './'`icalsslexer.c
/bin/bash ../../libtool --silent --mode=link gcc -O3 -mcpu=ultrasparc -mtune=ultrasparc -Wa,-xarch=v8plusa -L/usr/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -o libicalss.la -version-info 0:0:0
icalclassify.lo icalgauge.lo icaldirset.lo icalfileset.lo icalset.lo icalssyacc.lo icalsslexer.lo icalspanlist.lo icalmessage.lo icalcstpclient.lo icalcstpserver.lo icalcstp.lo
libtool: link: warning: `-version-info' is ignored for convenience libraries
#
The header file icalssyacc.h that defines "sslval" is produced from a YACC sourcefile "icalssyacc.y"
Your problem *could* be that you do not have GNU Bison installed and are processing the YACC file with
the original yacc(1) utility. If this is the case you need to get Bison from your nearest GNU mirror.
Tis is what happends if I delete the YACC outputfiles and re-make.
# rm icalssyacc.c icalssyacc.h icalssyacc.lo icalssyacc.o icalssyacc.output
# gmake
bison -y -d -v -p ss `test -f 'icalssyacc.y' || echo './'`icalssyacc.y
sed '/^#/ s|y\.tab\.c|icalssyacc.c|' y.tab.c >icalssyacc.c
rm -f y.tab.c
if test -f y.tab.h; then \
to=`echo "icalssyacc_H" | sed \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
sed "/^#/ s/Y_TAB_H/$to/g" y.tab.h >icalssyacc.ht; \
rm -f y.tab.h; \
if cmp -s icalssyacc.ht icalssyacc.h; then \
rm -f icalssyacc.ht ;\
else \
mv icalssyacc.ht icalssyacc.h; \
fi; \
fi
if test -f y.output; then \
mv y.output icalssyacc.output; \
fi
/bin/bash ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src -I../../src/libical -I../../src/libical -I./libical -I/usr/sfw/include
-I/opt/sfw/include -I/usr/local/include -I/usr/local/include/libmal -O3 -mcpu=ultrasparc -mtune=ultrasparc -Wa,-xarch=v8plusa -c -o icalssyacc.lo `test -f 'icalssyacc.c' || echo './'`icalssyacc.c
flex -Pss `test -f icalsslexer.l || echo './'`icalsslexer.l
sed '/^#/ s|lex.ss\.c|icalsslexer.c|' lex.ss.c >icalsslexer.c
rm -f lex.ss.c
/bin/bash ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src -I../../src/libical -I../../src/libical -I./libical -I/usr/sfw/include
-I/opt/sfw/include -I/usr/local/include -I/usr/local/include/libmal -O3 -mcpu=ultrasparc -mtune=ultrasparc -Wa,-xarch=v8plusa -c -o icalsslexer.lo `test -f 'icalsslexer.c' || echo './'`icalsslexer.c
/bin/bash ../../libtool --silent --mode=link gcc -O3 -mcpu=ultrasparc -mtune=ultrasparc -Wa,-xarch=v8plusa -L/usr/sfw/lib -L/opt/sfw/lib -L/usr/local/lib -o libicalss.la -version-info 0:0:0
icalclassify.lo icalgauge.lo icaldirset.lo icalfileset.lo icalset.lo icalssyacc.lo icalsslexer.lo icalspanlist.lo icalmessage.lo icalcstpclient.lo icalcstpserver.lo icalcstp.lo
libtool: link: warning: `-version-info' is ignored for convenience libraries
cat ./icalgauge.h ./icalset.h ./icalfileset.h ./icaldirset.h ./icalcalendar.h ./icalclassify.h ./icalspanlist.h ./icalmessage.h ./icalcstp.h ./icalcstpclient.h ./icalcstpserver.h | egrep -v
"#include.*\"ical" \
| egrep -v "#include.*\"pvl\.h\"" > icalss.h
//Lars
--
========================================================
Lars Tunkrans