Oct 5, 2009 3:21 PM
FreeBSD source build (not quite) fixed
-
Like (0)
Currently SVN trunk should be building cleanly, at least under FreeBSD 7.2. Please confirm if you get a chance.
$ svn co http://dev.zenoss.org/svn/trunk/inst zenossinst
$ cd zenossinst
$ ./install.sh
I just did a fresh install of Freebsd 7.2. I followed this document (docs/DOC-3514) up through step 7 and then followed your svn and install lines posted here. I get the following error identical to issue 1 in item 9 in the install document.
gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -I../intl -I./libcroco -D_THREAD_SAFE -O3 -fPIC -I/usr/local/zenoss/include -c term-styled-ostream.c -fPIC -DPIC -o .libs/term-styled-ostream.o
In file included from ./libxml/parser.h:797,
from ./libxml/globals.h:19,
from ./libxml/threads.h:36,
from ./libxml/xmlmemory.h:217,
from ./libxml/tree.h:1205,
from ./libcroco/cr-sel-eng.h:34,
from term-styled-ostream.oo.c:26:
./libxml/encoding.h:29:19: error: iconv.h: No such file or directory
In file included from ./libxml/parser.h:797,
from ./libxml/globals.h:19,
from ./libxml/threads.h:36,
from ./libxml/xmlmemory.h:217,
from ./libxml/tree.h:1205,
from ./libcroco/cr-sel-eng.h:34,
from term-styled-ostream.oo.c:26:
./libxml/encoding.h:137: error: expected specifier-qualifier-list before 'iconv_t'
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools/gnulib-lib.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools/gnulib-lib.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17.
gmake: *** [/home/zenoss/zenossinst/build/rrddeps-build] Error 1
unable to build zenoss and prerequisites, see zenbuild.log
I did attempt to fetch the libiconv posted in the previous fix but did not want to edit the rrddeps.sh so that we can fix this if possible.
So I talked with the developer who had worked on the source builds, apparently he had fixed the wmi library build issues and tested them on multiple platforms (including FreeBSD), but not the end-to-end build. So 2 steps forward, 1 step back. I don't have access to a FreeBSD system, but if you have patches you'd like to submit, we'll work to include them for everyone's benefit.
I've also suggested removing the FreeBSD source instructions from the Installation Guide because they seem to be outdated and probably cause more confusion than they're worth. I think sending people to this group and the Porting & Platforms subcommunity is the best solution for keeping source builds working on as many platforms as possible.
Thanks,
Matt Ray
Zenoss Community Manager
here's the error it shows
In file included from ./libxml/parser.h:797,
from ./libxml/globals.h:19,
from ./libxml/threads.h:36,
from ./libxml/xmlmemory.h:217,
from ./libxml/tree.h:1205,
from ./libcroco/cr-sel-eng.h:34,
from term-styled-ostream.oo.c:26:
./libxml/encoding.h:29:19: error: iconv.h: No such file or directory
In file included from ./libxml/parser.h:797,
from ./libxml/globals.h:19,
from ./libxml/threads.h:36,
from ./libxml/xmlmemory.h:217,
from ./libxml/tree.h:1205,
from ./libcroco/cr-sel-eng.h:34,
from term-styled-ostream.oo.c:26:
./libxml/encoding.h:137: error: expected specifier-qualifier-list before 'iconv_t'
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools/gnulib-lib.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools/gnulib-lib.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17/gettext-tools.
*** Error code 1
Stop in /usr/home/zenoss/zenossinst/build/gettext-0.17.
gmake: *** [/home/zenoss/zenossinst/build/rrddeps-build] Error 1
unable to build zenoss and prerequisites, see zenbuild.log
Oh great I also wish to build and install on FreeBSD. Do I take it that this is not currently (2.5.2) supported? Same error regarding missing include file as cruelsymbol reported.
No, it's not fixed. Install/Upgrade Zenoss 2.4.1 on FreeBSD 7.x is as close as there are to instructions for building on FreeBSD. Ideally someone with a FreeBSD background would submit patches for fixing the build, or package it as a proper Port. Right now there is an effort to help make the Zenoss Subversion trunk build more distro-friendly, so if you're so inclined you can help join the effort: Trunk Source Builds. The QA Day passed, but we're still hanging out in #zenoss-testing and working out source build issues.
Thanks,
Matt Ray
Zenoss Community Manager
Okay, thanks for the info (although I don't understand why that document isn't somehow included in the release notes or installation guide).
What was the last known good version for BSD, do you know? I only want to install for evaluation purposes at this point so having the "latest and greatest" isn't necessarily a problem.
The iconv.h and subsequent libiconv errors are fixed with this patch:
http://dev.zenoss.com/trac/attachment/ticket/6828/freebsd-0.diff
I am currently working very hard on making ZenOSS work on FreeBSD, but I am not exactly a build engineer so it is painful going. If anyone has any insight into the current freetype issue displayed in ticket #6828 ( http://dev.zenoss.com/trac/ticket/6828 ) it would be much appreciated if it were passed on.
@Merlin
What version of FreeBSD are you trying to build on? If you haven't taken a look at my blog post about installing Zenoss 2.4.x on FreeBSD 7.x it may answer some of your questions. http://blog.caseyhillman.com/?p=88 there are a few syntax errors in the samples but a few of us have gotten Zenoss running on FreeBSD using the methods I outline. I have been meaning to clean it up and use it to create a FreeBSD port for Zenoss but I have been too busy lately, ill take another look at it this weekend though.
-Casey
I am building on FreeBSD 8.0-p3 (current release). I am currently working with the trunk version of ZenOSS.
I also solved the problem with freetype - it wanted gmake (which your docs reflect, wish I saw them yesterday!). Now I just have to make rrdtool itself build properly (refer to ticket for an update of current status). According to your blog post there was a similar issue, but I don't believe the issue is the same underneath. To whit, your fix is to symlink pkg-config into /usr/local/bin, implying that /usr/local/zenoss/bin is not in the PATH, but for my user, it is already.
At any rate, I've symlinked it as a test and just waiting for the build to get to RRDTool before we see what is up with it. Thanks again.
-- Merlin
No joy with that, as suspected. Going home now, so more tomorrow.
-- Merlin
I am still working on the Port. A few weeks ago I managed to build trunk on FreeBSD 8.0 but I was getting alot of python tracebacks in the Zenoss web UI. I am going to target 2.5.2 then as 3.x matures I will target that.
3.0 should be going to beta in the next week or so. I don't want to dissuade your 2.5.2 work, but 3.0 will be out relatively soon. As soon as there's working documentation for FreeBSD 8.0p3 with either 2.5.2 or 3.0, I'll try to get some more attention for it on the blog.
Thanks,
Matt Ray
Zenoss Community Manager
Glad to hear it's coming along.
If you need someone to help test the port when it is ready, I'm down.
As far as the sourcebuild goes, I basically NEED to get it working because I'm pretty sure this is the best solution for us, so I will be sure to update in here as it goes along.
Thanks for all the help Ray - you guys should be sitting pretty on freebsd soon.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||