Summary
sql-de-lite fails when building the bundled version
Metadata
- Id: 60042ebdc4f0b3f9b627251e7c904cea059645cd
- Trac id: 331
- Type: defect
- Reporter: mario
- Owner: zbigniew
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 4.5.x
- Changetime: 2011-04-04 08:31:00 UTC
- Created: 2010-08-11 21:38:57 UTC
- Keywords: sql-de-lite
Description
Here's the error:
$ chicken-install sql-de-lite
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=sql-de-lite" ...
reading response ...
HTTP/1.1 200 OK
Date: Wed, 11 Aug 2010 19:24:59 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks ...
reading files ...
./sql-de-lite.setup
./sql-de-lite.scm
./sqlite3-api.h
./version-check.scm
./sqlite3/
./sqlite3/sqlite3.c
./sqlite3/shell.c
./sqlite3/sqlite3.h
./sql-de-lite.meta
sql-de-lite located at /tmp/chicken-install-f7.tmp/sql-de-lite
checking platform for `sql-de-lite' ...
checking dependencies for `sql-de-lite' ...
install order:
("sql-de-lite")
installing sql-de-lite: ...
changing current directory to /tmp/chicken-install-f7.tmp/sql-de-lite
/usr/local/chicken-4.5.0/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(extension-name-and-version '(\"sql-de-lite\" \"\"))" /tmp/chicken-install-f7.tmp/sql-de-lite/sql-de-lite.setup
/usr/local/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode -o ./version-check version-check.scm -lsqlite3
+++ SQLite3 version >= 3007000 not found, using bundled version
/usr/local/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode -s -O2 -d2 -inline -local -X easyffi sql-de-lite.scm -j sql-de-lite -Isqlite3 sqlite3/sqlite3.c -C -DSQLITE_ENABLE_FTS3 -C -DSQLITE_ENABLE_FTS3_PARENTHESIS
/usr/local/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode -O2 -o chicken-sqlite3 -Isqlite3 sqlite3/shell.c sqlite3/sqlite3.c -C -DSQLITE_ENABLE_FTS3 -C -DSQLITE_ENABLE_FTS3_PARENTHESIS
sqlite3/sqlite3.o: In function `pthreadMutexTry':
sqlite3.c:(.text+0x347d5): undefined reference to `pthread_mutex_trylock'
sqlite3/sqlite3.o: In function `pthreadMutexAlloc':
sqlite3.c:(.text+0x34832): undefined reference to `pthread_mutexattr_init'
sqlite3.c:(.text+0x3483c): undefined reference to `pthread_mutexattr_settype'
sqlite3.c:(.text+0x3484d): undefined reference to `pthread_mutexattr_destroy'
collect2: ld returned 1 exit status
Error: shell command terminated with non-zero exit status 256: gcc sqlite3/shell.o sqlite3/sqlite3.o -o chicken-sqlite3 -L"/usr/local/chicken-4.5.0/lib" -Wl,-R"/usr/local/chicken-4.5.0/lib" -lchicken -lm -ldl
shell command failed with nonzero exit status 256:
/usr/local/chicken-4.5.0/bin/csc -feature compiling-extension -setup-mode -O2 -o chicken-sqlite3 -Isqlite3 sqlite3/shell.c sqlite3/sqlite3.c -C -DSQLITE_ENABLE_FTS3 -C -DSQLITE_ENABLE_FTS3_PARENTHESIS
Error: shell command terminated with nonzero exit code
17920
"/usr/local/chicken-4.5.0/bin/csi -bnq -setup-mode -e \"(require-library setup-a...
$ chicken -version
(c)2008-2010 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.5.0
linux-unix-gnu-x86 [ manyargs dload ptables ]
compiled 2010-05-13 on mario (Linux)
$ cat /etc/debian_version
5.0.4
Changes and comments
[2010-08-12 01:52:56 UTC] zbigniew wrote:
I reproduced your error on Ubuntu 10.04. As far as pthreads goes, apparently on OS X and Windows, it is not necessary to link to that. But on Linux it is.
So I have disabled thread-safety in the current build, which avoids the need for pthreads. It should be safe to disable it, as Chicken is single-threaded. Please retest if desired.
[2010-08-12 14:24:37 UTC] mario changed status from new to closed
[2010-08-12 14:24:37 UTC] mario set resolution to fixed
[2010-08-12 14:24:37 UTC] mario wrote:
Seems to work fine. I could install and run it on the same machine it was failing yesterday.
I'm closing this ticket.
Thank you.
[2011-04-04 08:31:00 UTC] felix removed milestone 4.6.0
[2011-04-04 08:31:00 UTC] felix wrote:
Milestone 4.6.0 deleted