[Pdns-users] Complie problem on PDNS on CENTOS5

RBK1001 Paul.Sun at syniverse.com
Wed Feb 6 08:56:54 UTC 2013


Thanks

but I am still failed on it. help!!!

# rpm -q lua-lib-5.1.5-1.el5.pp.x86_64
lua-lib-5.1.5-1.el5.pp

complie command:
#CXXFLAGS=-I/root/boost_1_53_0 LDFLAGS=-L/root/boost_1_53_0/stage/lib
LUA_CFLAGS=-I/usr/local/include LUA_LIBS=-L/usr/lib64 ./configure
--with-boost=/root/boost_1_53_0 

The configure command is succeeded. however it is failed in make process

libtool: link: g++ -DSYSCONFDIR=\"/usr/local/etc\"
-DLIBDIR=\"/usr/local/lib\" -DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind
-pthread -I/usr/local/include -Iext/polarssl-1.1.2/include
-Iext/rapidjson/include -D_GNU_SOURCE -I/root/boost_1_53_0
../modules/gmysqlbackend/gmysqlbackend.o ../modules/gmysqlbackend/smysql.o
../modules/geobackend/geobackend.o ../modules/geobackend/ippreftree.o
-rdynamic -pthread -rdynamic -o pdns_server dnspacket.o nameserver.o qtype.o
logger.o arguments.o packethandler.o tcpreceiver.o packetcache.o statbag.o
dnsbackend.o ws.o webserver.o session.o misc.o receiver.o ueberbackend.o
dynlistener.o dynhandler.o resolver.o slavecommunicator.o
mastercommunicator.o communicator.o dnsproxy.o randombackend.o
unix_utility.o common_startup.o unix_semaphore.o bindbackend2.o binddnssec.o
bindparser.o bindlexer.o gsqlbackend.o base64.o sillyrecords.o
zoneparser-tng.o dnsrecords.o dnswriter.o rcpgenerator.o dnsparser.o
aescrypt.o aeskey.o aes_modes.o aestab.o dns_random.o randomhelper.o
nsecrecords.o base32.o dbdnsseckeeper.o dnssecinfra.o dns.o dnssecsigner.o
polarrsakeyinfra.o md5.o signingpipe.o dnslabeltext.o lua-pdns.o lua-auth.o
serialtweaker.o ednssubnet.o json.o -rdynamic  -ldl -L/usr/local/lib
-L/root/boost_1_53_0/stage/lib -lrt ext/polarssl-1.1.2/library/libpolarssl.a
-lboost_serialization -L/usr/lib64 -L/usr/lib64/mysql -lmysqlclient -lcrypt
-lnsl -lm -lssl -lcrypto -lz -pthread -Wl,-rpath -Wl,/usr/local/lib
lua-pdns.o: In function `netmaskMatchTable(lua_State*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
lua-pdns.cc:(.text+0x1b): undefined reference to `lua_pushnil'
lua-pdns.cc:(.text+0x42): undefined reference to `lua_tolstring'
lua-pdns.cc:(.text+0xa0): undefined reference to `lua_settop'
lua-pdns.cc:(.text+0xed): undefined reference to `lua_next'
lua-pdns.o: In function `getFromTable(lua_State*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
lua-pdns.cc:(.text+0x170): undefined reference to `lua_pushstring'
lua-pdns.cc:(.text+0x181): undefined reference to `lua_gettable'
lua-pdns.cc:(.text+0x196): undefined reference to `lua_type'
lua-pdns.cc:(.text+0x1b5): undefined reference to `lua_tolstring'
lua-pdns.cc:(.text+0x1dc): undefined reference to `lua_settop'
lua-pdns.o: In function `getFromTable(lua_State*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int&)':
lua-pdns.cc:(.text+0x214): undefined reference to `lua_pushstring'
lua-pdns.cc:(.text+0x225): undefined reference to `lua_gettable'
lua-pdns.cc:(.text+0x23a): undefined reference to `lua_type'
lua-pdns.cc:(.text+0x254): undefined reference to `lua_tonumber'
lua-pdns.cc:(.text+0x276): undefined reference to `lua_settop'
lua-pdns.o: In function `pushResourceRecordsTable(lua_State*,
std::vector<DNSResourceRecord, std::allocator<DNSResourceRecord> > const&)':
lua-pdns.cc:(.text+0x2af): undefined reference to `lua_createtable'
lua-pdns.cc:(.text+0x45d): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x476): undefined reference to `lua_createtable'
lua-pdns.cc:(.text+0x49b): undefined reference to `lua_pushstring'
lua-pdns.cc:(.text+0x4b4): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x4d9): undefined reference to `lua_pushstring'
lua-pdns.cc:(.text+0x4f2): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x514): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x52d): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x566): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x57f): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x5b8): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x5d1): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x5e5): undefined reference to `lua_settable'
lua-pdns.o: In function `popResourceRecordsTable(lua_State*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::vector<DNSResourceRecord, std::allocator<DNSResourceRecord>
>&)':
lua-pdns.cc:(.text+0x703): undefined reference to `lua_objlen'
lua-pdns.cc:(.text+0x726): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x73a): undefined reference to `lua_gettable'
lua-pdns.cc:(.text+0x99f): undefined reference to `lua_settop'
lua-pdns.o: In function `netmaskMatchLua':
lua-pdns.cc:(.text+0xad9): undefined reference to `lua_gettop'
lua-pdns.cc:(.text+0xb0c): undefined reference to `lua_tolstring'
lua-pdns.cc:(.text+0xb42): undefined reference to `lua_type'
lua-pdns.cc:(.text+0xb9b): undefined reference to `lua_tolstring'
lua-pdns.cc:(.text+0xc3a): undefined reference to `lua_gettop'
lua-pdns.cc:(.text+0xc69): undefined reference to `lua_pushboolean'
lua-pdns.o: In function `getLocalAddressLua':
lua-pdns.cc:(.text+0xcf1): undefined reference to `lua_getfield'
lua-pdns.cc:(.text+0xd02): undefined reference to `lua_touserdata'
lua-pdns.cc:(.text+0xd4a): undefined reference to `lua_pushstring'
lua-pdns.o: In function `setVariableLua':
lua-pdns.cc:(.text+0xd9e): undefined reference to `lua_getfield'
lua-pdns.cc:(.text+0xdaf): undefined reference to `lua_touserdata'
lua-pdns.o: In function `logLua':
lua-pdns.cc:(.text+0xddf): undefined reference to `lua_gettop'
lua-pdns.cc:(.text+0xe0e): undefined reference to `lua_tolstring'
lua-pdns.o: In function `PowerDNSLua::PowerDNSLua(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
lua-pdns.cc:(.text+0xfa0): undefined reference to `luaL_newstate'
lua-pdns.cc:(.text+0xfbf): undefined reference to `luaL_openlibs'
lua-pdns.cc:(.text+0xfe6): undefined reference to `luaL_loadfile'
lua-pdns.cc:(.text+0x100b): undefined reference to `lua_pcall'
lua-pdns.cc:(.text+0x1053): undefined reference to `lua_isstring'
lua-pdns.cc:(.text+0x1073): undefined reference to `lua_tolstring'
lua-pdns.cc:(.text+0x1186): undefined reference to `lua_settop'
lua-pdns.cc:(.text+0x11a2): undefined reference to `lua_pushcclosure'
lua-pdns.cc:(.text+0x11be): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x11da): undefined reference to `lua_pushcclosure'
lua-pdns.cc:(.text+0x11f6): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x1212): undefined reference to `lua_pushcclosure'
lua-pdns.cc:(.text+0x122e): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x124a): undefined reference to `lua_pushcclosure'
lua-pdns.cc:(.text+0x1266): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x1282): undefined reference to `lua_createtable'
lua-pdns.cc:(.text+0x12d4): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x1305): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x1356): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x1372): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x138c): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x13a8): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x13c2): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x13de): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x13f8): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x1414): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x142e): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x144a): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x1464): undefined reference to `lua_pushnumber'
lua-pdns.cc:(.text+0x1480): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x149c): undefined reference to `lua_setfield'
lua-pdns.cc:(.text+0x14b8): undefined reference to `lua_pushlightuserdata'
lua-pdns.cc:(.text+0x14d4): undefined reference to `lua_setfield'
lua-pdns.o: In function `PowerDNSLua::~PowerDNSLua()':
lua-pdns.cc:(.text+0x15df): undefined reference to `lua_close'
lua-auth.o: In function `AuthLua::axfrfilter(ComboAddress const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, DNSResourceRecord const&, std::vector<DNSResourceRecord,
std::allocator<DNSResourceRecord> >&)':
lua-auth.cc:(.text+0x9d): undefined reference to `lua_getfield'
lua-auth.cc:(.text+0xb4): undefined reference to `lua_type'
lua-auth.cc:(.text+0xe4): undefined reference to `lua_settop'
lua-auth.cc:(.text+0x12e): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0x164): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0x18f): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0x1b7): undefined reference to `lua_pushnumber'
lua-auth.cc:(.text+0x1f6): undefined reference to `lua_pushnumber'
lua-auth.cc:(.text+0x21a): undefined reference to `lua_pushnumber'
lua-auth.cc:(.text+0x245): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0x266): undefined reference to `lua_pcall'
lua-auth.cc:(.text+0x28f): undefined reference to `lua_tolstring'
lua-auth.cc:(.text+0x2fb): undefined reference to `lua_settop'
lua-auth.cc:(.text+0x346): undefined reference to `lua_tonumber'
lua-auth.cc:(.text+0x36a): undefined reference to `lua_settop'
lua-auth.cc:(.text+0x3cd): undefined reference to `lua_objlen'
lua-auth.cc:(.text+0x429): undefined reference to `lua_pushnumber'
lua-auth.cc:(.text+0x440): undefined reference to `lua_gettable'
lua-auth.cc:(.text+0x6ae): undefined reference to `lua_settop'
lua-auth.cc:(.text+0x6f6): undefined reference to `lua_settop'
lua-auth.o: In function `ldp_checkDNSPacket(lua_State*)':
lua-auth.cc:(.text+0x88d): undefined reference to `luaL_checkudata'
lua-auth.cc:(.text+0x8ae): undefined reference to `luaL_argerror'
lua-auth.o: In function `ldp_setRcode(lua_State*)':
lua-auth.cc:(.text+0x8e6): undefined reference to `luaL_checkinteger'
lua-auth.o: In function `ldp_getQuestion(lua_State*)':
lua-auth.cc:(.text+0x93f): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0x962): undefined reference to `lua_pushnumber'
lua-auth.o: In function `ldp_getRemote(lua_State*)':
lua-auth.cc:(.text+0xcd6): undefined reference to `lua_pushstring'
lua-auth.o: In function `AuthLua::registerLuaDNSPacket()':
lua-auth.cc:(.text+0xd28): undefined reference to `luaL_newmetatable'
lua-auth.cc:(.text+0xd3c): undefined reference to `lua_pushstring'
lua-auth.cc:(.text+0xd50): undefined reference to `lua_pushvalue'
lua-auth.cc:(.text+0xd64): undefined reference to `lua_settable'
lua-auth.cc:(.text+0xd82): undefined reference to `luaL_openlib'
lua-auth.cc:(.text+0xd96): undefined reference to `lua_settop'
lua-auth.o: In function `AuthLua::prequery(DNSPacket*)':
lua-auth.cc:(.text+0xdc4): undefined reference to `lua_getfield'
lua-auth.cc:(.text+0xdd8): undefined reference to `lua_type'
lua-auth.cc:(.text+0xe05): undefined reference to `lua_settop'
lua-auth.cc:(.text+0xe3b): undefined reference to `lua_newuserdata'
lua-auth.cc:(.text+0xe63): undefined reference to `lua_getfield'
lua-auth.cc:(.text+0xe77): undefined reference to `lua_setmetatable'
lua-auth.cc:(.text+0xe95): undefined reference to `lua_pcall'
lua-auth.cc:(.text+0xebb): undefined reference to `lua_tolstring'
lua-auth.cc:(.text+0xf8f): undefined reference to `lua_settop'
lua-auth.cc:(.text+0xfd4): undefined reference to `lua_toboolean'
lua-auth.cc:(.text+0xff0): undefined reference to `lua_settop'
collect2: ld returned 1 exit status
make[4]: *** [pdns_server] Error 1
make[4]: Leaving directory `/root/pdns-3.2/pdns'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/pdns-3.2/pdns'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/pdns-3.2/pdns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pdns-3.2'
make: *** [all] Error 2






Aki Tuomi wrote:
> 
> http://pkgs.org/centos-5-rhel-5/atomic-i386/lua-devel-5.1.4-1.el5.art.i386.rpm.html
> http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/lua-devel-5.1.4-4.1.el6.x86_64.rpm.html
> 
> the package is called lua-devel... 
> 
> Aki
> 
> On Tue, Feb 05, 2013 at 11:25:35PM -0800, RBK1001 wrote:
>> 
>> Failed.
>> 
>> is there anyone tried to complie PDNS3.2 before? and able to pass the LUA
>> portion?
>> 
>> - rbk
>> 
>> 
>> 
>> RBK1001 wrote:
>> > 
>> > I found this. 
>> > 
>> >
>> http://rpm.pbone.net/index.php3/stat/4/idpl/17868179/dir/redhat_el_5/com/lua-lib-5.1.5-1.el5.pp.x86_64.rpm.html
>> > 
>> > I am going to try now
>> > 
>> > 
>> > RBK1001 wrote:
>> >> 
>> >> liblua is not valid for redhat or centos
>> >> 
>> >> 
>> >> Aki Tuomi wrote:
>> >>> 
>> >>> You need to install liblua5.1-dev.
>> >>> 
>> >>> Aki
>> >>> 
>> >>> On Tue, Feb 05, 2013 at 10:55:54PM -0800, RBK1001 wrote:
>> >>>> 
>> >>>> Hi, I am able to settle the Boost program_options. However, I am
>> faced
>> >>>> the
>> >>>> next problem on LUA.
>> >>>> 
>> >>>> 
>> >>>> lua-auth.cc:(.text+0xe95): undefined reference to `lua_pcall'
>> >>>> lua-auth.cc:(.text+0xebb): undefined reference to `lua_tolstring'
>> >>>> lua-auth.cc:(.text+0xf8f): undefined reference to `lua_settop'
>> >>>> lua-auth.cc:(.text+0xfd4): undefined reference to `lua_toboolean'
>> >>>> lua-auth.cc:(.text+0xff0): undefined reference to `lua_settop'
>> >>>> collect2: ld returned 1 exit status
>> >>>> make[4]: *** [pdns_server] Error 1
>> >>>> make[4]: Leaving directory `/root/pdns-3.2/pdns'
>> >>>> make[3]: *** [all-recursive] Error 1
>> >>>> make[3]: Leaving directory `/root/pdns-3.2/pdns'
>> >>>> make[2]: *** [all] Error 2
>> >>>> make[2]: Leaving directory `/root/pdns-3.2/pdns'
>> >>>> make[1]: *** [all-recursive] Error 1
>> >>>> make[1]: Leaving directory `/root/pdns-3.2'
>> >>>> make: *** [all] Error 2
>> >>>> 
>> >>>> can anyone help?
>> >>>> 
>> >>>> - rbk
>> >>>> 
>> >>>> 
>> >>>> RBK1001 wrote:
>> >>>> > 
>> >>>> > Hi
>> >>>> > 
>> >>>> > 
>> >>>> > I really need instruction on how to complie PowerDNS 3.2 in
>> CENTOS5
>> >>>> > 
>> >>>> > please help
>> >>>> > 
>> >>>> > -rbk
>> >>>> > 
>> >>>> > 
>> >>>> > Aki Tuomi wrote:
>> >>>> >> 
>> >>>> >> You forgot to install boost development package? Also, you need
>> to
>> >>>> >> install pkg-config
>> >>>> >> 
>> >>>> >> Aki
>> >>>> >> 
>> >>>> >> On Tue, Feb 05, 2013 at 02:54:21AM -0800, RBK1001 wrote:
>> >>>> >>> 
>> >>>> >>> I have installed GCC4.6.2 and also with BOOST 1.39.0
>> >>>> >>> 
>> >>>> >>> however, I am failed when compliing PDNS 3.2, any idea?
>> >>>> >>> 
>> >>>> >>> 
>> >>>> >>> checking whether -lc should be explicitly linked in... no
>> >>>> >>> checking dynamic linker characteristics... GNU/Linux ld.so
>> >>>> >>> checking how to hardcode library paths into programs...
>> immediate
>> >>>> >>> checking whether stripping libraries is possible... yes
>> >>>> >>> checking if libtool supports shared libraries... yes
>> >>>> >>> checking whether to build shared libraries... yes
>> >>>> >>> checking whether to build static libraries... yes
>> >>>> >>> checking for ld used by g++... /usr/local/bin/ld -m elf_x86_64
>> >>>> >>> checking if the linker (/usr/local/bin/ld -m elf_x86_64) is GNU
>> >>>> ld...
>> >>>> >>> yes
>> >>>> >>> checking whether the g++ linker (/usr/local/bin/ld -m
>> elf_x86_64)
>> >>>> >>> supports
>> >>>> >>> shared libraries... yes
>> >>>> >>> checking for g++ option to produce PIC... -fPIC -DPIC
>> >>>> >>> checking if g++ PIC flag -fPIC -DPIC works... yes
>> >>>> >>> checking if g++ static flag -static works... yes
>> >>>> >>> checking if g++ supports -c -o file.o... yes
>> >>>> >>> checking if g++ supports -c -o file.o... (cached) yes
>> >>>> >>> checking whether the g++ linker (/usr/local/bin/ld -m
>> elf_x86_64)
>> >>>> >>> supports
>> >>>> >>> shared libraries... yes
>> >>>> >>> checking dynamic linker characteristics... GNU/Linux ld.so
>> >>>> >>> checking how to hardcode library paths into programs...
>> immediate
>> >>>> >>> checking for Boost headers version >= 103400... ../boost_1_39_0
>> >>>> >>> checking for Boost's header version... 1_39
>> >>>> >>> checking boost/foreach.hpp usability... yes
>> >>>> >>> checking boost/foreach.hpp presence... yes
>> >>>> >>> checking for boost/foreach.hpp... yes
>> >>>> >>> checking for the toolset name used by Boost for g++... gcc41
>> -gcc
>> >>>> >>> checking boost/program_options.hpp usability... yes
>> >>>> >>> checking boost/program_options.hpp presence... yes
>> >>>> >>> checking for boost/program_options.hpp... yes
>> >>>> >>> checking for the Boost program_options library... no
>> >>>> >>> configure: error: cannot not find the flags to link with Boost
>> >>>> >>> program_options
>> >>>> >>> 
>> >>>> >>> -- 
>> >>>> >>> View this message in context:
>> >>>> >>>
>> >>>>
>> http://old.nabble.com/Complie-problem-on-PDNS-on-CENTOS5-tp34984421p34984421.html
>> >>>> >>> Sent from the PowerDNS mailing list archive at Nabble.com.
>> >>>> >>> 
>> >>>> >>> _______________________________________________
>> >>>> >>> Pdns-users mailing list
>> >>>> >>> Pdns-users at mailman.powerdns.com
>> >>>> >>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>> >>>> >>> 
>> >>>> >> 
>> >>>> >>  
>> >>>> >> _______________________________________________
>> >>>> >> Pdns-users mailing list
>> >>>> >> Pdns-users at mailman.powerdns.com
>> >>>> >> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>> >>>> >> 
>> >>>> >> 
>> >>>> > 
>> >>>> > 
>> >>>> 
>> >>>> -- 
>> >>>> View this message in context:
>> >>>>
>> http://old.nabble.com/Complie-problem-on-PDNS-on-CENTOS5-tp34984421p34988331.html
>> >>>> Sent from the PowerDNS mailing list archive at Nabble.com.
>> >>>> 
>> >>>> _______________________________________________
>> >>>> Pdns-users mailing list
>> >>>> Pdns-users at mailman.powerdns.com
>> >>>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>> >>>> 
>> >>> 
>> >>>  
>> >>> _______________________________________________
>> >>> Pdns-users mailing list
>> >>> Pdns-users at mailman.powerdns.com
>> >>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>> >>> 
>> >>> 
>> >> 
>> >> 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Complie-problem-on-PDNS-on-CENTOS5-tp34984421p34988383.html
>> Sent from the PowerDNS mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Pdns-users mailing list
>> Pdns-users at mailman.powerdns.com
>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>> 
> 
>  
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 
> 
-- 
View this message in context: http://old.nabble.com/Complie-problem-on-PDNS-on-CENTOS5-tp34984421p34988629.html
Sent from the PowerDNS mailing list archive at Nabble.com.




More information about the Pdns-users mailing list