apophenia icon indicating copy to clipboard operation
apophenia copied to clipboard

configure script ignores passed args, build fails: ld: library not found for -lmysqlclient

Open barracuda156 opened this issue 3 years ago • 5 comments

I am trying to build apophenia from the latest commit, and configure (autoconf, in effect) ignores arguments passed:

  1. --build= is ignored, and configure forced cpu_arch instead of build_arch.
  2. --with-mysql=no is ignored, and the build eventually fails on:
  CCLD     libapopkernel.la
  CCLD     libapophenia.la
**ld: library not found for -lmysqlclient**
collect2: ld returned 1 exit status
make[3]: *** [libapophenia.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [distcheck] Error 1
  1. --disable-silent-rules is ignored, no verbose output.

barracuda156 avatar Aug 13 '22 14:08 barracuda156

--without-mysql also fails to have any effect.

@b-k Any ideas why this is the case? Apparently earlier it worked fine, MacPorts used --with-mysql=no: https://github.com/macports/macports-ports/blob/a51a50b219ed4fa4751ab04051b79abe58d209c2/math/apophenia/Portfile#L33

barracuda156 avatar Dec 26 '22 09:12 barracuda156

And --disable-extended-tests also does not have any effect, tests are forced to build.

Sorry to keep updating, I am just trying to fix the build, and it still fails. After test suite finishes (it does not want to be disabled), target is not there:

# TOTAL: 51
# PASS:  49
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to [email protected]
============================================================================
make[4]: *** [test-suite.log] Error 1
make[3]: *** [check-TESTS] Error 2
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [distcheck] Error 1

---------------------

OK, built. From the apophenia-1.0 directory, you can run: make && sudo make install
--->  Building apophenia
Executing:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/apophenia-113671c16afa1724f9f225acdc88e838770071ce" && /usr/bin/make -j6 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/b-k-apophenia-113671c'
make: *** No rule to make target `all'.  Stop.
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/b-k-apophenia-113671c'
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/apophenia-113671c16afa1724f9f225acdc88e838770071ce" && /usr/bin/make -j6 -w all 
Exit code: 2
Error: Failed to build apophenia: command execution failed

barracuda156 avatar Dec 26 '22 11:12 barracuda156

Ok, I found a way around that, build completes, destroot fails:

Executing:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/apophenia-113671c16afa1724f9f225acdc88e838770071ce" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/b-k-apophenia-113671c'
make: Nothing to be done for `install'.
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_apophenia/apophenia/work/b-k-apophenia-113671c'
Error: No files have been installed in the destroot directory!
Error: Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile.
Error: Files might have been installed directly into your system, check before proceeding.
Error: Failed to destroot apophenia: Staging apophenia into destroot failed
Error: See /opt/local/var/macports/logs/_opt_PPCRosettaPorts_math_apophenia/apophenia/main.log for details.

Gonna leave it for tomorrow perhaps.

barracuda156 avatar Dec 26 '22 17:12 barracuda156

Thanks for your investigations, and sorry for the long delay. I expect I'll have time next week to work on this. If you want to DM me we can discuss cleaning this up further.

b-k avatar Sep 28 '23 14:09 b-k

@b-k I have forgotten about this as well. Will try to update on the matter in a few days.

barracuda156 avatar Oct 02 '23 20:10 barracuda156