Build fails - ERROR Building libtool



  • Hi all,

    I'm new to pfSense building but after many hours of reading this forum and the 'DevelopersBootStrapAndDevIso' wiki, I managed to get a build environment up and running on VMWare ESXi.

    I installed FreeBSD 8.1 and carried out steps 1-4 as outlined here:

    http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso

    From the menu, I set version to RELENG_8_1, set the 'Apply Patches' option and then finally select 'Build ISO'.

    This is how far I get, the build has been stuck at this stage for over 2 hours now so I guess something is wrong:

    >>> Building /usr/ports/sysutils/screen ...Done!
    --> Preparing for pfPorts build buildports.RELENG_2_0
    --> WARNING!  We are about to run make includes.
    --> Press CTRl-C to abort this operation.....
    ==> Starting make includes operation...
    yacc: 4 shift/reduce conflicts
    ==> Compiling pfPorts...
    >>> Executing buildports.RELENG_2_0
    >>> Setting MAKEJ_PORTS (-j) to ''
    >>> Creating directory /usr/ports/net/pfflowd-0.8
    >>> Copying pfPorts /usr/ports/net/pfflowd-0.8 and building...
    >>> Building pfflowd-0.8...cat: /tmp/pfPort_alreadybuilt: No such file or directory
    >>> Creating directory /usr/ports/security/ipsec-tools-devel
    >>> Copying pfPorts /usr/ports/security/ipsec-tools-devel and building...
    >>> Building libtool...===>  Cleaning for libtool-2.4.2
    *** Error code 1
    ERROR Building libtool
    >>> Building openldap24-client...===>  Cleaning for libtool-2.4.2
    

    I also tested using the pfSense builder OVA and stranegly enough, it reaches the same point and does nothing.

    I read the note that the first build may fail, if I run again it still gets stuck at the same point (minus the libtool error):

    >>> Using /usr/home/pfsense/tools/builder_scripts/remove.list.iso.8 ...
    >>> Operation ./build_iso.sh has started at Sun Apr  1 12:59:23 BST 2012
    --> Preparing for pfPorts build buildports.RELENG_2_0
    --> WARNING!  We are about to run make includes.
    --> Press CTRl-C to abort this operation.....
    ==> Starting make includes operation...
    ==> Compiling pfPorts...
    >>> Executing buildports.RELENG_2_0
    >>> Setting MAKEJ_PORTS (-j) to ''
    >>> Found port location /usr/ports/net/pfflowd-0.8.
    >>> Copying pfPorts /usr/ports/net/pfflowd-0.8 and building...
    >>> Building pfflowd-0.8...already built /usr/ports/net/pfflowd-0.8 on this run.  Skipping...
    >>> Found port location /usr/ports/security/ipsec-tools-devel.
    >>> Copying pfPorts /usr/ports/security/ipsec-tools-devel and building...
    >>> Building libtool...already built /usr/ports/devel/libtool on this run.  Skipping...
    >>> Building openldap24-client...===>  Cleaning for openldap-client-2.4.26
    
    

    Any advice would be appreciated  :)

    Thank you.

    James



  • I can confirm the same thing on a RELENG_2_0 version build on both x86 and x64. The problem seems to be that in my build I have already built a few times and subsiquent build are erroring out with "already installed". This suggests that the FORCE_PKG_REGISTER build setting is not being used. It is also not using the BATCH setting either since some of the package builds are asking for configuration. When I run the port build manually, I do not have the same problem.

    My RELENG_2_1 builds are not having the same problem. It seems that only the buildports_RELENG_2_0 script is having the problem. I have tried to fix this, but it just keeps happening.



  • Just reupdate your ports and tools repo and retry.



  • Ermal, I do that constantly, more so since I have been having issues. I have even removed and redownloaded my ports. Up until the some of the latest changes to buildports_RELENG_2_0, I have not had any problems building 2.0.1.
    My usual cycle was to:

    rm -rf /tmp/*
    portsnap fetch extract
    csup -h cvsup17.freebsd.org /usr/share/examples/cvsup/standard-supfile
    cd /home/pfsense/tools/builder_scripts
    ./clean_build.sh
    rm -rf /home/pfsense/installer
    /cvsup_bsdinstaller ; ./rebuild_bsdinstaller.sh
    ./update_git_repos.sh
    ./set_version.sh RELENG_2_0 cvsup17.freebsd.org
    ./build_iso.sh
    ./build_updates.sh

    Something is not working correctly as it seems that BATCH and FORCE_PKG_REGISTER variables are being ignored.



  • The new changes to the file allow for a build, but it is not clean.
    Here is a sample:

    
    ==> Compiling pfPorts...
    >>> Executing buildports.RELENG_2_0
    >>> Setting MAKEJ_PORTS (-j) to ''
    >>> Found port location /usr/ports/net/pfflowd-0.8...overlaying pfPorts /usr/home/pfsense/tools/builder_scripts/../../tools/pfPorts/pfflowd-0.8 to /usr/ports/net/pfflowd-0.8 and building...Done.
    >>> Building pfflowd-0.8(pfflowd-0.8)...cat: /tmp/pfPort_alreadybuilt: No such file or directory
    >>> Found port location /usr/ports/security/ipsec-tools-devel...overlaying pfPorts /usr/home/pfsense/tools/builder_scripts/../../tools/pfPorts/ipsec-tools-devel to /usr/ports/security/ipsec-tools-devel and building...Done.
    >>> Found port location /usr/ports/devel/libtool...Done.
    >>> Building libtool()...already built on this run.  Skipping...
    >>> Found port location /usr/ports/net/openldap24-client...Done.
    >>> Building openldap24-client()...already built on this run.  Skipping...
    >>> Building openldap24-client()...already built on this run.  Skipping...
    >>> Found port location /usr/ports/sysutils/grub...overlaying pfPorts /usr/home/pfsense/tools/builder_scripts/../../tools/pfPorts/grub to /usr/ports/sysutils/grub and building...Done.
    >>> Found port location /usr/ports/devel/autoconf...Done.
    >>> Building autoconf()...make: don't know how to make clean. Stop
    ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    >>> Building tools/crytpo...Done!
    ==> End of pfPorts...
    
    

    It should stop at this point since there is an errors present, but alas it continues. It also does not re-complile like the 2.1 builds do.



  • Hello,

    I'm having the same problem

    Freebsd 8.1 in VMware ESXi 5



  • And, me too. Building libtool step never progresses.



  • Good to know that i'm not the only one!
    I've set up 2 more fresh builder VM's and followed the wiki precisely but always get the same problem :(



  • Hello Guys,
    I have tried out the new buildports.RELENG_2_0 (4/5/11 16:30EST) and it is still skipping building ports even when it should.There are also several ports like libxml2 that keeps trying to rebuild but always says skipping.



  • Hi.
    After you clone the tools repo, in the tools folder, type:

    git checkout RELENG_2_0

    It switches the branch from master to RELENG_2_0.



  • so does:
    ./set_version.sh RELENG_2_0 cvsup17.freebsd.org



  • Try update your ports (with ./update_git_repos.sh) - there were some changes made yesterday which should fix the problems you were seeing.



  • @wagonza:

    Try update your ports (with ./update_git_repos.sh) - there were some changes made yesterday which should fix the problems you were seeing.

    I've just tried and it stopped at "Executing buildports.RELENG_2_0"
    I've updated ports, source code and pfsense-tools but still not working.



  • It should eventually continue after that, how long did you leave it for?



  • @wagonza:

    It should eventually continue after that, how long did you leave it for?

    Over 1 hour.



  • @ardunio:

    Over 1 hour.

    heh, ok no it should not be that long. Try do a clean_build.sh, apply_kernel_patches.sh and re-run the build_pfPorts.sh



  • I have tried a couple of times and I had errors on build, but since I have built once, the errors doesn't seems stop a successful build of the iso. I am also still skipping build where when building 2.1, I don't skip. On re-building the iso and updates on 2.1, all the ports are rebuilt and forced into registering (effectively doing a port upgrade). 2.0 apparently sees that it is already installed and does not re-compile. The problem is that with the customizations and patches to the system, it makes any normal FreeBSD port upgrade method useless.
    I am currently build 2.1 images in the virtual server and will paste the 2.0.1 build errors in here at a later time.



  • @wagonza:

    heh, ok no it should not be that long. Try do a clean_build.sh, apply_kernel_patches.sh and re-run the build_pfPorts.sh

    I did but had lot of errors again.



  • Well … the same errors are now present in the 2.1 builds. Yet it still builds ISOs and updates.

    
    >>> Overlaying pfPorts /home/pfsense/tools/builder_scripts/../../tools/pfPorts/unbound to /usr/ports/dns/unbound and building...
    >>> gmake(gmake-3.82)...already built on this run.  Skipping.
    >>> libevent(libevent-1.4.14b_2)...already built on this run.  Skipping.
    >>> gmake(gmake-3.82)...already built on this run.  Skipping.
    >>> libtool(libtool-2.4.2)...already built on this run.  Skipping.
    >>> Building ldns(ldns-1.6.12)...Done.
    >>> expat2(expat-2.0.1_2)...already built on this run.  Skipping.
    >>> Building unbound(unbound-1.4.16)...Done.
    >>> Ports with failures:        3
    >>> Building libart_lgpl(libart_lgpl-2.3.21,1)...ERROR!
    >>> Building freetype2(freetype2-2.4.2)...ERROR!
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    
    


  • @podilarius:

    Well … the same errors are now present in the 2.1 builds. Yet it still builds ISOs and updates.

    
    >>> Overlaying pfPorts /home/pfsense/tools/builder_scripts/../../tools/pfPorts/unbound to /usr/ports/dns/unbound and building...
    >>> gmake(gmake-3.82)...already built on this run.  Skipping.
    >>> libevent(libevent-1.4.14b_2)...already built on this run.  Skipping.
    >>> gmake(gmake-3.82)...already built on this run.  Skipping.
    >>> libtool(libtool-2.4.2)...already built on this run.  Skipping.
    >>> Building ldns(ldns-1.6.12)...Done.
    >>> expat2(expat-2.0.1_2)...already built on this run.  Skipping.
    >>> Building unbound(unbound-1.4.16)...Done.
    >>> Ports with failures:        3
    >>> Building libart_lgpl(libart_lgpl-2.3.21,1)...ERROR!
    >>> Building freetype2(freetype2-2.4.2)...ERROR!
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    
    

    I'm having same errors.



  • 
    >>> Building libart_lgpl(libart_lgpl-2.3.21,1)...ERROR!
    >>> Building freetype2(freetype2-2.4.2)...ERROR!
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    
    

    I thought i had checked in a fix for this ^^, these actually would fail now on any build if you have updated your ports. There was a change to pkg-config which causes the first two ports to fail. olsrd is moving to a package, so that should be removed. I will try finish that package in the next few days and have it removed from the build setup. I will get this fixed and report back.



  • Okay. Thanks for your caring.



  • Thanks wagonza. I try to keep my build servers up-to-date. This is why I would like for the build scripts to rebuild ports. Right now, it looks like if the port is already installed, it skips building it. I would like to keep it so that if /tmp/pgPorts_forced_build_required is still there to have it rebuild all the ports in the list with at least the BATCH and FORCE_PKG_REGISTER options set so that the ports and the installed files are updated. Let me know if that is just not realistic.



  • No problem. Do a ./update_git_repos.sh and rebuild it should be working now.
    Ill look at the /tmp/pfPorts_forced_build_required bit and see - it still needs a lot of tuning.



  • Thanks wagonza … I will let you know the outcome.



  • Unfortunately the error issue persists.

    
    >>> Building gogoc(gogoc-1.2)...Done.
    >>> Ports with failures:        4
    >>> Building libart_lgpl(libart_lgpl-2.3.21,1)...ERROR!
    >>> Building freetype2(freetype2-2.4.2)...ERROR!
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> Building ioncube(ioncube-4.0.12)...ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    >>> Building tools/crytpo...Done!
    ==> End of pfPorts...
    
    


  • and these are mine.

    
    >>> Building ipfw-classifyd(ipfw-classifyd-0.1)...ERROR!
    >>> File not found ipfw-classifyd				/usr/ports/net/ipfw-classifyd				/usr/local/sbin/ipfw-classifyd - /usr/local/sbin/ipfw-classifyd
    >>> Building mpd5(mpd-5.6)...ERROR!
    >>> File not found mpd5						/usr/ports/net/mpd5							/usr/local/sbin/mpd5 - /usr/local/sbin/mpd5
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> File not found olsrd						/usr/ports/net/olsrd						/usr/local/sbin/olsrd - /usr/local/sbin/olsrd
    >>> Building php52-pfSense-module(php52-pfSense-module-0.1)...ERROR!
    >>> File not found php52-pfSense-module		/usr/ports/devel/php52-pfSense-module		/usr/local/lib/php/20060613/pfSense.so - /usr/local/lib/php/20060613/pfSense.so
    >>> Building ioncube(ioncube-4.0.12)...ERROR!
    >>> File not found ioncube 					/usr/ports/devel/ioncube					/usr/local/lib/php/20060613/ioncube/ioncube_loader.so - /usr/local/lib/php/20060613/ioncube/ioncube_loader.so
    
    


  • Did you update your ports tree prior to all of this?



  • Yes … I run a script that does that ...

    
    #!/bin/sh
    
    rm -rf /tmp/*
    portsnap fetch extract
    csup -h cvsup17.freebsd.org /usr/share/examples/cvsup/standard-supfile
    cd /home/pfsense/tools/builder_scripts
    ./clean_build.sh
    ./update_git_repos.sh
    rm -rf /home/pfsense/installer
    /cvsup_bsdinstaller ; ./rebuild_bsdinstaller.sh
    ./set_version.sh RELENG_2_1 cvsup17.freebsd.org email email
    cd /home/pfsense/tools/pfPorts/php5; make -DBATCH -DFORCE_PKG_REGISTER -DNOPORTDOCS clean all install clean
    cd /home/pfsense/tools/pfPorts/php5-pfSense-module/; make -DBATCH -DFORCE_PKG_REGISTER -DNOPORTDOCS all install clean
    cd /usr/ports/devel/readline/; make -DBATCH -DFORCE_PKG_REGISTER -DNOPORTDOCS all install clean
    cd /usr/ports/curl; make -DBATCH -DFORCE_PKG_REGISTER -DNOPORTDOCS all install clean
    cd /home/pfsense/tools/builder_scripts
    ./build_iso.sh
    ./build_updates.sh
    
    


  • I do the same basic thing for 2.0.1 builds as well.



  • Down to 2 errors on the 2.0.1 builds. I will probably try the 2.1 builds tonight.

    >>> Ports with failures:        2
    >>> Building olsrd(olsrd-0.5.6.r7)...ERROR!
    >>> Building ioncube(ioncube-4.0.12)...ERROR!
    >>> Building athstats...main.c: In function 'getfmt':
    main.c:73: warning: implicit declaration of function 'strcasecmp'
    Done!
    >>> Building tools/crytpo...Done!
    ==> End of pfPorts...
    

    It still skips when it should not.



  • I meant 'portsnap fetch update' for the ports tree.

    Those two errors are expected. OLSRD will be moved and dont worry about ioncube.



  • I will try that out on some 2.1 builds tonight, or is this only for the 2.0 series?



  • That is for both.



  • @wagonza:

    I meant 'portsnap fetch update' for the ports tree.

    Those two errors are expected. OLSRD will be moved and dont worry about ioncube.

    Hi again. Like you said,  these ports are failed. Even so I build an iso image and it works correctly now. But I'm worried about if it crashes.



  • Mine also errors, but continues the build. I have run on them and everything seems just fine.



  • @podilarius:

    Mine also errors, but continues the build. I have run on them and everything seems just fine.

    They still fail at me. What about you?



  • I have not run a build in a few days, and since snapshots are behind (May 2nd is the latest), there is probably a problem.
    Please post the exact error you are getting. This will help the developers fix the error.


  • Rebel Alliance Developer Netgate

    There was no problem with the build process in general. Snapshots were only off because the ova build was grabbing a conflicting port to one that was already on the builders. All fixed up now.

    olsrd is going to be moved out of base and back to a package, so don't worry too much about that (few people, if any, need/use it anyhow), and ioncube isn't necessary yet.



  • Has anyone attempted a build with 9.0 ???
    Wanting to try the Mellanox support with IPoIB

    Thanks


Locked