<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature
requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration
file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C
code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps
the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be
removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a
comment).
-->
### Description
run
```bash
make prefix=/ include_modules="db_mysql" all -j4
```
and not found openssl lib
but here is my openssl path
```bash
pkg-config --cflags openssl
-I/usr/local/Cellar/openssl/1.0.2s/include
pkg-config --libs openssl
-L/usr/local/Cellar/openssl/1.0.2s/lib -lssl -lcrypto
```
### Troubleshooting
<img width="641" alt="屏幕快照 2019-07-31 下午6 54 47"
src="https://user-images.githubusercontent.com/7347198/62206568-b3063080-b3c4-11e9-88ba-4f68b999b1d1.png">
#### Log Messages
```
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src/ all
generating core/autover.h ...
CC (gcc) [kamailio] core/ver.o
CC (gcc) [kamailio] core/parser/parse_event.o
CC (gcc) [kamailio] core/parser/parse_expires.o
CC (gcc) [kamailio] core/parser/parse_fline.o
CC (gcc) [kamailio] core/parser/parse_from.o
CC (gcc) [kamailio] core/parser/parse_hname2.o
CC (gcc) [kamailio] core/parser/parse_identity.o
CC (gcc) [kamailio] core/parser/parse_identityinfo.o
CC (gcc) [kamailio] core/parser/parse_methods.o
CC (gcc) [kamailio] core/parser/parse_nameaddr.o
CC (gcc) [kamailio] core/parser/parse_option_tags.o
CC (gcc) [kamailio] core/parser/parse_param.o
CC (gcc) [kamailio] core/parser/parse_ppi_pai.o
CC (gcc) [kamailio] core/parser/parse_privacy.o
CC (gcc) [kamailio] core/parser/parse_refer_to.o
CC (gcc) [kamailio] core/parser/parse_require.o
CC (gcc) [kamailio] core/parser/parse_retry_after.o
CC (gcc) [kamailio] core/parser/parse_rpid.o
CC (gcc) [kamailio] core/parser/parse_rr.o
CC (gcc) [kamailio] core/parser/parse_sipifmatch.o
CC (gcc) [kamailio] core/parser/parse_subscription_state.o
CC (gcc) [kamailio] core/parser/parse_supported.o
CC (gcc) [kamailio] core/parser/parse_to.o
CC (gcc) [kamailio] core/parser/parse_uri.o
CC (gcc) [kamailio] core/parser/parse_via.o
CC (gcc) [kamailio] core/parser/parser_f.o
CC (gcc) [kamailio] core/parser/digest/digest.o
CC (gcc) [kamailio] core/parser/digest/digest_parser.o
CC (gcc) [kamailio] core/parser/digest/param_parser.o
CC (gcc) [kamailio] core/parser/contact/contact.o
CC (gcc) [kamailio] core/parser/contact/parse_contact.o
CC (gcc) [kamailio] core/parser/sdp/sdp.o
CC (gcc) [kamailio] core/parser/sdp/sdp_helpr_funcs.o
CC (gcc) [kamailio] core/rand/fastrand.o
CC (gcc) [kamailio] core/rand/isaac/rand.o
CC (gcc) [kamailio] core/cfg/cfg.o
CC (gcc) [kamailio] core/cfg/cfg_ctx.o
CC (gcc) [kamailio] core/cfg/cfg_script.o
CC (gcc) [kamailio] core/cfg/cfg_select.o
CC (gcc) [kamailio] core/cfg/cfg_struct.o
yacc -d -b core/cfg core/cfg.y
yacc -d -b core/cfg core/cfg.y
CC (gcc) [M db_mysql.so] db_mysql.o
CC (gcc) [M db_mysql.so] km_db_mysql.o
CC (gcc) [M db_mysql.so] km_dbase.o
CC (gcc) [M db_mysql.so] km_my_con.o
flex -o core/lex.yy.c core/cfg.lex
CC (gcc) [M db_mysql.so] km_res.o
CC (gcc) [kamailio] core/cfg.tab.o
CC (gcc) [M db_mysql.so] km_row.o
CC (gcc) [M db_mysql.so] km_val.o
CC (gcc) [M db_mysql.so] my_cmd.o
CC (gcc) [M db_mysql.so] my_con.o
CC (gcc) [M db_mysql.so] my_fld.o
CC (gcc) [M db_mysql.so] my_res.o
CC (gcc) [M db_mysql.so] my_uri.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_cmd.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_con.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_ctx.o
CC (gcc) [kamailio] core/lex.yy.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_drv.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_fld.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_id.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_gen.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_pool.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_rec.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_pool.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_query.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_res.o
CC (gcc) [L libsrdb2.1.0.0.dylib] db_uri.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_res.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_row.o
LD (gcc) [L libsrdb2.1.0.0.dylib] libsrdb2.1.0.0.dylib
LD (gcc) [kamailio] kamailio
CC (gcc) [L libsrdb1.1.0.0.dylib] db_ut.o
CC (gcc) [L libsrdb1.1.0.0.dylib] db_val.o
LD (gcc) [L libsrdb1.1.0.0.dylib] libsrdb1.1.0.0.dylib
LD (gcc) [M db_mysql.so] db_mysql.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [db_mysql.so] Error 1
make[1]: *** [modules] Error 1
make: *** [all] Error 2
```
### Possible Solutions
didn't know; it seems hard code on `kamailio`.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu
16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
uname -a
Darwin *****MacBook-Pro.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20
18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2021
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev