Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
./configure of gnade fails due to not set libs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Mon May 18, 2009 11:10 am    Post subject: ./configure of gnade fails due to not set libs. Reply with quote

I am trying to install GNADE. I downloaded the sources and started ./configure and get the following output:
Code:
# ./configure

GNAT Data Base Developement Environment (GNADE) 1.5.3b
(C) Copyright 2000-2004; the GNADE Team (see --show-authors)

make: Nothing to be done for `all'.
configure: loading site script /opt/installgnade/gnade-src-1.5.3b/etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for pkg-config... pkg-config
checking for pkgconfig path... /usr/local/lib/pkgconfig
checking for "/etc/redhat-release"... no
checking for /etc/SuSE-release... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for convert_addresses in -laddr2line... no
checking for openjade... openjade
checking for SGML base directory... found /usr/share/sgml
checking for zip... zip
checking for gzip... gzip
checking for rpm... no
checking for correct gnat path .. ...
checking for gnatgcc... /
checking for gnatmake... gnatmake
checking for gnatprep... gnatprep
checking for SQLAllocHandle in -lmyodbc3... no
checking for SQLAllocHandle in -lodbc... no
checking for SQLAllocHandle in -liodbc... no
checking for SQLAllocHandle in -lodbc32... no
checking for correct odbc driver manager libs... configure: error: odbc driver manager libs not set

** CONFIGURE ABORTED **


I already installed dev-db/myodbc, dev-db/unixODBC and dev-db/libiodbc. But the error remains.

Could it be that the configure script looks in the wrong location because of some faulty set *PATH variable? I am not 100% sure of what "libs not set" means. I assume it means "libs were not found" or do I actually have to set libraries in some way?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5671
Location: Removed by Neddy

PostPosted: Mon May 18, 2009 11:42 am    Post subject: Reply with quote

missing dep's

dev-db/myodbc

possibly


an ebuild is probably best for this, provides means of cleanly uninstalling as well
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Mon May 18, 2009 12:15 pm    Post subject: Reply with quote

I already installed it. Unfortunately I don't have time to create an ebuild at the moment.
Back to top
View user's profile Send private message
mandas
n00b
n00b


Joined: 13 Nov 2006
Posts: 20

PostPosted: Mon May 18, 2009 12:27 pm    Post subject: Reply with quote

Maybe be I 'll give it a try for ebuild at sunrise this week.

D.
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Mon May 18, 2009 1:16 pm    Post subject: Reply with quote

I edited etc/config.site and set all the paths manually and configure finished :) with this output:
Code:
# ./configure --sampledb=mysql --root=/opt/gnade mysql

GNAT Data Base Developement Environment (GNADE) 1.5.3b
(C) Copyright 2000-2004; the GNADE Team (see --show-authors)

make: Nothing to be done for `all'.
configure: loading site script /opt/installgnade/gnade-src-1.5.3b/etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for pkg-config... pkg-config
checking for pkgconfig path... /usr/local/lib/pkgconfig
checking for "/etc/redhat-release"... no
checking for /etc/SuSE-release... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for convert_addresses in -laddr2line... no
checking for openjade... openjade
checking for SGML base directory... found /usr/share/sgml
checking for zip... zip
checking for gzip... gzip
checking for rpm... no
checking for correct gnat path .. ...  /opt/gnat-gpl/bin
checking for gnatgcc... /opt/gnat-gpl/bin/gcc
checking for gnatmake... gnatmake
checking for gnatprep... gnatprep
checking for SQLAllocHandle in -lmyodbc3... no
checking for SQLAllocHandle in -lodbc... yes
checking for correct odbc driver manager libs... seems to be correctly set
checking for library containing SQLPrepareW... no
checking for gtkada-config... no
checking for Ada package Ada.Containers... found (./)

checking ODBC drivers of PostgreSQL... found, configuration prepared
checking ODBC drivers of MimerSQL... not found
checking ODBC drivers of MySQL... not found
checking database tools for example database... found in /usr/lib
checking for library containing mysql_real_connect... -lmysqlclient
checking MySQL version... MYSQL4
configure: creating ./config.status
config.status: creating ../make.conf
config.status: WARNING:  '../make.conf.in' seems to ignore the --datarootdir setting
config.status: creating ../samples/sample_db/odbc.ini.sample
config.status: creating ../samples/sample_db/create_user.mimer.sql
config.status: creating ../etc/profile.d/gnade.sh
config.status: creating ../etc/profile.d/gnade.csh
config.status: creating ../etc/profile.d/gnade.bash
config.status: creating ../pkg-config/gnade.pc
config.status: creating ../bin/gnade-vars.sh

The configure script creates examples for the odbc init files. The files
are located at:

      ./var/odbcinst.ini
      ./samples/sampledb/odbc.ini.sample

For the complete authors list of the GNADE team check the AUTHORS file
or use the -authors switch, e.g:

      ./configure -authors

-----------------------------------------------------

Sample database   : mysql
Bindings          : mysql mysql
ODBC lib. flags   :  -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lodbc
Native lib. flags :  -L/usr/lib/mysql -L/usr/lib64 -lgnademysql -lmysqlclient  (MYSQL4)

Installation directories
    GNADE Base    : /opt/gnade
    Binaries      : /opt/gnade/usr/bin
    Libraries     : /opt/gnade/lib
    Ada Sources   : /opt/gnade/include
    Documentation : /opt/gnade/doc
    Profiles      : /opt/gnade/etc
------------------------------------------------------

 ** CONFIGURE COMPLETE **


but now:
Code:
# make
make core-all >>build.log
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/prep" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgget" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgset" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/prep" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgget" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgset" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/prep" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgget" up to date.
gnatmake: "/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-libexec/cfgset" up to date.
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support-list.adb
completed 1 out of 6 (16%)...
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support-tables.adb
completed 2 out of 6 (33%)...
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support.ads
completed 3 out of 6 (50%)...
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu-db.ads
completed 4 out of 6 (66%)...
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu.ads
completed 5 out of 6 (83%)...
gnatgcc -c -g -gnatQ -g -I- -gnatA /opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support-list-strings.adb
completed 6 out of 6 (100%)...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support-list.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/installgnade/gnade-src-1.5.3b/support/gnu-db-support-list.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
chmod: cannot access `/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-lib/libgnadeaux.so.1': No such file or directory
chmod: cannot operate on dangling symlink `/opt/installgnade/gnade-src-1.5.3b/linux-gnu-x86_64-lib/libgnadeaux.so.1.5'
make[3]: *** [install] Error 1
make[2]: *** [all] Error 2
make[1]: *** [core-all] Error 2
make: *** [all] Error 2


Any ideas?
Back to top
View user's profile Send private message
mandas
n00b
n00b


Joined: 13 Nov 2006
Posts: 20

PostPosted: Mon May 18, 2009 1:23 pm    Post subject: Reply with quote

Try to recompile with -fPIC as the log suggests.

D.
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Mon May 18, 2009 1:36 pm    Post subject: Reply with quote

How? Is this a parameter of "make"?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5671
Location: Removed by Neddy

PostPosted: Mon May 18, 2009 1:46 pm    Post subject: Reply with quote

since you say this is urgent have you concidered using the bin package they provide?
it is provided as an rpm, but a quick rpm2tgz can fix that

it will be quicker to resolve missing libs then dealing with building issues
if time is the key here
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum