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

Adding additional port #38

Closed
hayzamjs opened this issue Aug 8, 2016 · 21 comments
Closed

Adding additional port #38

hayzamjs opened this issue Aug 8, 2016 · 21 comments
Assignees
Labels
bug Production bug

Comments

@hayzamjs
Copy link

hayzamjs commented Aug 8, 2016

Hey guys, I wanted to try building the asterisk port whilst building, as you guys said in another post I added asterisk to ports.conf in tools.git and added 'asterisk /' to core/Makefile, but when I try to run asterisk after building, it doesn't seem to contain asterisk..what am I doing wrong here? How do I install ports I need extra during the build?

@fichtner
Copy link
Member

fichtner commented Aug 8, 2016

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. :)

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

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 :)

@fichtner
Copy link
Member

fichtner commented Aug 8, 2016

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...

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

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

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

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?

@fichtner
Copy link
Member

fichtner commented Aug 8, 2016

Are you on i386?

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

Yes, since my target is also i386..

@fichtner
Copy link
Member

fichtner commented Aug 8, 2016

:D

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

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

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

@fichtner
Copy link
Member

fichtner commented Aug 8, 2016

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.

@hayzamjs
Copy link
Author

hayzamjs commented Aug 8, 2016

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

@hayzamjs hayzamjs closed this as completed Aug 8, 2016
@hayzamjs hayzamjs reopened this Aug 8, 2016
@hayzamjs
Copy link
Author

hayzamjs commented Aug 9, 2016

Here is the log link

@fichtner
Copy link
Member

fichtner commented Aug 9, 2016

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 zi@FreeBSD.org [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

@hayzamjs
Copy link
Author

hayzamjs commented Aug 9, 2016

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?

@fichtner
Copy link
Member

fichtner commented Aug 9, 2016

@hayzamjs
Copy link
Author

hayzamjs commented Aug 9, 2016

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

@fichtner
Copy link
Member

fichtner commented Aug 9, 2016

OK, let me know how that goes :)

@hayzamjs
Copy link
Author

hayzamjs commented Aug 9, 2016

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 !

@hayzamjs hayzamjs closed this as completed Aug 9, 2016
fichtner added a commit to opnsense/ports that referenced this issue Aug 9, 2016
@fichtner
Copy link
Member

fichtner commented Aug 9, 2016

@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

@hayzamjs
Copy link
Author

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

@fichtner
Copy link
Member

fichtner commented Aug 10, 2016

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!

@fichtner fichtner self-assigned this Aug 10, 2016
@fichtner fichtner added the bug Production bug label Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

2 participants