[noPoll] compile problem on raspbian
Frank Graffagnino
frankie en graffagnino.net
Dom Mar 8 14:37:29 CET 2015
thanks so much for your help. I can confirm that 0.2.7 and 0.2.9 both
build with no issues, but 0.2.8 does not. So, I don't think it is anything
wrong with the libssl on this platform.
I took the compile that was failing in 0.2.8 and added "-lssl -lcrypto" to
it just as 0.2.9 does, and I can confirm it does build after that:
$ /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o
nopoll-regression-listener nopoll-regression-listener.o ../src/libnopoll.la
libtool: link: gcc -g -O2 -o .libs/nopoll-regression-listener
nopoll-regression-listener.o ../src/.libs/libnopoll.so
/usr/bin/ld: nopoll-regression-listener.o: undefined reference to symbol
'TLSv1_server_method@@OPENSSL_1.0.0'
//usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0: error adding symbols: DSO
missing from command line
collect2: ld returned 1 exit status
$ /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o
nopoll-regression-listener nopoll-regression-listener.o ../src/libnopoll.la
-lssl -lcrypto
libtool: link: gcc -g -O2 -o .libs/nopoll-regression-listener
nopoll-regression-listener.o ../src/.libs/libnopoll.so -lssl -lcrypto
I'll stick with either 0.2.7 or 0.2.9 for now. Thanks for the help!
FG
On Sun, Mar 8, 2015 at 4:29 AM, Francis Brosnan Blázquez <francis en aspl.es>
wrote:
> Hello there Frank,
>
> That's estrange because TLSv1_server_method is the default TLS method that
> should be available...maybe some build option of your libssl disabled it on
> your raspbian?
>
> It could also happen that somehow ../src/libnopoll.la is not exported the
> -lssl
> and -lcrypto to the regression test binaries being created :-?
>
> If that is the case, check the following release that includes explicit
> references
> to -lssl and -lcrypt flags:
> http://www.aspl.es/nopoll/downloads/nopoll-0.2.9.b184.tar.gz
>
> If is not, check why your platform is not linking TLSv1_server_method by
> creating
> a simple main.c file calling to that function as shown here:
>
> https://www.openssl.org/docs/ssl/SSL_CTX_new.html
>
> Best Regards,
>
>
> I'm sorry, I wish I spoke spanish.
>
>
>
> I'm trying to compile nopoll 0.2.8.b184 on Raspbian GNU/Linux 7
> (wheezy). I have installed libssl-dev, but when I compile, I get an error
> about an undefined reference to symbol "TLSv1_server_method@@OPENSSL_1.0.0".
> Compile error is:
>
>
>
> gcc -DHAVE_CONFIG_H -I. -I.. -DTEST_DIR=../test -I../src/
> -Wstrict-prototypes -Wall -Werror -ansi -fstack-protector-all
> -Wstack-protector -DSHOW_DEBUG_LOG -DVERSION=\""0.2.8.b184"\"
> -D__NOPOLL_PTHREAD_SUPPORT__=1 -g -O2 -MT nopoll-regression-listener.o
> -MD -MP -MF .deps/nopoll-regression-listener.Tpo -c -o
> nopoll-regression-listener.o nopoll-regression-listener.c
>
> mv -f .deps/nopoll-regression-listener.Tpo
> .deps/nopoll-regression-listener.Po
>
> /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o
> nopoll-regression-listener nopoll-regression-listener.o ../src/
> libnopoll.la
>
> libtool: link: gcc -g -O2 -o .libs/nopoll-regression-listener
> nopoll-regression-listener.o ../src/.libs/libnopoll.so
>
> /usr/bin/ld: nopoll-regression-listener.o: undefined reference to symbol
> 'TLSv1_server_method@@OPENSSL_1.0.0'
>
> //usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0: error adding symbols: DSO
> missing from command line
>
> collect2: ld returned 1 exit status
>
> Makefile:283: recipe for target 'nopoll-regression-listener' failed
>
> make[2]: *** [nopoll-regression-listener] Error 1
>
> make[2]: Leaving directory '/home/pi/installs/nopoll-0.2.8.b184/test'
>
> Makefile:378: recipe for target 'all-recursive' failed
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory '/home/pi/installs/nopoll-0.2.8.b184'
>
> Makefile:286: recipe for target 'all' failed
>
> make: *** [all] Error 2
>
>
>
>
>
> In my environment I have:
>
>
>
> uname -a =
>
> "Linux cncpi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l
> GNU/Linux"
>
>
>
> openssl version -a =
>
> OpenSSL 1.0.1e 11 Feb 2013
>
> built on: Thu Jan 15 21:10:17 UTC 2015
>
> platform: debian-armhf
>
> options: bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) blowfish(ptr)
>
> compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector
> --param=ssp-buffer-size=4 -Wformat -Werror=format-security
> -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wa,--noexecstack -Wall
> -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM
> -DSHA512_ASM -DAES_ASM -DGHASH_ASM
>
> OPENSSLDIR: "/usr/lib/ssl"
>
>
>
> gcc --version =
>
> gcc (Debian 4.6.3-14+rpi1) 4.6.3
>
>
>
> /lib/arm-linux-gnueabihf/libc.so.6 =
>
> GNU C Library (Debian EGLIBC 2.13-38+rpi2+deb7u7) stable release version
> 2.13, by Roland McGrath et al.
>
>
>
>
>
> Any ideas?
>
>
>
> FG
>
>
> _______________________________________________
> noPoll mailing listnoPoll en lists.aspl.eshttp://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll
>
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20150308/5eed584e/attachment.html>
Más información sobre la lista de distribución noPoll