[MacPorts] #47086: Latest Sphinx fails to build
MacPorts
noreply at macports.org
Mon Mar 9 14:49:43 PDT 2015
#47086: Latest Sphinx fails to build
---------------------+--------------------------------
Reporter: uri@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: sphinx |
---------------------+--------------------------------
Comment (by uri@…):
Update that shows there's something fishy going on with the mess of the
linker and compiler flags. When I removed most of them, the build seemed
to succeed:
{{{
..........
/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../config
-DSYSCONFDIR="\"/opt/local/etc/sphinx\""
-DDATADIR="\"/opt/local/var/sphinx/data\"" -I/opt/local/include
-I/usr/local/include -I/opt/local/include/mysql5/mysql -pipe -Os -arch
x86_64 -D_FILE_OFFSET_BITS=64 -DNDEBUG -MT sphinxaot.o -MD -MP -MF
.deps/sphinxaot.Tpo -c -o sphinxaot.o sphinxaot.cpp
mv -f .deps/sphinxaot.Tpo .deps/sphinxaot.Po
/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../config
-DSYSCONFDIR="\"/opt/local/etc/sphinx\""
-DDATADIR="\"/opt/local/var/sphinx/data\"" -I/opt/local/include
-I/usr/local/include -I/opt/local/include/mysql5/mysql -pipe -Os -arch
x86_64 -D_FILE_OFFSET_BITS=64 -DNDEBUG -MT sphinxplugin.o -MD -MP -MF
.deps/sphinxplugin.Tpo -c -o sphinxplugin.o sphinxplugin.cpp
mv -f .deps/sphinxplugin.Tpo .deps/sphinxplugin.Po
rm -f libsphinx.a
ar cru libsphinx.a sphinx.o sphinxexcerpt.o sphinxquery.o sphinxsoundex.o
sphinxmetaphone.o sphinxstemen.o sphinxstemru.o sphinxstemcz.o
sphinxstemar.o sphinxutils.o sphinxstd.o sphinxsort.o sphinxexpr.o
sphinxfilter.o sphinxsearch.o sphinxrt.o sphinxjson.o sphinxudf.o
sphinxaot.o sphinxplugin.o
ranlib libsphinx.a
/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../config
-DSYSCONFDIR="\"/opt/local/etc/sphinx\""
-DDATADIR="\"/opt/local/var/sphinx/data\"" -I/opt/local/include
-I/usr/local/include -I/opt/local/include/mysql5/mysql -pipe -Os -arch
x86_64 -D_FILE_OFFSET_BITS=64 -DNDEBUG -MT indexer.o -MD -MP -MF
.deps/indexer.Tpo -c -o indexer.o indexer.cpp
mv -f .deps/indexer.Tpo .deps/indexer.Po
/usr/bin/clang++ -pipe -Os -arch x86_64 -D_FILE_OFFSET_BITS=64 -DNDEBUG
-L/opt/local/lib -o indexer indexer.o libsphinx.a
-L/opt/local/lib/mysql5/mysql -lmysqlclient -lz -lexpat -lz
-L/usr/local/lib -lpthread -L/usr/lib -lc++
Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
___clang_call_terminate in indexer.o
___clang_call_terminate in libsphinx.a(sphinxutils.o)
___clang_call_terminate in libsphinx.a(sphinx.o)
___clang_call_terminate in libsphinx.a(sphinxstd.o)
___clang_call_terminate in libsphinx.a(sphinxaot.o)
___clang_call_terminate in libsphinx.a(sphinxexpr.o)
___clang_call_terminate in libsphinx.a(sphinxjson.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [indexer] Error 1
make: *** [all] Error 2
$ sudo /usr/bin/clang++ -o indexer indexer.o libsphinx.a
-L/opt/local/lib/mysql5/mysql -lmysqlclient -L/opt/local/lib -lexpat -lz
$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/47086#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list