undefined reference error when compiling rsyslog-6.37

Issues related to applications and software problems

undefined reference error when compiling rsyslog-6.37

Postby superbear » 2012/03/02 02:47:50

Good day!
When I try to compile the rsyslog-6.3.7 into my centOS 6( uname -r shows: 2.6.32-71.el6.i686 )

1. use : ./configure "-march=i586 -mcpu=i686" --enable-imfile
the configure process is end without any errors
2. but,when I use "make" to compile,encounter below errors:

Could anyone tell me what's wrong with it?
Any reply is appreciate!


[color=CC0000][/color] r
syslogd-omusrmsg.o: In function `newActInst':
/root/rsyslog-6.3.7/tools/omusrmsg.c:356: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/tools/omusrmsg.c:362: undefined reference to `es_str2cstr'
rsyslogd-omusrmsg.o: In function `parseSelectorAct':
/root/rsyslog-6.3.7/tools/omusrmsg.c:412: undefined reference to `es_newStr'
/root/rsyslog-6.3.7/tools/omusrmsg.c:414: undefined reference to `es_addChar'
/root/rsyslog-6.3.7/tools/omusrmsg.c:418: undefined reference to `es_deleteStr'
rsyslogd-omfwd.o: In function `newActInst':
/root/rsyslog-6.3.7/tools/omfwd.c:656: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:658: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:660: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/tools/omfwd.c:662: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/tools/omfwd.c:672: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:679: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/tools/omfwd.c:681: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/tools/omfwd.c:685: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:694: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:698: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:704: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/tools/omfwd.c:745: undefined reference to `es_str2cstr'
rsyslogd-omfile.o:/root/rsyslog-6.3.7/tools/omfile.c:819: more undefined references to `es_str2cstr' follow
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `es_strdup':
/usr/local/include/libestr.h:189: undefined reference to `es_newStrFromSubStr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `es_strcmp':
/usr/local/include/libestr.h:232: undefined reference to `es_strbufcmp'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `readConfFile':
/root/rsyslog-6.3.7/grammar/rainerscript.c:57: undefined reference to `es_newStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:64: undefined reference to `es_addBuf'
/root/rsyslog-6.3.7/grammar/rainerscript.c:86: undefined reference to `es_addBuf'
/root/rsyslog-6.3.7/grammar/rainerscript.c:89: undefined reference to `es_addChar'
/root/rsyslog-6.3.7/grammar/rainerscript.c:92: undefined reference to `es_addChar'
/root/rsyslog-6.3.7/grammar/rainerscript.c:93: undefined reference to `es_addChar'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstDestruct':
/root/rsyslog-6.3.7/grammar/rainerscript.c:120: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:122: undefined reference to `es_deleteStr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstPrint':
/root/rsyslog-6.3.7/grammar/rainerscript.c:133: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:135: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstFindNameCStr':
/root/rsyslog-6.3.7/grammar/rainerscript.c:163: undefined reference to `es_strcasebufcmp'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstChkDupes':
/root/rsyslog-6.3.7/grammar/rainerscript.c:179: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstChkUnused':
/root/rsyslog-6.3.7/grammar/rainerscript.c:202: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetBinary':
/root/rsyslog-6.3.7/grammar/rainerscript.c:265: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:267: undefined reference to `es_strbufcmp'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetQueueType':
/root/rsyslog-6.3.7/grammar/rainerscript.c:281: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:283: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:285: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:287: undefined reference to `es_strcasebufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:290: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetFileCreateMode':
/root/rsyslog-6.3.7/grammar/rainerscript.c:324: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetGID':
/root/rsyslog-6.3.7/grammar/rainerscript.c:342: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetUID':
/root/rsyslog-6.3.7/grammar/rainerscript.c:365: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetInt':
/root/rsyslog-6.3.7/grammar/rainerscript.c:389: undefined reference to `es_str2num'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doGetWord':
/root/rsyslog-6.3.7/grammar/rainerscript.c:405: undefined reference to `es_newStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:408: undefined reference to `es_addChar'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `nvlstGetParam':
/root/rsyslog-6.3.7/grammar/rainerscript.c:469: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:475: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `cnfparamsPrint':
/root/rsyslog-6.3.7/grammar/rainerscript.c:552: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `var2Number':
/root/rsyslog-6.3.7/grammar/rainerscript.c:744: undefined reference to `es_str2num'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `var2String':
/root/rsyslog-6.3.7/grammar/rainerscript.c:759: undefined reference to `es_newStrFromNumber'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `doFuncCall':
/root/rsyslog-6.3.7/grammar/rainerscript.c:790: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:802: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:805: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:806: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:807: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:815: undefined reference to `es_tolower'
/root/rsyslog-6.3.7/grammar/rainerscript.c:831: undefined reference to `es_str2num'
/root/rsyslog-6.3.7/grammar/rainerscript.c:836: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:842: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `cnfexprEval':
/root/rsyslog-6.3.7/grammar/rainerscript.c:912: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:923: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:929: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:929: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:945: undefined reference to `es_deleteStr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o):/root/rsyslog-6.3.7/grammar/rainerscript.c:956: more undefined references to `es_deleteStr' follow
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `cnfexprEval':
/root/rsyslog-6.3.7/grammar/rainerscript.c:1099: undefined reference to `es_strncmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1100: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1100: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1100: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1100: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1105: undefined reference to `es_strncasecmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1106: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1106: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1106: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1106: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1111: undefined reference to `es_strContains'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1112: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1112: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1112: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1112: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1117: undefined reference to `es_strCaseContains'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1118: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1118: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1118: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1118: undefined reference to `es_deleteStr'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1132: undefined reference to `es_deleteStr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o):/root/rsyslog-6.3.7/grammar/rainerscript.c:1132: more undefined references to `es_deleteStr' follow
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `funcName2ID':
/root/rsyslog-6.3.7/grammar/rainerscript.c:1451: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1458: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1465: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1472: undefined reference to `es_strbufcmp'
/root/rsyslog-6.3.7/grammar/rainerscript.c:1479: undefined reference to `es_strbufcmp'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `varDelete':
/root/rsyslog-6.3.7/grammar/rainerscript.c:1574: undefined reference to `es_deleteStr'
../grammar/.libs/libgrammar.a(libgrammar_la-rainerscript.o): In function `cstrPrint':
/root/rsyslog-6.3.7/grammar/rainerscript.c:1610: undefined reference to `es_str2cstr'
../grammar/.libs/libgrammar.a(libgrammar_la-lexer.o): In function `yylex':
/root/rsyslog-6.3.7/grammar/lexer.l:125: undefined reference to `es_newStrFromBuf'
/root/rsyslog-6.3.7/grammar/lexer.l:127: undefined reference to `es_newStrFromBuf'
/root/rsyslog-6.3.7/grammar/lexer.l:130: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/grammar/lexer.l:172: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/grammar/lexer.l:176: undefined reference to `es_newStrFromBuf'
../grammar/.libs/libgrammar.a(libgrammar_la-lexer.o): In function `cnfSetLexFile':
/root/rsyslog-6.3.7/grammar/lexer.l:271: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-glbl.o): In function `glblDoneLoadCnf':
/root/rsyslog-6.3.7/runtime/glbl.c:475: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/glbl.c:479: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/glbl.c:483: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/glbl.c:487: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/glbl.c:491: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-conf.o): In function `cflineProcessPropFilter':
/root/rsyslog-6.3.7/runtime/conf.c:537: undefined reference to `es_newStrFromBuf'
../runtime/.libs/librsyslog.a(librsyslog_la-rsconf.o): In function `getNOW':
/root/rsyslog-6.3.7/runtime/rsconf.c:296: undefined reference to `es_newStrFromCStr'
../runtime/.libs/librsyslog.a(librsyslog_la-rsconf.o): In function `getSysVar':
/root/rsyslog-6.3.7/runtime/rsconf.c:323: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/runtime/rsconf.c:331: undefined reference to `es_newStrFromCStr'
../runtime/.libs/librsyslog.a(librsyslog_la-rsconf.o): In function `cnfGetVar':
/root/rsyslog-6.3.7/runtime/rsconf.c:463: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-msg.o): In function `getCEEPropVal':
/root/rsyslog-6.3.7/runtime/msg.c:2301: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/msg.c:2302: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-msg.o): In function `MsgGetProp':
/root/rsyslog-6.3.7/runtime/msg.c:2508: undefined reference to `es_str2cstr'
/root/rsyslog-6.3.7/runtime/msg.c:2509: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-msg.o): In function `msgGetCEEVarNew':
/root/rsyslog-6.3.7/runtime/msg.c:3139: undefined reference to `es_newStr'
/root/rsyslog-6.3.7/runtime/msg.c:3143: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/runtime/msg.c:3151: undefined reference to `es_newStrFromCStr'
/root/rsyslog-6.3.7/runtime/msg.c:3153: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-msg.o): In function `msgGetMsgVarNew':
/root/rsyslog-6.3.7/runtime/msg.c:3179: undefined reference to `es_newStrFromCStr'
../runtime/.libs/librsyslog.a(librsyslog_la-queue.o): In function `qqueueApplyCnfParam':
/root/rsyslog-6.3.7/runtime/queue.c:2583: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-rule.o): In function `shouldProcessThisMessage':
/root/rsyslog-6.3.7/runtime/rule.c:232: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-rule.o): In function `ruleDestruct':
/root/rsyslog-6.3.7/runtime/rule.c:337: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-rule.o): In function `ruleDebugPrint':
/root/rsyslog-6.3.7/runtime/rule.c:401: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-action.o): In function `actionApplyCnfParam':
/root/rsyslog-6.3.7/runtime/../action.c:1826: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-action.o): In function `actionNewInst':
/root/rsyslog-6.3.7/runtime/../action.c:2066: undefined reference to `es_str2cstr'
../runtime/.libs/librsyslog.a(librsyslog_la-template.o): In function `do_Parameter':
/root/rsyslog-6.3.7/runtime/../template.c:603: undefined reference to `es_newStrFromCStr'
../runtime/.libs/librsyslog.a(librsyslog_la-template.o): In function `tplDeleteAll':
/root/rsyslog-6.3.7/runtime/../template.c:1118: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-template.o): In function `tplDeleteNew':
/root/rsyslog-6.3.7/runtime/../template.c:1176: undefined reference to `es_deleteStr'
../runtime/.libs/librsyslog.a(librsyslog_la-template.o): In function `tplPrintList':
/root/rsyslog-6.3.7/runtime/../template.c:1230: undefined reference to `es_str2cstr'
collect2: ld returned 1 exit status
make[2]: *** [rsyslogd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
superbear
 
Posts: 1
Joined: 2012/03/02 02:33:46

undefined reference error when compiling rsyslog-6.37

Postby pschaff » 2012/03/04 02:06:56

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature. Please see Readme First with regard to post content and when/how to use pastebin if needed, and if posting in-line do not include a lot of redundant error message.

Now the the question:
Why are you doing that? Are you perhaps unfamiliar with TUV's policy of backporting security patches? You can view the package change log and look for the relevant CVEs. Simply looking at the package version number in an Enterprise Linux OS is meaningless.

FAQ#20. Where can I get the latest version of XyZ.rpm for CentOS? I cannot find it anywhere.

Please read about Installing Software and Repositories, and note the warnings and advice about installing and configuring the yum priorities plugin. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.

Please pay particular attention to the evils of Source Installs. Source installs as root are particularly dangerous. If you must still have a later version read about how to rebuild SRPMs and find a Fedora or other SRPM as a starting place.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - Software Support

Who is online

Users browsing this forum: docpp, Yahoo [Bot] and 5 guests