spdylay installation issue with ubuntu 13.04

276 views
Skip to first unread message

ramswish

unread,
Jun 13, 2013, 2:45:59 PM6/13/13
to spdy...@googlegroups.com
HI, 
   I tried compiling and installing spdylay on ubuntu 13.04, but i got the following error.
pls help me to solve this problem.

I tried adding that to linker but that file itself not present in the path  /lib/i386-linux-gnu/libdl.so.2 


g++ -DHAVE_CONFIG_H -I. -I..  -Wall -I./../lib/includes -I./../lib/includes -I/usr/local/include   -I/usr/include/libxml2  -DHAVE_CONFIG_H   -g -O2 -MT spdycat.o -MD -MP -MF .deps/spdycat.Tpo -c -o spdycat.o spdycat.cc
mv -f .deps/spdycat.Tpo .deps/spdycat.Po
/bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2 -L/usr/local/lib -lssl -lcrypto   -lxml2    -pthread  -o spdycat util.o timegm.o spdylay_ssl.o  spdycat.o HtmlParser.o  http_parser.o ../lib/libspdylay.la -L/usr/local/lib -lz   
libtool: link: g++ -g -O2 -pthread -o .libs/spdycat util.o timegm.o spdylay_ssl.o spdycat.o HtmlParser.o http_parser.o  -L/usr/local/lib -lssl -lcrypto -lxml2 ../lib/.libs/libspdylay.so -lz -pthread
/usr/bin/ld: /usr/local/lib/libcrypto.a(dso_dlfcn.o): undefined reference to symbol 'dladdr@@GLIBC_2.0'
/usr/bin/ld: note: 'dladdr@@GLIBC_2.0' is defined in DSO /lib/i386-linux-gnu/libdl.so.2 so try adding it to the linker command line
/lib/i386-linux-gnu/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [spdycat] Error 1
make[2]: Leaving directory `/home/rams/Downloads/spdylay-0.3.8/src'
make[1]: *** [all-recursive] Error 1

Tatsuhiro Tsujikawa

unread,
Jun 14, 2013, 10:04:21 AM6/14/13
to spdy...@googlegroups.com
Ubuntu 13.04 has all necessary development packages to build spdylay, so unless you have no particular reason, just install following packages and configure and make should do the job:

  • autoconf
  • automake
  • autotools-dev
  • libtool
  • pkg-config
  • zlib1g-dev
  • libcunit1-dev
  • libssl-dev
  • libxml2-dev
  • libevent-dev
If you insist on using your own built static openssl library, since spdylay configure script does not handle well for static linker flags, you could workaround like this:

./configure OPENSSL_CFLAGS="`pkg-config --static --cflags openssl`" OPENSSL_LIBS="`pkg-config --static --libs openssl`"

But if you want to avoid complicated stuff regarding static build, use ubuntu packages.

Best regards,

Tatsuhiro Tsujikawa
 

--
 
---
You received this message because you are subscribed to the Google Groups "spdy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spdy-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages