Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-06 Thread Mikhail Gusarov
On 06.09.2011 16:56, no-re...@cfengine.com wrote: >> #if defined(__hpux) || defined(_AIX) >> int dirfd(DIR *dirp) >> { >> return dirp->dd_fd != -1 ? dirp->dd_fd : ENOTSUP; >> } >> #endif > > Well, duh...I moved the changes to dirfd.c to the end of the file and now it > compiles and links on HP-UX

CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-06 Thread no-reply
Forum: CFEngine Help Subject: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23367#msg-23367 > On 09/02/2011 06:34 PM, no-re...@cfengine.com > wrote: > So it compiles, but does not link due to missing > d

CFEngine Help: Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-06 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23366#msg-23366 > On 09/02/2011 06:34 PM, no-re...@cfengine.com > wrote: > So it compiles, but does not li

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-02 Thread Mikhail Gusarov
On 09/02/2011 06:34 PM, no-re...@cfengine.com wrote: > CCLD cf-know > cc: warning 983: The -lc library specified on the command line is also added > automatically by the compiler driver. > ld: Unsatisfied symbol "dirfd" in file ./.libs/libpromises.a > This was with -Agcc. So it compiles, bu

CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-02 Thread no-reply
Forum: CFEngine Help Subject: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23317#msg-23317 Could you try to remove GCC_CFLAG="-g -Wreturn-type -Wmissing-prototypes" case "$CFLAGS" in &quo

Re: CFEngine Help: Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-09-02 Thread Mikhail Gusarov
On 08/26/2011 09:03 PM, no-re...@cfengine.com wrote: > I tried the -Agcc compiler option to enable GNU C dialect compatibility and > now the build bombs with ... > Making all in pub >CC getopt.lo > cc: error 1914: bad form for `-W' option -Agcc makes compiler look too much like gcc, so

CFEngine Help: Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-26 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23240#msg-23240 > Please try to compile using gcc. The code in > question uses anonymous > unions, which a

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-26 Thread Mikhail Gusarov
On 26.08.2011 15:14, no-re...@cfengine.com wrote: > Compile of r2997-r2997 fails on HP-UX :-((( Please try to compile using gcc. The code in question uses anonymous unions, which are common extension, but seems to be not in HP-UX compiler. See the INSTALL file for details. -- Mikhail Gusarov

CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-26 Thread no-reply
Forum: CFEngine Help Subject: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23236#msg-23236 Compile of r2997-r2997 fails on HP-UX :-((( . . . "hashes.c", line 351: error #2136: struct "AssocHashTabl

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-25 Thread Mikhail Gusarov
On 25.08.2011 08:47, Erlend Leganger wrote: > That fix is for HP-UX, is the Solaris problem also fixed? Solaris one is in http://source.cfengine.com/browse/core/trunk/configure.ac?r1=2970&r2=2969&pathrev=2970&diff_format=u -- Mikhail Gusarov ___ Help

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-24 Thread Erlend Leganger
On 24 August 2011 21:22, Mikhail Gusarov wrote: > Fix committed to both trunk and 3.2.x branch, please try. That fix is for HP-UX, is the Solaris problem also fixed? - Erlend ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.o

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-24 Thread Mikhail Gusarov
On 22.08.2011 18:00, no-re...@cfengine.com wrote: > Same problem on HPUX. Editing configure and configure.ac as above made no > difference. Fix committed to both trunk and 3.2.x branch, please try. Here's diff for manual application: http://source.cfengine.com/browse/core/trunk/pub/dirfd.c?r1

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-23 Thread Erlend Leganger
On 22 August 2011 16:39, Mikhail Gusarov wrote: > > You might just change the aforementioned file in both configure and > configure.ac, then only ./configure is needed. I changed both files, but it still bombs with the same error. I see others have the same problem and that you are working on a

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Mikhail Gusarov
On 22.08.2011 18:00, no-re...@cfengine.com wrote: > Same problem on HPUX. Editing configure and configure.ac as above made no > difference. Yes, HP-UX is missing dirfd(3) completely. Going to fix it. -- Mikhail Gusarov ___ Help-cfengine mailing list

CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: alevin Link to topic: https://cfengine.com/forum/read.php?3,23163,23169#msg-23169 patched configure.ac and re-run ./configure addressed the same issue on Solaris x86 Thanks --- Alex

CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10 Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,23163,23168#msg-23168 Same problem on HPUX. Editing configure and configure.ac as above made no difference

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Mikhail Gusarov
On 08/22/2011 01:49 PM, Erlend Leganger wrote: > Please try to change the line > >if test x$DIRFD_MACRO_FOUND != x; then > > to > >if test x$DIRFD_MACRO_FOUND = x; then > > in configure.ac , rerun ./autogen.sh and see > whether it works for you.

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Erlend Leganger
On 22 August 2011 13:12, Mikhail Gusarov wrote: > Please try to change the line > > if test x$DIRFD_MACRO_FOUND != x; then > > to > > if test x$DIRFD_MACRO_FOUND = x; then > > in configure.ac, rerun ./autogen.sh and see whether it works for you. > I tried the patch followed by bash autogen.sh

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Mikhail Gusarov
On 08/22/2011 12:56 PM, Erlend Leganger wrote: > Seems as dirfd is referenced, even though configure finds that I don't > have dirfd on my system. Yes, it looks like pub/dirfd.c does not get compiled in due to typo in configure.ac. > checking for dirfd... no > checking for dirfd macro... no bu

Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Erlend Leganger
Seems as dirfd is referenced, even though configure finds that I don't have dirfd on my system. This is on my usual compiling platform - a freshly installed Solaris 10 SPARC box (full Solaris installation) with all pre-reqs added (from Sunfreeware). - Erlend 2011-08-22 10:24:06 6 INFO - cfe-build