Gcc Error /usr/lib/libcrypto.a No Such File Or Directory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings libcrypto ubuntu and policies of this site About Us Learn more about Stack Overflow
Libcrypto Source
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation lcrypto ubuntu Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it libcrypto ios only takes a minute: Sign up How do I install and build against OpenSSL 1.0.0 on Ubuntu? up vote 11 down vote favorite 3 You can consider this a follow-up question to How do I install the OpenSSL C++ library on Ubuntu? I'm trying to build some code on Ubuntu 10.04 LTS that requires OpenSSL 1.0.0. Ubuntu 10.04 LTS comes
Libcrypto Rpm
with OpenSSL 0.9.8k: $ openssl version OpenSSL 0.9.8k 25 Mar 2009 So after running sudo apt-get install libssl-dev and building, running ldd confirms I've linked in 0.9.8: $ ldd foo ... libssl.so.0.9.8 => /lib/i686/cmov/libssl.so.0.9.8 (0x00110000) ... libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x002b0000) ... How do I install OpenSSL 1.0.0 and the 1.0.0 development package? Update: I'm writing this update after reading SB's answer (but before trying it), because it's clear I need to explain that the obvious solution of downloading and installing OpenSSL 1.0.0 doesn't work: After successfully doing the following (recommended in the INSTALL file): $ ./config $ make $ make test $ make install ...I still get: OpenSSL 0.9.8k 25 Mar 2009 ...and: $ sudo apt-get install libssl-dev Reading package lists... Done Building dependency tree Reading state information... Done libssl-dev is already the newest version. The following packages were automatically installed and are no longer required: linux-headers-2.6.32-21 linux-headers-2.6.32-21-generic Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ...and (just to make sure) after rebuilding my code, ldd still returns
Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ FIPS build libcrypto.a download of static libcrypto for a shard object Hi All, I am trying libcrypto static to build a shared object which would use FIPS cannister with licrypto static library. Platform - Linux
Libcrypto.a Aix
(SUSE) Architecture - x86_64 These are the steps that I did openssl-fips-2.0.5 1> ./config fipscanisterbuild 2> make 3> make install The above steps result in 1> /usr/local/ssl/fips-2.0/lib -> fipscanister.o http://stackoverflow.com/questions/3153114/how-do-i-install-and-build-against-openssl-1-0-0-on-ubuntu fipscanister.o.sha1 fips_premain.c fips_premain.c.sha1 2> /usr/local/ssl/fips-2.0/bin -> fipsld fips_standalone_sha1 openssl-1.0.1f 1> ./config fips -d no-shared -fPIC 2> make depend 3> make 4> make install The above steps result in among other things 1> /usr/local/ssl/lib -> libcrypto.a libssl.a Now to use the static version of libcrypto, I have followed the steps listed in User Guide 2.0 export CC=/usr/local/ssl/fips-2.0/bin/fipsld export FIPSLD_CC=gcc When http://openssl.6102.n7.nabble.com/FIPS-build-of-static-libcrypto-for-a-shard-object-td48751.html I invoke the linking process, I see that fipsld is trying to load the shared object being created. The shared object prints debug message to console on load and somehow they are being passed to gcc. Also, I see errors being reported from fips_premain.c. If I directly link fipscannister.o to my shared object and then run incore, I get the error that the shared object passed to incore is not cross compiler aware although i get the hash printed on console when i use the dso option with incore. The compilation and error message are as below Compiling: readkmo.cpp /usr/local/ssl/fips-2.0/bin/fipsld -c -v -Wall -Werror -fPIC -errwarn=%all -o ../obj/linux_x64/debug/readkmo.o -g -D DEBUG -I ../inc -I /usr/local/ssl/include ../src/readkmo.cpp 2>./readkmo.o_err 1>./readkmo.o_err Linking: ../obj/linux_x64/debug/libxyz.so /usr/local/ssl/fips-2.0/bin/fipsld -fPIC --shared -Wl,-init=_attach -Wl,-fini=_detach -o ../obj/linux_x64/debug/xyz.so ../obj/linux_x64/debug/readkmo.o -Wl,--whole-archive /usr/local/ssl/lib/libssl.a -Wl,--no-whole-archive /usr/local/ssl/lib/libcrypto.a 2>./libxyz.so_err 1>./libxyz.so_err make: *** [../obj/linux_x64/debug/libxyz.so] Error 1 ============= ERROR FILE: libxyz.so_err ================== gcc: Failed: No such file or directory gcc: to: No such file or directory gcc: open: No such file or directory gcc: log: No such file or di
Sign in Pricing Blog Support Search GitHub This repository Watch 1,026 Star 19,714 Fork 4,134 ariya/phantomjs Code Issues 1,594 https://github.com/ariya/phantomjs/issues/12948 Pull requests 33 Projects 2 Wiki Pulse Graphs New issue Static https://www.howtoforge.com/community/threads/vsftpd-and-ssl.20718/ build complication on Linux due to OpenSSL and ICU #12948 Closed ariya opened this Issue Feb 4, 2015 · 192 comments Projects None yet Labels 2.0 2.0 Regression Bug Build system Library Unix Milestone Release 2.1 Assignees No one assigned gcc error 91 participants and others Owner ariya commented Feb 4, 2015 Compared to 1.x, PhantomJS 2.0 has exhibits some problem when being built statically to produce the official Linux binaries. Owner ariya commented Feb 4, 2015 When the binary is built on Centos 6.6 and tested on Ubuntu 12.04, there will be this error: $ cat /etc/lsb-release gcc error /usr/lib/libcrypto.a DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS" $ bin/phantomjs bin/phantomjs: error while loading shared libraries: libicudata.so.42: cannot open shared object file: No such file or directory $ ldd bin/phantomjs linux-vdso.so.1 => (0x00007fff31fff000) libicudata.so.42 => not found libssl.so.10 => not found libcrypto.so.10 => not found libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007ff99863e000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff9983a2000) libjpeg.so.62 => not found libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007ff998179000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff997f62000) libicui18n.so.42 => not found libicuuc.so.42 => not found libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff997d5d000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff997b54000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff997937000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff997637000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff99733a000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff997124000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff996d65000) /lib64/ld-linux-x86-64.so.2 (0x00007ff99887d000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff996b3a000) Owner ariya commented Feb 4, 2015 When the binary is built on Ubuntu 12.04 and tested on CentOS 6, there is this error: $ cat /etc/redhat-release CentOS release 6.6 (Final) $ bin/phantomjs bin/phantomjs: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory $ ldd bin/phantomjs bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (requir
I am trying to compile the vsftpd binary with support for ssl. I changed the builddefs.h to include #define VSF_BUILD_SSL but I get an error when make tries to to compile the file ssl.c: A part of the error after the make: .... gcc -c access.c -O2 -Wall -W -Wshadow -idirafter dummyinc gcc -c features.c -O2 -Wall -W -Wshadow -idirafter dummyinc gcc -c readwrite.c -O2 -Wall -W -Wshadow -idirafter dummyinc gcc -c ssl.c -O2 -Wall -W -Wshadow -idirafter dummyinc ssl.c:27:25: error: openssl/err.h: No such file or directory ssl.c:28:26: error: openssl/rand.h: No such file or directory ssl.c:29:25: error: openssl/bio.h: No such file or directory ssl.c:32: error: syntax error before '*' token ssl.c:32: warning: type defaults to 'int' in declaration of 'get_ssl' .... The ssl files that are needed are located at /usr/local/ssl/include/openssl I added /usr/local/ssl/include/openssl to the path and the errors did not change. I also included /usr/local/ssl/include/openssl in the INCLUDE environment variable. I also tried to change the make. Vsftpd make currently has: CFLAGS = -O2 -Wall -W -Wshadow and I changed it for CFLAGS = -O2 -Wall -W -Wshadow -I/usr/local/ssl/include/ -I/usr/local/ssl/include/openssl A chunk of the output after the make: From the ssl.c file. ( I added the line numbers at line 24.) /* * ssl.c * Routines to handle a SSL/TLS-based implementation of RFC 2228, i.e. * encryption. */ #include "ssl.h" #include "session.h" #include "ftpcodes.h" #include "ftpcmdio.h" #include "defs.h" #include "str.h" #include "sysutil.h" #include "tunables.h" #include "utility.h" #include "builddefs.h" #ifdef VSF_BUILD_SSL #include