Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tejas.designer07

#1
20.1 Legacy Series / Error code 1 during make vga
February 15, 2020, 08:27:10 AM
Hi,

I am trying to build stable/20.1 and I am successfully able to complete src, ports, plugins and core builds. When I run 'make vga' I get the following error.


Message from syslog-ng324-3.24.1:

--
syslog-ng is now installed!  To replace FreeBSD's standard syslogd
(/usr/sbin/syslogd), complete these steps:

1. Create a configuration file named /usr/local/etc/syslog-ng.conf
   (a sample named syslog-ng.conf.sample has been included in
   /usr/local/etc). Note that this is a change in 2.0.2
   version, previous ones put the config file in
   /usr/local/etc/syslog-ng/syslog-ng.conf, so if this is an update
   move that file in the right place

2. Configure syslog-ng to start automatically by adding the following
   to /etc/rc.conf:

        syslog_ng_enable="YES"

3. Prevent the standard FreeBSD syslogd from starting automatically by
   adding a line to the end of your /etc/rc.conf file that reads:

        syslogd_enable="NO"

4. Shut down the standard FreeBSD syslogd:

     kill `cat /var/run/syslog.pid`

5. Start syslog-ng:

     /usr/local/etc/rc.d/syslog-ng start
--
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Agreed upon upstream one year deprecation policy.

It is scheduled to be removed on or after 2020-12-12.
=====
Message from wpa_supplicant-2.9:

--
To use the ports version of WPA Supplicant instead of the base, add:

    wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"

to /etc/rc.conf
*** Error code 70

Stop.
make: stopped in /usr/tools


When I retry to make vga I now get the following error.


>>> Running build step: packages
>>> Setting up stage in /usr/obj/usr/tools/config/20.1/OpenSSL:amd64
*** Error code 1

Stop.
make: stopped in /usr/tools


I needed some help in debugging the issue. Thanks in advance  :)
#2
Hi,

I am using IDS on my network. I want to download and update the ruleset once a month automatically.
How can I achieve this?

Thanks in advance. :)
#3
Hi,

I have followed the following article to setup site-to-site IPsec VPN:
https://docs.opnsense.org/manual/how-tos/ipsec-s2s.html

I am able to successfully establish connection between both sites. I am getting very low performance(25mbps on a 1 gbps internet connection between both sites.) using iperf. I have also validated that AES-IN is enabled in the BIOS. I also noticed that the CPU usage doesn't increase even after file transfer has been initiated.

I am unable to detect the problem, please guide me through issue. Thanks in advance.
#4
Development and Code Review / Re: Compiling using GCC
September 14, 2019, 06:30:26 PM
Thanks Fabian. I will give that a try.

I am a student and I am learning low level programming and development. I just wanted to give it a try and see the differences.  :D
#5
Development and Code Review / Compiling using GCC
September 14, 2019, 07:43:45 AM
Hi,

I am currently compiling and building OPNsense using default clang library. I wanted to compile it using GCC.

Could someone guide me through the steps?

Thanks in advance. :)
#6
That was the issue. Thanks for all the help ;D
#7
Hi,

Thanks for your reply. These are the steps I followed to build 19.1.

1) #git clone https://github.com/opnsense/tools
2) #git checkout tags/19.1

I did the above steps for all repositories individually, so that all my local branches are on 19.1 i.e. "HEAD detached at 19.1"

3) #cd /usr/tools: make vga


>>> Running build step: vga                                                                                                                                                                                                                   
>>> Running build step: clean                                                                                                                                                                                                                 
>>> Removing vga image                                                                                                                                                                                                                       
>>> Setting up stage in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64                                                                                                                                                                         
>>> Setting up world in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                     
>>> Setting up kernel in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                   
>>> Extracting packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                 
>>> Installing packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work: os-dyndns opnsense                                                                                                                                             
pkg: No packages installed.  Nothing to do!                                                                                                                                                                                                   
Installing pkg-1.10.5_5...                                                                                                                                                                                                                   
Extracting pkg-1.10.5_5: 100%                                                                                                                                                                                                                 
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
Installing os-dyndns-1.13...                                                                                                                                                                                                                 
Extracting os-dyndns-1.13: 100%                                                                                                                                                                                                               
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
Installing opnsense-19.1.4...                                                                                                                                                                                                                 
`-- Installing beep-1.0_1...                                                                                                                                                                                                                 
`-- Extracting beep-1.0_1: 100%                                                                                                                                                                                                               
`-- Installing bsdinstaller-19.1_1...                                                                                                                                                                                                         
|   `-- Installing cpdup-1.20...                                                                                                                                                                                                             
|   `-- Extracting cpdup-1.20: 100%                                                                                                                                                                                                           
`-- Extracting bsdinstaller-19.1_1: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing ca_root_nss-3.42.1...                                                                                                                                                                                                         
`-- Extracting ca_root_nss-3.42.1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing choparp-20150613...                                                                                                                                                                                                           
`-- Extracting choparp-20150613: 100%                                                                                                                                                                                                         
`-- Installing cpustats-0.1...                                                                                                                                                                                                               
`-- Extracting cpustats-0.1: 100%                                                                                                                                                                                                             
`-- Installing dhcp6c-20190128...                                                                                                                                                                                                             
`-- Extracting dhcp6c-20190128: 100%                                                                                                                                                                                                         
`-- Installing dhcpleases-0.2...                                                                                                                                                                                                             
`-- Extracting dhcpleases-0.2: 100%                                                                                                                                                                                                           
`-- Installing dnsmasq-2.80_2,1...                                                                                                                                                                                                           
|   `-- Installing nettle-3.4.1_1...                                                                                                                                                                                                         
|   | `-- Installing indexinfo-0.3.1...                                                                                                                                                                                                       
|   | `-- Extracting indexinfo-0.3.1: 100%                                                                                                                                                                                                   
|   | `-- Installing gmp-6.1.2_1...                                                                                                                                                                                                           
|   | `-- Extracting gmp-6.1.2_1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   `-- Extracting nettle-3.4.1_1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Extracting dnsmasq-2.80_2,1: 100%                                                                                                                                                                                                         
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing dpinger-3.0...                                                                                                                                                                                                                 
`-- Extracting dpinger-3.0: 100%                                                                                                                                                                                                             
`-- Installing expiretable-0.6_1...                                                                                                                                                                                                           
`-- Extracting expiretable-0.6_1: 100%                                                                                                                                                                                                       
`-- Installing filterlog-0.2...                                                                                                                                                                                                               
`-- Extracting filterlog-0.2: 100%                                                                                                                                                                                                           
`-- Installing ifinfo-10.1...                                                                                                                                                                                                                 
`-- Extracting ifinfo-10.1: 100%                                                                                                                                                                                                             
`-- Installing flock-2.30.1...                                                                                                                                                                                                               
`-- Extracting flock-2.30.1: 100%                                                                                                                                                                                                             
`-- Installing flowd-0.9.1_3...                                                                                                                                                                                                               
|   `-- Installing python27-2.7.15...                                                                                                                                                                                                         
|   | `-- Installing openssl-1.0.2r,1...                                                                                                                                                                                                     
|   | `-- Extracting openssl-1.0.2r,1: 100%                                                                                                                                                                                                   
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   | `-- Installing readline-7.0.5...                                                                                                                                                                                                       
|   | `-- Extracting readline-7.0.5: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   | `-- Installing libffi-3.2.1_3...                                                                                                                                                                                                       
|   | `-- Extracting libffi-3.2.1_3: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   `-- Extracting python27-2.7.15: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory 
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                 [26/1960]

Failed to install the following 1 package(s): ./.pkg/All/opnsense-19.1.4.txz
Message from beep-1.0_1:                                   

Speaker sound support:                                     
======================                                     

For PC speaker sound to work you need to be in the operator group
and need r/w permissions to /dev/speaker device.

Load kernel module:                                       

# kldload speaker                                         

Add a user to operator group:

% pw groupmod operator -m jerry

Uncomment the following lines in /etc/devfs.rules file (create it
if it doesn't exist):                                     

# Allow members of group operator to cat things to the speaker

[speaker=10]                                               
add path 'speaker' mode 0660 group operator

To load these new rules add the following to /etc/rc.conf:

devfs_speaker_ruleset="speaker"

Then restart devfs to load the new rules:

% /etc/rc.d/devfs restart                                 
Message from ca_root_nss-3.42.1:

********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.                                     

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.                                             

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem                                     
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************
Message from dnsmasq-2.80_2,1:

*** To enable dnsmasq, edit /usr/local/etc/dnsmasq.conf and
*** set dnsmasq_enable="YES" in /etc/rc.conf[.local]
***                                                       
*** Further options and actions are documented inside
*** /usr/local/etc/rc.d/dnsmasq

*** SECURITY RECOMMENDATION                               
*** ~~~~~~~~~~~~~~~~~~~~~~~                               
*** It is recommended to enable the wpad-related options
*** at the end of the configuration file (you may need to
*** copy them from the example file to yours) to fix
*** CERT Vulnerability VU#598349.
Message from openssl-1.0.2r,1:

Edit /usr/local/openssl/openssl.cnf to fit your needs.
Message from python27-2.7.15:

===========================================================================

Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

===========================================================================
*** Error code 70                                         

Stop.                                                     
make: stopped in /usr/tools               


#make info

tools /usr/tools 19.1
src /usr/src 19.1
ports /usr/ports 19.1
plugins /usr/plugins 19.1
core /usr/core 19.1


Thanks.
#8
Hi,

I am trying to build OPNsense 19.1 from source code on FreeBSD 11.2. As all the repositories are updated to 19.7, I tried checking out tags 19.1 from all repositories but I am getting different errors while building ports.

Am I missing any steps?

Thanks for your help.
#9
Hi,

I wanted to use a different version of clang compiler stored in a different location instead of using the system compiler (/usr/bin/clang). How do I make sure that the OPNSense build process uses my version of clang rather than the system default?

Thanks.
#10
Hi, thanks for your quick response.

I tried adding same plist files for all the branches, but it still gives me the same error. How do I add a new file in the core/src and create a valid plist?
#11
Hi,

I am trying to add new files to /usr/core/ repo.
E.g.

1) I added a new image file inside usr/core/src/opnsense/www/themes/opnsense/build/images/caret2.png
2) I updated the plist in /usr/core
3) I added and commited the changes to .git
3) I ran the command 'make core' from /usr/tools

Error:

--- /usr/core/work/plist.old ...
+++ /usr/core/work/plist.new ...
.
.
.
>>> Package file lists do not match.  Please run 'make plist-fix'.
*** Error code 1

Stop.
make[1]: stopped in /usr/core
*** Error code 1

Stop.
make[1]: stopped in /usr/tools


What are the changes I need to do for me to add my own files? Thanks in advance.
#12
Hi Franco,

Thanks :D It worked :D :D

Best,
Tejas
#13
Thanks for your quick response. Below is the log when I try to build the ISO.


>>> Running build step: kernel
>>> Reusing kernel set: /usr/local/opnsense/build/19.1/amd64/sets/kernel-19.1_2-amd64.txz
.MAKE.LEVEL.ENV=MAKELEVEL
ABI_FILE=/usr/lib/crt1.o
BLOCKSIZE=K
CONFIGDIR=/usr/tools/config/19.1
CONFIG_XML=/usr/local/etc/config.xml
COREBRANCH=stable/19.1
COREDIR=/usr/core
COREENV=CORE_PHP=71 CORE_ABI=19.1
CPUS=8
DEBUG=1
DEVICEDIR=/usr/tools/device
EDITOR=vi
ENV_FILTER=env -i USER=root LOGNAME=root HOME=/root SHELL=/bin/csh BLOCKSIZE=K MAIL=/var/mail/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin TERM=xterm HOSTTYPE=FreeBSD VENDOR=amd OSTYPE=FreeBSD MACHTYPE=x86_64 PWD=/usr/tools/build GROUP=wheel HOST=OPNsense EDITOR=vi PAGER=more ABI_FILE=/usr/lib/crt1.o
GROUP=wheel
HOME=/root
HOST=OPNsense
HOSTTYPE=FreeBSD
IMAGESDIR=/usr/local/opnsense/build/19.1/amd64/images
LOGNAME=root
LOGSDIR=/usr/local/opnsense/build/19.1/amd64/logs
MACHTYPE=x86_64
MAIL=/var/mail/root
MAKEFLAGS= .MAKE.LEVEL.ENV=MAKELEVEL DEBUG=1
MAKELEVEL=1
META_MODE=normal
OLDPWD=/usr/obj/usr/tools
OSTYPE=FreeBSD
PACKAGESDIR=/.pkg
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
PLUGINENV=
PLUGINSBRANCH=stable/19.1
PLUGINSDIR=/usr/plugins
PORTSBRANCH=master
PORTSDIR=/usr/ports
PORTSREFBRANCH=master
PORTSREFDIR=/usr/hardenedbsd-ports
PRINT_ENV_SKIP=1
PRODUCT_ADDITIONS=os-dyndns
PRODUCT_ARCH=amd64
PRODUCT_CORE=myfirewall
PRODUCT_CORES=myfirewall myfirewall-devel
PRODUCT_DEVICE=a10
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_GITBASE=https://github.com/opnsense
PRODUCT_HOST=amd64
PRODUCT_KERNEL=SMP
PRODUCT_MIRROR=http://mirror.ams1.nl.leaseweb.net/opnsense
PRODUCT_NAME=MyFirewall
PRODUCT_PERL=5.28
PRODUCT_PHP=71
PRODUCT_PLUGIN=os-*
PRODUCT_PLUGINS=os-*
PRODUCT_PRIVKEY=/usr/tools/config/19.1/repo.key
PRODUCT_PUBKEY=/usr/tools/config/19.1/repo.pub
PRODUCT_PYTHON2=27
PRODUCT_PYTHON3=36
PRODUCT_QUICK=
PRODUCT_RELEASE=MyFirewall-201902111838-OpenSSL
PRODUCT_RUBY=25
PRODUCT_SERVER=user@does.not.exist
PRODUCT_SETTINGS=19.1
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /usr/tools/config/19.1/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /usr/tools/config/19.1/repo.pub /usr/tools/config/19.1/repo.key
PRODUCT_SPEED=115200
PRODUCT_SUFFIX=
PRODUCT_TARGET=amd64
PRODUCT_TYPE=myfirewall
PRODUCT_UEFI=yes
PRODUCT_VERSION=201902111838
PWD=/usr/tools/build
SETSDIR=/usr/local/opnsense/build/19.1/amd64/sets
SHELL=/bin/csh
SHLVL=1
SRCBRANCH=stable/19.1
SRCDIR=/usr/src
STAGEDIR=/usr/obj/usr/tools/config/19.1/OpenSSL:amd64
STAGEDIRPREFIX=/usr/obj
TARGETDIR=/usr/local/opnsense/build/19.1/amd64
TARGETDIRPREFIX=/usr/local/opnsense/build
TERM=xterm
TOOLSBRANCH=master
TOOLSDIR=/usr/tools
UPLOADDIR=
USER=root
VENDOR=amd
>>> Running build step: dvd
>>> Running build step: clean
>>> Removing dvd image
>>> Setting up stage in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64
>>> Setting up world in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Setting up kernel in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Extracting packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Installing packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work: os-dyndns myfirewall
Installing pkg-1.10.5_5...
Extracting pkg-1.10.5_5: .......... done
Installing os-dyndns-1.12_1...
Extracting os-dyndns-1.12_1: .......... done
Could not find package: myfirewall
*** Error code 1

Stop.
make: stopped in /usr/tools


Thanks,
Tejas
#14
Hi,

I created a package from /usr/core

cd /usr/core
make package CORE_NAME=myfirewall


package packs everything into myfirewall.txz and stores it into /usr/core/work directory.

I then try to build the iso from /usr/tools.

cd /usr/tools
make dvd NAME="MyFirewall"


The package set still doesn't have myfirewall.txz but instead has the original opnsense.txz.

What am I missing? Why doesn't it install my custom core into the package set?
#15
Hi,

I complied the base, kernel and packages. I wanted to modify one of the packages inside package set to add custom code. I did all the modifications that were required and ran 'make dvd'. I got the following error.


>>> Running build step: dvd
>>> Running build step: clean
>>> Removing dvd image
>>> Setting up stage in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64
>>> Setting up world in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Setting up kernel in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Extracting packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work
>>> Installing packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work: os-dyndns myfirewall
pkg: No packages installed.  Nothing to do!
Installing pkg-1.10.5_5...
Extracting pkg-1.10.5_5: .......... done
Installing os-dyndns-1.12...
Extracting os-dyndns-1.12: .......... done
pkg: ./.pkg/All/myfirewall-19.1.r2_7.txz is not a valid package: no manifest found

Failed to install the following 1 package(s): ./.pkg/All/myfirewall-19.1.r2_7.txz
*** Error code 70

Stop.
make: stopped in /usr/tools


I noticed that there is a checksum for each file inside the package +MANIFEST file and I cannot modify any files inside.

How do I overcome this error? Thanks in advance.