pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49081: Unbreak databases/sqlite3 on OS X Tiger



>Number:         49081
>Category:       pkg
>Synopsis:       Unbreak databases/sqlite3 on OS X Tiger
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 06 20:05:01 +0000 2014
>Originator:     Sevan Janiyan
>Release:        pkgsrc-current
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; 
root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Tiger lacks the zone memory allocator, attempting to build fails with 
/bin/sh ./libtool --tag=CC   --mode=link gcc -D_REENTRANT=1 
-DSQLITE_THREADSAFE=1  -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -pipe -O2 
-DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 
-DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_LOAD_EXTENSION -I/usr/include 
-no-undefined -version-info 8:6:8 -L/usr/lib -L/usr/pkg/lib -o libsqlite3.la 
-rpath /usr/pkg/lib sqlite3.lo  -ldl
libtool: link: gcc -dynamiclib  -o .libs/libsqlite3.0.dylib  .libs/sqlite3.o   
-L/tmp/databases/sqlite3/work/.buildlink/lib -ldl  -O2   -install_name  
/usr/pkg/lib/libsqlite3.0.dylib -compatibility_version 9 -current_version 9.6 
-Wl,-single_module
ld: Undefined symbols:
_OSAtomicCompareAndSwapPtrBarrier
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit 
command failed
Makefile:356: recipe for target 'libsqlite3.la' failed
gmake: *** [libsqlite3.la] Error 1

Attached patch sets  SQLITE_WITHOUT_ZONEMALLOC which allows it to build 
successfully 
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/sqlite3/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- Makefile    18 Jul 2014 11:25:14 -0000      1.80
+++ Makefile    6 Aug 2014 19:59:11 -0000
@@ -28,8 +28,9 @@
 CFLAGS.NetBSD+=                -DUSE_PREAD
 
 # Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+# and lacks the zone memory allocator
 .if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
-CFLAGS+=               -DSQLITE_ENABLE_LOCKING_STYLE=0
+CFLAGS+=               -DSQLITE_ENABLE_LOCKING_STYLE=0 
-DSQLITE_WITHOUT_ZONEMALLOC
 .endif
 
 # This define includes the sqlite3_unlock_notify() API in the build.



Home | Main Index | Thread Index | Old Index