martin-pe / maitreya8

Other
109 stars 54 forks source link

undefined reference to `yylineno' #53

Open gour opened 4 years ago

gour commented 4 years ago

Hello,

trying to build Maitreya on Fedora (fc32) and get the following error:

[...]
g++  -g -O2   -o maitreya8t textclient.o libjyotish.a ../base/libmaitreya_base.a ../wxJSON/libmaitreya_wxJSON.a ../swe/libswe.a  ../wxsqlite3/libmaitreya_wxsqlite3.a  -pthread   -lwx_gtk3u_xrc-3.0 -lwx_gtk3u_webview-3.0 -lwx_gtk3u_html-3.0 -lwx_gtk3u_qa-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0  
/usr/bin/ld: libjyotish.a(Yoga.o): in function `YogaExpert::evaluateRule(AbstractVargaHoroscope*, Rule*, wxString&)':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Yoga.cpp:149: undefined reference to `yylineno'
/usr/bin/ld: libjyotish.a(Yoga.o): in function `YogaExpert::parseRule(wxString, wxString&)':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Yoga.cpp:119: undefined reference to `yylineno'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Yoga.cpp:121: undefined reference to `yy_scan_string(char const*)'
/usr/bin/ld: libjyotish.a(Yoga.o): in function `YogaExpert::init()':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Yoga.cpp:80: undefined reference to `yy_scan_string(char const*)'
/usr/bin/ld: libjyotish.a(Expression.o): in function `Expression::Expression(int const&, int const&)':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Expression.cpp:102: undefined reference to `yylineno'
/usr/bin/ld: libjyotish.a(Expression.o): in function `Expression::Expression(int const&, int const&)':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Expression.cpp:102: undefined reference to `yylineno'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Expression.cpp:102: undefined reference to `yylineno'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Expression.cpp:102: undefined reference to `yylineno'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/Expression.cpp:102: undefined reference to `yylineno'
/usr/bin/ld: libjyotish.a(MdlParser.o): in function `yyerror(char const*)':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/MdlParser.yy:161: undefined reference to `yytext'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/MdlParser.yy:161: undefined reference to `yylineno'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/MdlParser.yy:165: undefined reference to `yylineno'
/usr/bin/ld: libjyotish.a(MdlParser.o): in function `yyparse()':
/home/gour/repos/external/maitreya8-8.0.1/src/jyotish/y.tab.c:763: undefined reference to `yylex()'
/usr/bin/ld: /home/gour/repos/external/maitreya8-8.0.1/src/jyotish/y.tab.c:1088: undefined reference to `yylex()'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:514: maitreya8t] Error 1
make[4]: Leaving directory '/home/gour/repos/external/maitreya8-8.0.1/src/jyotish'
make[3]: *** [Makefile:428: all] Error 2
make[3]: Leaving directory '/home/gour/repos/external/maitreya8-8.0.1/src/jyotish'
make[2]: *** [Makefile:378: all-recursive] Error 1
make[2]: Leaving directory '/home/gour/repos/external/maitreya8-8.0.1/src'
make[1]: *** [Makefile:498: all-recursive] Error 1
make[1]: Leaving directory '/home/gour/repos/external/maitreya8-8.0.1'
make: *** [Makefile:397: all] Error 2

I am totally ignorant about flex & co. so wonder if you have any suggestion how to fix it?

Sincerely, Gour

gour commented 4 years ago

Let me add that compiling maitreya7 does build on the same platform. :confused: