Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
barracuda156 opened this issue Aug 13, 2022 · 5 comments

Comments

@barracuda156
Copy link

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
Copy link
Author

barracuda156 commented Dec 26, 2022

--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 barracuda156 changed the title configure script ignores passed args configure script ignores passed args, build fails: ld: library not found for -lmysqlclient Dec 26, 2022
@barracuda156
Copy link
Author

barracuda156 commented Dec 26, 2022

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 fluffmail@f-m.fm
============================================================================
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
Copy link
Author

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.

@b-k
Copy link
Owner

b-k commented Sep 28, 2023

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.

@barracuda156
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants