Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#331 closed defect (fixed)

sql-de-lite fails when building the bundled version

Reported by: Mario Domenech Goulart Owned by: Jim Ursetto
Priority: major Milestone:
Component: extensions Version: 4.5.x
Keywords: sql-de-lite Cc:
Estimated difficulty:

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

Change History (3)

comment:1 Changed 14 years ago by Jim Ursetto

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.

comment:2 Changed 14 years ago by Mario Domenech Goulart

Resolution: fixed
Status: newclosed

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.

comment:3 Changed 14 years ago by felix winkelmann

Milestone: 4.6.0

Milestone 4.6.0 deleted

Note: See TracTickets for help on using tickets.