Overview
Features
Download
Documentation
Community
Add-Ons & Services

fatal error while compiling

Please post support and help requests here.

fatal error while compiling

Postby android272 » 07 Jan 2013, 23:41

trying to compile this so that an other program will work. I downloaded the Complete Edition of the poco libraries like they said and ran this code like they said.

Code: Select all
cd /home/name/poco
./configure --shared --no-tests --no-samples
make
sudo make install


but but then I get these errors

include/Poco/Crypto/OpenSSLInitializer.h:45:33: fatal error: openssl/opensslconf.h: No such file or directory
compilation terminated.
make[1]: *** [/usr/share/poco/Crypto/obj/Linux/i686/debug_shared/CipherFactory.o] Error 1
make[1]: Leaving directory `/usr/share/poco/Crypto'
make: *** [Crypto-libexec] Error 2
android272@AndroidDesktop:/usr/share/poco$ sudo make install
make -C /usr/share/poco/Foundation
make[1]: Entering directory `/usr/share/poco/Foundation'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Foundation'
make -C /usr/share/poco/XML
make[1]: Entering directory `/usr/share/poco/XML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/XML'
make -C /usr/share/poco/Util
make[1]: Entering directory `/usr/share/poco/Util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Util'
make -C /usr/share/poco/Net
make[1]: Entering directory `/usr/share/poco/Net'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Net'
make -C /usr/share/poco/Crypto
make[1]: Entering directory `/usr/share/poco/Crypto'
** Compiling src/CipherFactory.cpp (debug, shared)
g++ -Iinclude -I/usr/share/poco/CppUnit/include -I/usr/share/poco/Foundation/include -I/usr/share/poco/XML/include -I/usr/share/poco/Util/include -I/usr/share/poco/Net/include -I/usr/share/poco/Crypto/include -I/usr/share/poco/NetSSL_OpenSSL/include -I/usr/share/poco/Data/include -I/usr/share/poco/Data/SQLite/include -I/usr/share/poco/Data/ODBC/include -I/usr/share/poco/Data/MySQL/include -I/usr/share/poco/Zip/include -I/usr/share/poco/PageCompiler/include -I/usr/share/poco/PageCompiler/File2Page/include -Wall -Wno-sign-compare -DPOCO_BUILD_HOST=AndroidDesktop -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL -g -D_DEBUG -fPIC -c src/CipherFactory.cpp -o /usr/share/poco/Crypto/obj/Linux/i686/debug_shared/CipherFactory.o
In file included from include/Poco/Crypto/CipherKeyImpl.h:44:0,
from include/Poco/Crypto/CipherKey.h:44,
from src/CipherFactory.cpp:39:
include/Poco/Crypto/OpenSSLInitializer.h:45:33: fatal error: openssl/opensslconf.h: No such file or directory
compilation terminated.
make[1]: *** [/usr/share/poco/Crypto/obj/Linux/i686/debug_shared/CipherFactory.o] Error 1
make[1]: Leaving directory `/usr/share/poco/Crypto'
make: *** [Crypto-libexec] Error 2
android272
 
Posts: 7
Joined: 23 Nov 2012, 18:06

Re: fatal error while compiling

Postby alex » 08 Jan 2013, 00:49

fatal error: openssl/opensslconf.h: No such file or directory

You can't build Poco::Crypto (or Poco::NetSSL) without OpenSSL development package installed first. See your OS documentation on how to install it.
alex
 
Posts: 1105
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: fatal error while compiling

Postby android272 » 08 Jan 2013, 06:33

Now I get this


Code: Select all
make -C /usr/share/poco/Foundation
make[1]: Entering directory `/usr/share/poco/Foundation'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Foundation'
make -C /usr/share/poco/XML
make[1]: Entering directory `/usr/share/poco/XML'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/XML'
make -C /usr/share/poco/Util
make[1]: Entering directory `/usr/share/poco/Util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Util'
make -C /usr/share/poco/Net
make[1]: Entering directory `/usr/share/poco/Net'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Net'
make -C /usr/share/poco/Crypto
make[1]: Entering directory `/usr/share/poco/Crypto'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Crypto'
make -C /usr/share/poco/NetSSL_OpenSSL
make[1]: Entering directory `/usr/share/poco/NetSSL_OpenSSL'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/NetSSL_OpenSSL'
make -C /usr/share/poco/Data
make[1]: Entering directory `/usr/share/poco/Data'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Data'
make -C /usr/share/poco/Data/SQLite
make[1]: Entering directory `/usr/share/poco/Data/SQLite'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/poco/Data/SQLite'
make -C /usr/share/poco/Data/ODBC
make[1]: Entering directory `/usr/share/poco/Data/ODBC'
ODBC.make:49: *** No ODBC library found. Please install unixODBC or iODBC or specify ODBCLIBDIR and try again.  Stop.
make[1]: Leaving directory `/usr/share/poco/Data/ODBC'
make: *** [Data/ODBC-libexec] Error 2


I tried to install unixODBC but its not working... I know that this is not a forum for unixODBC but could you please help. this is so hard, Im a nerd but I just do not understand all of this. I wish all this was in the Ubuntu software center so that I could just be done with all this.

Code: Select all
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/cur'
Making all in DRVConfig
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/DRVConfig'
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/DRVConfig'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/DRVConfig'
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/DRVConfig'
Making all in Drivers
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/Drivers'
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/Drivers'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/Drivers'
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/Drivers'
Making all in include
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/include'
Making all in doc
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/doc'
Making all in AdministratorManual
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/doc/AdministratorManual'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/AdministratorManual'
Making all in ProgrammerManual
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual'
Making all in Tutorial
make[4]: Entering directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual/Tutorial'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual/Tutorial'
make[4]: Entering directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual'
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/ProgrammerManual'
Making all in UserManual
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/doc/UserManual'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/UserManual'
Making all in lst
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/doc/lst'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/doc/lst'
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/doc'
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/doc'
Making all in samples
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/samples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/samples'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1'
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1'
android272@AndroidDesktop:/usr/share/unixODBC-2.3.1$ make install
Making install in extras
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/extras'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/extras'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/extras'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/extras'
Making install in log
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/log'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/log'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/log'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/log'
Making install in lst
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/lst'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/lst'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/lst'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/lst'
Making install in ini
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/ini'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/ini'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/ini'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/ini'
Making install in libltdl
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/libltdl'
make  install-am
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/libltdl'
make[3]: Entering directory `/usr/share/unixODBC-2.3.1/libltdl'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
test -z "" || /bin/mkdir -p ""
make[3]: Leaving directory `/usr/share/unixODBC-2.3.1/libltdl'
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/libltdl'
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/libltdl'
Making install in odbcinst
make[1]: Entering directory `/usr/share/unixODBC-2.3.1/odbcinst'
make[2]: Entering directory `/usr/share/unixODBC-2.3.1/odbcinst'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libodbcinst.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libodbcinst.so.2.0.0 /usr/local/lib/libodbcinst.so.2.0.0
/usr/bin/install: cannot create regular file `/usr/local/lib/libodbcinst.so.2.0.0': Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/usr/share/unixODBC-2.3.1/odbcinst'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/share/unixODBC-2.3.1/odbcinst'
make: *** [install-recursive] Error 1
android272
 
Posts: 7
Joined: 23 Nov 2012, 18:06

Re: fatal error while compiling

Postby alex » 08 Jan 2013, 07:08

You need unixODBC-dev:

Code: Select all
sudo apt-get install unixodbc-dev unixodbc-bin unixodbc


If you don't want to build ODBC, run

Code: Select all
$POCO_BASE/configure --omit=Data/ODBC


There's plenty Ubuntu/Debian POCO packages:

https://launchpad.net/ubuntu/+source/poco
http://packages.debian.org/search?keywords=poco

Last but not least, help us help you - please do your homework by reading

POCO C++ Libraries GNU Make Build System

and running

Code: Select all
$POCO_BASE/configure --help
alex
 
Posts: 1105
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: fatal error while compiling

Postby android272 » 09 Jan 2013, 17:01

Im sorry I did try to figure some of this stuff out but all of this stuff in quite confusing for me. I am not new to linux but new to building all these package's and libraries and compiling apps. I just does not seem to end, thank you though for helping, I will try your codes once I get on my linux machine.
android272
 
Posts: 7
Joined: 23 Nov 2012, 18:06


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron