Opened 10 years ago

Closed 6 years ago

#47086 closed defect (fixed)

Latest Sphinx fails to build

Reported by: mouse07410 (Mouse) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: RivetBenoit (Benoit Rivet)
Port: sphinx

Description (last modified by mf2k (Frank Schima))

$ sudo port clean sphinx
Password:
--->  Cleaning sphinx
$ sudo port install sphinx
--->  Computing dependencies for sphinx
--->  Fetching archive for sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://packages.macports.org/sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/sphinx
--->  Fetching distfiles for sphinx
--->  Verifying checksums for sphinx
--->  Extracting sphinx
--->  Configuring sphinx
--->  Building sphinx
Error: org.macports.build for port sphinx returned: command execution failed
Please see the log file for port sphinx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_sphinx/sphinx/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port sphinx failed

Attachments (1)

main.log (54.5 KB) - added by mouse07410 (Mouse) 10 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_sphinx/sphinx/main.log

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by mouse07410 (Mouse)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_sphinx/sphinx/main.log

comment:1 Changed 10 years ago by mouse07410 (Mouse)

Sorry, this way to display screen output is better.

$ sudo port clean sphinx
Password:
--->  Cleaning sphinx
$ sudo port install sphinx
--->  Computing dependencies for sphinx
--->  Fetching archive for sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://packages.macports.org/sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/sphinx
--->  Attempting to fetch sphinx-2.2.4_0+mysql5.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/sphinx
--->  Fetching distfiles for sphinx
--->  Verifying checksums for sphinx
--->  Extracting sphinx
--->  Configuring sphinx
--->  Building sphinx
Error: org.macports.build for port sphinx returned: command execution failed
Please see the log file for port sphinx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_sphinx/sphinx/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port sphinx failed

comment:2 Changed 10 years ago by mouse07410 (Mouse)

The link command seems to be missing

-lc++

at the end.

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 10 years ago by mouse07410 (Mouse)

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
$

An excerpt from working src/Makefile (removed a lot of extra -L stuff):

........
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS = -L/opt/local/lib
LIBOBJS =  ${LIBOBJDIR}lstat$U.o
LIBRE2_CFLAGS =
LIBRE2_LIBS =
LIBRE2_PATH =
LIBRT =
LIBS = -lexpat
LIBSTEMMER_CFLAGS =
LIBSTEMMER_LIBS =
LTLIBOBJS =  ${LIBOBJDIR}lstat$U.lo
MAINT = #
MAKEINFO = ${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release
_tarballs_ports_textproc_sphinx/sphinx/work/sphinx-2.2.4-release/config/missing --run makeinfo
MKDIR_P = /opt/local/bin/gmkdir -p
MYSQL_CFLAGS = -I/opt/local/include/mysql5/mysql -I/opt/local/include
MYSQL_LIBS = -L/opt/local/lib/mysql5/mysql -lmysqlclient -lz
OBJEXT = o
PACKAGE = sphinx
........
Last edited 10 years ago by mouse07410 (Mouse) (previous) (diff)

comment:5 Changed 9 years ago by RivetBenoit (Benoit Rivet)

Cc: benoit.rivet@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

Seems no longer to be a problem with 2.2.11.

Note: See TracTickets for help on using tickets.