Opened 13 years ago

Closed 13 years ago

#32930 closed defect (fixed)

sqlite3: Undefined symbols: _OSAtomicCompareAndSwapPtrBarrier

Reported by: macports@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: tiger Cc: ryandesign (Ryan Carsten Schmidt), mdbecque@…
Port: sqlite3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

In upgrading from 3.7.9_0 to 3.7.10_0, the link stage fails with undefined symbol _OSAtomicCompareAndSwapPtrBarrier

  Model Name:	Mac mini
  Model Identifier:	Macmini1,1
  Processor Name:	Intel Core Duo
  Processor Speed:	1.66 GHz
  Number Of Processors:	1
  Total Number Of Cores:	2
  L2 Cache (per processor):	2 MB
  Memory:	2 GB
  Bus Speed:	667 MHz
  Boot ROM Version:	MM11.0055.B08
  SMC Version:	1.3f4

  System Version:	Mac OS X 10.4.11 (8S2167)
  Kernel Version:	Darwin 8.11.1
  Boot Volume:	Macintosh HD

Log file attached...

Attachments (1)

main.log (22.1 KB) - added by macports@… 13 years ago.
SQLite3 build log

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by macports@…

Attachment: main.log added

SQLite3 build log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: tiger added
Owner: changed from macports-tickets@… to mww@…
Port: sqlite3 added; SQLite3 removed
Summary: SQLite3 build fails at linkersqlite3: Undefined symbols: _OSAtomicCompareAndSwapPtrBarrier

Confirmed on my Tiger i386 machine.

comment:2 in reply to:  1 ; Changed 13 years ago by mdbecque@…

Replying to ryandesign@…:

Confirmed on my Tiger i386 machine.

I get the same error on my Tiger PPC machine.

comment:3 in reply to:  2 Changed 13 years ago by mdbecque@…

Replying to mdbecque@…:

Replying to ryandesign@…:

Confirmed on my Tiger i386 machine.

I get the same error on my Tiger PPC machine.

Here is an excerpt of my build log on Tiger PPC machine. I think this is the relevant part.

:info:build /bin/sh ./libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -pipe -O2 -arch ppc -no-undefined -version-info 8:6:8 -L/opt/local/lib -arch ppc -o libsqlite3.la -rpath /opt/local/lib sqlite3.lo 
:info:build /usr/bin/gcc-4.0 -dynamiclib -o .libs/libsqlite3.0.8.6.dylib .libs/sqlite3.o -L/opt/local/lib -arch ppc -arch ppc -install_name /opt/local/lib/libsqlite3.0.dylib -compatibility_version 9 -current_version 9.6
:info:build ld: Undefined symbols:
:info:build _OSAtomicCompareAndSwapPtrBarrier
:info:build /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
:info:build gnumake: *** [libsqlite3.la] Error 1
:info:build gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071000'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071000" && /usr/bin/gnumake -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"

comment:4 Changed 13 years ago by mdbecque@…

Is it possible to install the 3.7.9_0 version for now? If so please give me a help with the install command.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… mdbecque@… added

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I have reported the problem to the sqlite-users mailing list.

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Fixed in r89249 using upstream fix.

Note: See TracTickets for help on using tickets.