Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Creating pfSense 2.0 Developers ISO on FreeBSD Beta 8.1

    Scheduled Pinned Locked Moved Development
    70 Posts 6 Posters 45.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      trijames
      last edited by

      HI Jimp,

      ok thanks for the heads up. What about the other errors?
      Are they all critical?  Or can I manage to build an ISO with the other errors after php is fixed?

      e.g.:

      ERROR Building dnsmasq
      ERROR Building syslog-ng
      and
      Building olsrd
      src/NetworkInterfaces.c:54:47: error: linux/if_ether.h: No such file or directory
      src/NetworkInterfaces.c:55:92: error: linux/if_packet.h: No such file or directory
      src/NetworkInterfaces.c:56:46: error: linux/if_tun.h: No such file or directory
      src/Bmf.c:52:47: error: linux/if_ether.h: No such file or directory
      src/Bmf.c:53:75: error: linux/if_packet.h: No such file or directory
      Building pftop
      and
      the O_NONBLOCK symbol with a syntax error.  This is apparently a
      sh error.  Rerunning Configure with ksh apparently fixes the
      error, then please read the section "64 bit data in perl 5.6.0 and 5.6.1"
        /usr/local/lib/perl5/5.10.1/perl/man/man3/CPANPLUS::Error.3
      Build dependency freetype2 of rrdtool

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        not sure about dnsmasq and syslog-ng, but the olsr and other errors are not really errors, they are normal output that just happens to contain the string "error", or harmless.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • T
          trijames
          last edited by

          ok thanks.
          I will eventually need the dnsmasq - but hoping that i can still create the iso irregardless of whether those 2 compile or not.

          which forum (or url) can i see the status of the php5 changes being made to freebsd?
          that way I can try to keep an eye out for it (or communicate with the developer).

          thanks
          TJ

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Keep an eye on the tools repo commit log:

            https://rcs.pfsense.org/projects/pfsense-tools

            dnsmasq is being worked on right now.

            The person making the changes for php52 might not finish up until Monday, they went home early to watch the world cup match. :-)

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Everything may be OK now. Be sure to update your ports tree, then the git repos, then build_pfPorts.sh.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • T
                trijames
                last edited by

                Hi Jimp,
                looks like the errors are still there:
                Here's what I did:
                        # cd /home/pfsense/tools/builder_scripts

                ./set_version.sh RELENG_8_1 cvsup4.us.freebsd.org (or cvsup.livebsd.org)

                ./clean_build.sh

                ./update_git_repos.sh

                ./apply_kernel_patches.sh

                ./build_pfPorts.sh

                cd /home/pfsense/tools/builder_scripts

                ./build_iso.sh

                Not sure if the build_pfPorts.sh was in the right spot…

                Here are the errors I get in the build-iso.sh script.
                I'm getting a lot more errors at the earlier stages of the build-iso.sh
                But, the build doesn't terminate until the very end when (it looks like) fails on dfuife_curses...

                .
                ..
                ...

                Building port sshlockout_pf
                Ports with failures:      28
                ERROR Building ipsec-tools-devel
                File not found ipsec-tools-devel - /usr/local/sbin/racoon
                ERROR Building ipfw-classifyd
                File not found ipfw-classifyd - /usr/local/sbin/ipfw-classifyd
                ERROR Building check_reload_status
                File not found check_reload_status - /usr/local/sbin/check_reload_status
                ERROR Building dhcplease
                File not found dhcplease - /usr/local/sbin/dhcpleases
                ERROR Building filterdns
                File not found filterdns - /usr/local/sbin/filterdns
                ERROR Building dnsmasq-no-isc-dhcp-parser
                ERROR Building isc-dhcp30-server
                File not found isc-dhcp30-server - /usr/local/sbin/dhcpd
                ERROR Building isc-dhcp30-relay
                File not found isc-dhcp30-relay - /usr/local/sbin/dhcrelay
                ERROR Building minicron
                File not found minicron - /usr/local/bin/minicron
                ERROR Building php52-pfSense-module
                File not found php52-pfSense-module - /usr/local/lib/php/20060613/pfSense.so
                ERROR Building 3gstat_um175
                File not found 3gstat_um175 - /usr/local/bin/3gstat
                ERROR Building wrapalixresetbutton
                File not found wrapalixresetbutton - /usr/local/sbin/alixresetbtn
                ERROR Building voucher
                ERROR Building dnswatch
                ERROR Building gzsig
                ERROR Building ssh_tunnel_shell
                ERROR Building sshlockout_pf
                Building athstats...main.c: In function 'getfmt':
                main.c:73: warning: implicit declaration of function 'strcasecmp'
                .
                ..
                ...
                Installing packages:
                grub-0.97_3
                Phase populate_extra...
                Making devd... Done.
                Using FreeBSD 7 BSDInstaller dfuibelua structure.
                Merging extra items...
                Running plugins: customroot customscripts pkginstall buildmodules rootmfs varmfs etcmfs Done!
                ==> Building syslogd...
                ==> Installing syslogd to /usr/local/pfsense-fs/usr/sbin/...
                ==> Building clog...
                ==> Installing clog to /usr/local/pfsense-fs/usr/sbin/...
                Using /usr/home/pfsense/tools/builder_scripts/../builder_scripts/copy.list.RELENG_8_0...
                Populating newer binaries found on host jail/os (usr/local)...
                Installing collected library information (usr/local), please wait...
                chroot'ing and running /etc/rc.php_ini_setup
                Using FreeBSD 7 BSDInstaller dfuibelua structure.
                Copying config.xml from conf.default/ to cf/conf/
                Testing PHP installation in /usr/local/pfsense-fs: FCGI-PASSED PASSED  [OK]
                Checking BSDInstaller health… dfuife_curses missing [ERROR!]

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Another dev and I have been making quite a lot of changes to the builder code over the weekend, polishing things up.

                  I don't see any reason why those other ports would have failed. They all work OK for me now, both on x86 and amd64.

                  # portsnap fetch && portsnap extract  (Or update ports by csup, however you normally do it)
                    # cd /home/pfsense/tools/builder_scripts
                    # ./update_git_repos.sh
                    # ./clean_build.sh (Not really necessary most of the time, but shouldn't hurt, just adds time)
                    # ./set_version.sh RELENG_8_1 cvsup4.us.freebsd.org (or cvsup.livebsd.org)   (Not needed except for the first run, really)
                    # ./apply_kernel_patches.sh
                    # ./build_pfPorts.sh (Actually build_iso.sh will run this, no need to do it on its own unless you are testing)
                    # ./build_iso.sh

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • T
                    trijames
                    last edited by

                    Thanks Jimp,
                    I'll give it another try… Hopefully I can get it to work!

                    1 Reply Last reply Reply Quote 0
                    • K
                      kpa
                      last edited by

                      I'm not getting errors at the build ports phase but the build stops at the dfuife_part as well:

                      Checking BSDInstaller health… dfuife_curses missing [ERROR!]

                      Question, is it necessary to build and install any of the standard ports in /usr/ports before running build_iso.sh?

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        @kpa:

                        I'm not getting errors at the build ports phase but the build stops at the dfuife_part as well:

                        Checking BSDInstaller health… dfuife_curses missing [ERROR!]

                        Question, is it necessary to build and install any of the standard ports in /usr/ports before running build_iso.sh?

                        Ideally, no, but in the past it has been necessary to build at least PHP on the builder box (and more recently the pfSense PHP module).

                        Have you updated the git repos and done a full build today? I thought someone committed a fix for curses over the weekend.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • T
                          trijames
                          last edited by

                          HI Jimp,

                          well the good news is that it went through your listed steps as you outlined earlier cleanly this time!

                          (except this…
                          src/NetworkInterfaces.c:54:47: error: linux/if_ether.h: No such file or directory
                          src/NetworkInterfaces.c:55:92: error: linux/if_packet.h: No such file or directory
                          src/NetworkInterfaces.c:56:46: error: linux/if_tun.h: No such file or directory
                          )

                          So, it is the cleanest build so far...

                          But, I still got the dfuife_curses error at the very end:

                          Checking BSDInstaller health... dfuife_curses missing [ERROR!]

                          Everything else is clean!
                          How are you getting dfuife_curses to build?
                          Are you building manually?
                          I also set environment variable force-pkg-register
                              #> setenv FORCE_PKG_REGISTER

                          Not sure if that helped with the cleaner build…
                          But looks like the ISO still isn't going to be generated until I solve the dfuife_curses issue.

                          regards
                          TJ

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            @trijames:

                            (except this…
                            src/NetworkInterfaces.c:54:47: error: linux/if_ether.h: No such file or directory
                            src/NetworkInterfaces.c:55:92: error: linux/if_packet.h: No such file or directory
                            src/NetworkInterfaces.c:56:46: error: linux/if_tun.h: No such file or directory
                            )

                            That's harmless

                            @trijames:

                            But, I still got the dfuife_curses error at the very end:

                            Checking BSDInstaller health… dfuife_curses missing [ERROR!]

                            Everything else is clean!
                            How are you getting dfuife_curses to build?
                            Are you building manually?
                            I also set environment variable force-pkg-register
                                #> setenv FORCE_PKG_REGISTER

                            Not sure if that helped with the cleaner build…
                            But looks like the ISO still isn't going to be generated until I solve the dfuife_curses issue.

                            I'm not sure why that is still failing. You might try to rm -rf /usr/local/pfsense-clone/ and then run the build again.

                            That, or:

                            cd /usr/home/pfsense/tools/builder_scripts/installer/ports/sysutils/dfuife_curses

                            make install clean

                            And then redo the build.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • T
                              trijames
                              last edited by

                              Hi Jimp,

                              ok thanks - I'll try it.

                              1 Reply Last reply Reply Quote 0
                              • T
                                trijames
                                last edited by

                                Hi Jimp,

                                i think there was a typo in the directory - but will ask just in case.
                                I cd /usr/home/pfsense/installer/ports/sysutils/dfuife_curses.

                                here's what I get when I try to make install clean…

                                freebsd81rc1386# make install clean
                                ===>  Vulnerability check disabled, database not found
                                ===>  License check disabled, port has not defined LICENSE

                                Distfile dfuife_curses-1.5.1.tar.gz not found!

                                This is an 'INTERNAL' port, meaning that the distfile is not retrieved
                                from the Internet, but rather created from a local checkout of the
                                BSD Installer CVS repository.  Please see the shell scripts in the
                                scripts/build directory of the repository for more information on how
                                to create these distfiles.
                                *** Error code 1

                                Stop in /usr/home/pfsense/installer/ports/sysutils/dfuife_curses.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  trijames
                                  last edited by

                                  Hi Jimp,

                                  1 more…
                                  I tried to remove the dir pfsense-clone - but didn't find it.
                                  I assume that is now called pfsense-fs?

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    It may be removed as part of the build process…

                                    Then try this from the builder_scripts dir:

                                    ./rebuild_bsdinstaller.sh

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      trijames
                                      last edited by

                                      thanks Jimp,

                                      Now that I've isolated it down to 1 issue (dfuife_curses)…
                                      I was wondering - how can I test whether it will fail on dfuife_curses first before trying to run build-iso.sh?

                                      that way I can save a good 1+ hours on building beforehand...

                                      Any tricks?

                                      regards
                                      TJ

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        The test is:

                                        if [ ! -f "$PFSENSEBASEDIR/usr/local/sbin/dfuife_curses" ]; then
                                        

                                        And $PFSENSEBASEDIR is usually /usr/local/pfsense-fs, so look for:

                                        /usr/local/pfsense-fs/usr/local/sbin/dfuife_curses

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          trijames
                                          last edited by

                                          Hi Jimp,

                                          that did it! 
                                          here's what I did:

                                          #> rm -fr /usr/local/pfsense-fs
                                          #> ./rebuild_bsdinstaller.sh
                                          #> ./build-iso.sh

                                          thanks for all your outstanding support!  You were very responsive!
                                          Hopefully now I can make the customizations I need to make… :-)

                                          regards
                                          James

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            black0ut
                                            last edited by

                                            Gonna bump this thread.. Trying to build a pfsense ISO and getting a ton of patch rejections.

                                            My pfsense-build.conf was generated using set_version HEAD.  I added the date line in the 8.1 supfile (even though the date is before the 8.1 release?)

                                            Attached are my pfsense-build.conf and build log.  I looked at some of the rejections and some of the patches seem like they are for a completely different source tree

                                            pfsense-build.conf.txt
                                            log.txt

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.