Code Monkey home page Code Monkey logo

Comments (21)

fichtner avatar fichtner commented on July 25, 2024

Asterisk is in the latest builds as "asterisk13", you'll need that as a core.git dependency.

It should: error out when the dependency was not found because it was not build and there should be something in the ports build log too. Please check there first. :)

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

So I added net/asterisk13 to ports.conf in tools/config/16.7/ and 'asterisk13 ' to core/Makefile, where is this ports build log located and one more question, I already built opnsense once, do I have to rebuild the whole thing or can I just build the new one with asterisk on the side, is it done with make ports-asterisk13 ?
EDIT : Thanks for all the swift reply :)

from tools.

fichtner avatar fichtner commented on July 25, 2024

Yes, it needs to be rebuilt. Let's assume you're on the latest tools.git, then you run:

# make ports-asterisk13 core

The build logs are the output of the respective make commands, nothing fancy, but it might be good to look at them or store them for later...

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Oh cool, I've started make ports-asterisk13 core, I'll tell you how it goes asap :)

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Could not find package: asterisk13
*** Error code 1

That's what I get when I do make ports-asterisk13 core, what should I do to fix it?

from tools.

fichtner avatar fichtner commented on July 25, 2024

Are you on i386?

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Yes, since my target is also i386..

from tools.

fichtner avatar fichtner commented on July 25, 2024

:D

You must edit config/16.7/ports.conf, and remove i386 from the asterisk entry

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

That's the weird part it's already just net/asterisk13

from tools.

fichtner avatar fichtner commented on July 25, 2024

It should be in there twice unless edited out? Maybe it's not using the right config, the current config directory is "16.7" by default. It's likely a simple error, but hard to say where unless looking at your code.

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

I've edited it a couple of times, I'll checkout tools again and try from scratch..lets see if that works
EDIT : The latest tools/config/16.7/ports.conf contains only one instance of asterisk13, Sorry I closed the issue by mistake lol

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Here is the log link

from tools.

fichtner avatar fichtner commented on July 25, 2024

net-snmp configure is broken on FreeBSD 10.x with the src.conf options we have. You need to remove the SNMP option in order to build it successfully. That's why it was disabled in our i386 builds...

checking size of short... Segmentation fault (core dumped)
configure: error: in `/usr/obj/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3':
configure: error: cannot compute sizeof (short)
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to [email protected] [maintainer] and attach the
"/usr/obj/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net-mgmt/net-snmp
*** Error code 1

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

There are 2 snmp instances in core/Makefile, that is 'bsnmp-regex ' and 'bsnmp-ucd ', 'net-mgmt/bsnmp-regex' and 'net-mgmt/bsnmp-ucd' is in tools/config/16.7/ports.conf
But this package is not related to asterisk is it? then why isn't asterisk13 not found while building the core?

from tools.

fichtner avatar fichtner commented on July 25, 2024

https://github.com/opnsense/ports/blob/master/net/asterisk13/Makefile#L181-L182

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Hahahah I feel so dumb, so I'll try removing that and building again..:D

from tools.

fichtner avatar fichtner commented on July 25, 2024

OK, let me know how that goes :)

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Here is the log Link, I completed the make ports-asterisk13 core and then ran make cdrom after that I ran the iso on a vm and got to the shell and tried to run asterisk, it gave me Shared Object "libxslt.so.1" not found, required by "asterisk", so the building of asterisk along with OPNSense works except the dependencies..I guess, what do you think?

EDIT : I cleaned everything kept it for build again, guess what? It's working pefectly! :D
Thanks a lot @fichtner !

from tools.

fichtner avatar fichtner commented on July 25, 2024

@Fazelesswhite this shouldn't be happening and I could reproduce this on amd64 with a stock 16.7.1 install, I've applied a bandaid, will see how we can fix that in FreeBSD

opnsense/ports@f806595

from tools.

hayzamjs avatar hayzamjs commented on July 25, 2024

Thats funny, I built it without the bandaid yesterday and asterisk13 is working fine..

from tools.

fichtner avatar fichtner commented on July 25, 2024

From the ports framework it can run fine when it was a ports-asterisk13 rebuild... The trouble is in the normal full ports build libxslt gets built by something else, and this is picked up by asterisk13 on the side. Nice catch!

from tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.