Bug 240203 - irc/inspircd: fails to build 'ctr_drbg.h' file not found
Summary: irc/inspircd: fails to build 'ctr_drbg.h' file not found
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-30 04:48 UTC by mircx1
Modified: 2019-09-01 04:39 UTC (History)
2 users (show)

See Also:
w.schwarzenfeld: maintainer-feedback? (tijl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mircx1 2019-08-30 04:48:49 UTC
Hello very much time i will try install something for ssl mbedtls and i get error
in ubuntu is working well in freebsd is not please fix this
fatal error: 'mbedtls/ctr_drbg.h' file not found
#include <mbedtls/ctr_drbg.h>
Comment 1 Walter Schwarzenfeld 2019-08-30 07:48:48 UTC
It is not clear which port you try to build. Is it security/mbedtls or a port depend on it?

I could repeat this error with security/mbedtls  and did not find the line 
#include <mbedtls/ctr_drbg.h> 
in the source code of this port.
Comment 2 Walter Schwarzenfeld 2019-08-30 07:49:15 UTC
Corr: I could NOT repeat this error.
Comment 3 mircx1 2019-08-30 08:39:44 UTC
i try run inspircd version 3 and i load a module m_ssl_mbedtls i install the mbedtls and what a problem in here is if i inside to folder make template
and set code in main.mk this a code
CXXFLAGS = -pipe -fPIC -DPIC -I/usr/local/include
LDLIBS = -pthread -lstdc++
LDFLAGS = -L/usr/local/lib
is working good my question how i can configure it or the mbedtls in freebsd not work very clear
Comment 4 Walter Schwarzenfeld 2019-08-30 09:24:38 UTC
It is still not clear which port is meant. CC'd maintainer of inspircd.
Comment 5 mircx1 2019-08-30 10:07:22 UTC
working about CXX
Comment 6 Dmitri Goutnik freebsd_committer freebsd_triage 2019-08-30 12:13:30 UTC
(In reply to mircx1 from comment #3)
Hi,

If you'd like to install inspircd, the recommended way to do that on FreeBSD would be to either install inspircd package or use irc/inspircd port. Installing directly from the upstream source is also fine, but I don't think FreeBSD ports bug tracker is a right place to discuss issues you have with source installation.

Easiest (and supported) way to get inspircd with MBEDTLS would be to use irc/inspircd port with MBEDTLS option.
Comment 7 mircx1 2019-08-30 14:05:48 UTC
i do it but is no have this a module and when i try to install that in home is have error from ports not all a module there what i need
Comment 8 mircx1 2019-08-31 16:45:02 UTC
Dmitri Goutnik please the question the first time thanks about a fix it my question is how the possible run inpircd from home? i try very much the options to configure ./configure CXX=-c++ and i get error i happy if you can told to me if is have option give to user in freebsd install without using in ports
Comment 9 Dmitri Goutnik freebsd_committer freebsd_triage 2019-08-31 23:18:47 UTC
(In reply to mircx1 from comment #8)
1. pkg install perl5 gmake mbedtls
2. git clone https://github.com/inspircd/inspircd.git inspircd-src
3. cd inspircd-src && git checkout v3.3.0
4. ./configure --clean --disable-interactive --prefix=/home/mircx1/inspircd
5. gmake CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib install

$ ls -1 /home/mircx1/inspircd/bin
inspircd
inspircd-genssl

$ ls -1 /home/mircx1/inspircd/modules/m_ssl_mbedtls*
/home/mircx1/inspircd/modules/m_ssl_mbedtls.so
Comment 10 mircx1 2019-09-01 04:39:00 UTC
(In reply to Dmitri Goutnik from comment #9)
Dmitri Goutnik thankssss to youu sooo much!! about a help!!