ygrek / ocaml-mysql

OCaml bindings to libmysqlclient
https://ygrek.org.ua/p/ocaml-mysql
GNU Lesser General Public License v2.1
23 stars 11 forks source link

opam install mysql fails! #15

Closed hgouraud closed 4 years ago

hgouraud commented 4 years ago

Hello

unable to install mysql with opam! I checked the solution proposed in issue #8 to no avail!

iMac-H:mysql Henri$ opam depext conf-mysql
# Detecting depexts using vars: arch=x86_64, os=macos, os-distribution=homebrew, os-family=homebrew
# The following system packages are needed:
mysql-connector-c
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

Warning: mysql-client 8.0.18 is already installed and up-to-date
To reinstall 8.0.18, run `brew reinstall mysql-client`
# OS packages installation successful
iMac-H:mysql Henri$ opam install mysql
The following actions will be performed:
  βˆ— install mysql 1.2.4

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
[mysql.1.2.4] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
[ERROR] The compilation of mysql failed at "/Users/Henri/.opam/opam-init/hooks/sandbox.sh build make".

#=== ERROR while compiling mysql.1.2.4 ========================================#
# context     2.0.0 | macos/x86_64 | ocaml-base-compiler.4.05.0 | https://opam.ocaml.org/#65eb41e7
# path        ~/.opam/4.07.1/.opam-switch/build/mysql.1.2.4
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/mysql-5059-d2d111.env
# output-file ~/.opam/log/mysql-5059-d2d111.out
### output ###
# mysql_stubs.c:368:3: error: use of undeclared identifier 'my_bool'
# [...]
#   ^
# mysql_stubs.c:371:3: error: use of undeclared identifier 'ret'
#   ret = mysql_select_db(mysql, newdb);
#   ^
# mysql_stubs.c:376:7: error: use of undeclared identifier 'ret'
#   if (ret)
#       ^
# fatal error: too many errors emitted, stopping now [-ferror-limit=]
# 1 warning and 20 errors generated.
# make[1]: *** [mysql_stubs.o] Error 2
# make: *** [byte-code-library] Error 2

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
β”Œβ”€ The following actions failed
β”‚ Ξ» build mysql 1.2.4
└─ 
╢─ No changes have been performed
iMac-H:mysql Henri$ 

I cant figure out what is missing!!

hgouraud commented 4 years ago

Is this issue linked to issue #13 ??

ygrek commented 4 years ago

please show full build log (e.g. run opam install -b or build ocaml-mysql from git)

hgouraud commented 4 years ago

Solved my problem with :

ygrek commented 4 years ago

Ok, closing, one day I will get to trying with oracle mysql myself..