LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-03-2012, 10:47 AM   #1
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Rep: Reputation: 0
Problems building SpatiaLite


I try to build SpatiaLite 3.0.1 (spatial data support for SQLite) on the top of system SQLite library. My system is 32bit Slackware 13.37. Also I have next packages (dependencies) installed:
  • SQLite 3.7.5 (shipped with distro)
  • Proj 4.7.0 (self-compiled)
  • GEOS 3.3.1 (self-compiled)

The first problem is that configure script failed with message:
Code:
checking for sqlite3_prepare_v2 in -lsqlite3... no
configure: error: 'libsqlite3' is required but it doesn't seem to be installed on this system.
That's strange because Slackware comes with SQLite 3.7.5. In configure.log I found next lines
Code:
configure:16925: checking for sqlite3_prepare_v2 in -lsqlite3
configure:16950: gcc -o conftest -g -O2   conftest.c -lsqlite3 -lm  >&5
/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../libsqlite3.so: undefined reference to `dlsym'
/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../libsqlite3.so: undefined reference to `dlerror'
/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../libsqlite3.so: undefined reference to `dlopen'
/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../libsqlite3.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
configure:16950: $? = 1
configure: failed program was:
For me this looks like dynamic linker is not used. I "fix" this by modifying configure script and adding "-ldl" to LIBS variable. After this changes all necessary libraries are found except iconv.
Code:
checking for iconv.h... yes
checking for library containing iconv... no
checking for library containing libiconv... no
configure: error: 'libiconv' is required but it doesn't seem to be installed on this system.
Running
Code:
nm /lib/libc.so.6 | grep iconv
gives me
Code:
000179a0 T iconv
00017b40 T iconv_close
00017610 T iconv_open
So this functionality available in C-runtime library, but for some reasons configure didn't find it.

Any ideas what is wrong? Is this Slackware issue or there is something wrong with my installation?
 
Old 05-03-2012, 02:26 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Slackware 13.37 , 64bits.

Using proj-4.6.0, geos-3.3.3, freexl-1.0.0b.

This will do for the sqlite issue : ./configure CFLAGS=-ldl
( It's a Slackware issue ? A test compile on an rpm system : No problems.)


'iconv', I get this :
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for library containing iconv... none required
checking for library containing locale_charset... no
checking for library containing nl_langinfo... none required
.... And libspatialite-3.0.1 compiles OK.


May be "libiconv" will solve your 'iconv' issues ?
http://slackbuilds.org/repository/13...ries/libiconv/

.
 
Old 05-04-2012, 08:07 AM   #3
alexbrui
LQ Newbie
 
Registered: Nov 2009
Location: Ukraine
Distribution: Slackware 13.37
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks, passing CFLAGS=-ldl to configure works fine!
 
  


Reply

Tags
compilation, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problems on building own AP nsp Linux - Wireless Networking 3 11-22-2011 02:12 AM
problems building modules chewbo Linux - Hardware 0 01-17-2008 12:09 PM
Problems Building Driver doctorcisco Linux - Software 11 04-09-2007 03:31 PM
Problems building a computer Millenniumman Linux - Hardware 1 11-12-2006 05:28 PM
building problems in openoffice sailajabhandaru Linux - Software 1 05-03-2005 07:21 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration