I've reorganized everything on my new hard drive and am rebuilding grass
versions in preparation for a project that should start next week. Trying to
build 6.5-svn I run into a configuration problem for which I'm not seeing
the solution. Your clue sticks will help.
Here's what fails:
checking whether to use SQLite... yes
checking for location of SQLite includes... checking for sqlite3.h... yes
checking for location of SQLite library... /usr/lib/
checking for sqlite3_open in -lsqlite3... no
configure: error: *** Unable to locate SQLite library.
I passed /usr/lib as the location in the option
'--with-sqlite-libs=/usr/lib' because that's where they are:
This affects building both 6.4svn and 6.5svn. I need to build these today,
and I've not hit this problem of not finding postgres or sqlite
includes/libs in all the previous builds I've done.
On Wed, Dec 29, 2010 at 8:39 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
I've reorganized everything on my new hard drive and am rebuilding grass
versions in preparation for a project that should start next week. Trying to
build 6.5-svn I run into a configuration problem for which I'm not seeing
the solution. Your clue sticks will help.
Here's what fails:
checking whether to use SQLite... yes
checking for location of SQLite includes... checking for sqlite3.h... yes
checking for location of SQLite library... /usr/lib/
checking for sqlite3_open in -lsqlite3... no
checking for sqlite3_open in -lsqlite3... no
configure: error: *** Unable to locate SQLite library.
I passed /usr/lib as the location in the option
'--with-sqlite-libs=/usr/lib' because that's where they are:
You need to look close to the end of the file config.log which
will contain the error related to sqlite3.
Markus,
configure:10149: checking for sqlite3_open in -lsqlite3
configure:10166: gcc -o conftest -g -O2 -L/usr/lib/ -Wl,--export-dynamic
conftest.c -lsqlite3 -lm 1>&5
/usr/lib//libsqlite3.so: undefined reference to `dlsym'
/usr/lib//libsqlite3.so: undefined reference to `dlerror'
/usr/lib//libsqlite3.so: undefined reference to `dlopen'
/usr/lib//libsqlite3.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
configure: failed program was: #line 10155 "configure" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sqlite3_open();
I can invoke sqlite3 from the command line so I assume there are no
problems with the libraries. The softlinks have 777 permissions and
libsqlite3.so.0.8.6 has 755 permissions.
On Thu, Dec 30, 2010 at 10:23 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
On Thu, 30 Dec 2010, Markus Neteler wrote:
You need to look close to the end of the file config.log which
will contain the error related to sqlite3.
Markus,
configure:10149: checking for sqlite3_open in -lsqlite3
configure:10166: gcc -o conftest -g -O2 -L/usr/lib/ -Wl,--export-dynamic
conftest.c -lsqlite3 -lm 1>&5
/usr/lib//libsqlite3.so: undefined reference to `dlsym'
/usr/lib//libsqlite3.so: undefined reference to `dlerror'
/usr/lib//libsqlite3.so: undefined reference to `dlopen'
/usr/lib//libsqlite3.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
configure: failed program was: #line 10155 "configure" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sqlite3_open();
On Fri, Dec 31, 2010 at 12:04 AM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
On Thu, 30 Dec 2010, Markus Neteler wrote:
Now it cannot find wxWidgets. Sigh.
Same game: config.log
Actually, it was because I had not re-built wxGTK and wxPython with the
new python version in Slackware-13.1. I just did this, upgraded both
packages, and GRASS-6.5 builds. I assume that -6.4 will, too.
Glad you solved it.
Can the "-ldl" be added to the linux portion of configure so it does not
need to be prepended to the ./configure ... command line?
I don't have much idea about -ldl, perhaps someone else in the list does.