Hi Zdenek,
thank you very much for your prompt answer. I thought of that, but I'd
rather ask before breaking something... I'll will try and let the list
know. I am not very familiar with the code, is there a definition (i.e.
ifdef cygwin) that I can use so I can try to make a patch for future use?

Best regards,

Juan Pablo

Juan Pablo Baserga
Consultor Independiente/Independent Consultant
Mobile/Linux/High Availability/Internet/Business Intelligence
Cel: +54-911-5318-1127
Phone: +54-11-4799-8237
Skype: jbaserga


2015-02-04 8:29 GMT-03:00 Zdenek Styblik <zdenek.styb...@gmail.com>:

> On Tue, Feb 3, 2015 at 11:27 PM, Juan Pablo Baserga <jbase...@gmail.com>
> wrote:
> > Hi,
> > I am trying to compile ipmitool-1.8.15 under Cygwin. If I compile it
> using
> > only the lan driver (./configure --enable-intf-lanplus) everything goes
> > smooth; but if I try to compile the Intel driver (so I can do inband
> > management in Windows) it gives an error.
> >
>
> Hello Juan,
>
> you can try to remove (re)definition of PAGESIZE in imbapi.c at line
> 107, but it's a wild guess to be honest.
> I'm almost sure there are more surprises ahead.
>
> Good luck to you,
> Z.
>
> > I do:
> >
> > ./configure --enable-intf-lanplus --enable-intf-imb
> >
> > configure runs ok
> >
> > make
> >
> > ends with the following errors:
> >
> > make[4]: Entering directory '/cygdrive/c/ipmitool-1.8.15/src/plugins/imb'
> > /bin/sh ../../../libtool --silent  --tag=CC   --mode=compile gcc
> > -DHAVE_CONFIG_H
> > -I. -I../../.. -I../../../include    -g -O2 -fno-strict-aliasing
> > -Wreturn-type
> > -MT imbapi.lo -MD -MP -MF .deps/imbapi.Tpo -c -o imbapi.lo imbapi.c
> > imbapi.c:107:0: warning: "PAGESIZE" redefined
> >  #define PAGESIZE EXEC_PAGESIZE
> >  ^
> > In file included from
> > /usr/lib/gcc/i686-pc-cygwin/4.9.2/include-fixed/limits.h:1
> > 68:0,
> >                  from
> > /usr/lib/gcc/i686-pc-cygwin/4.9.2/include-fixed/syslimits.
> > h:7,
> >                  from
> > /usr/lib/gcc/i686-pc-cygwin/4.9.2/include-fixed/limits.h:3
> > 4,
> >                  from /usr/include/sys/param.h:15,
> >                  from imbapi.c:89:
> > /usr/include/limits.h:211:0: note: this is the location of the previous
> > definiti
> > on
> >  #define PAGESIZE 65536
> >  ^
> > imbapi.c: In function 'MapPhysicalMemory':
> > imbapi.c:107:18: error: 'EXEC_PAGESIZE' undeclared (first use in this
> > function)
> >  #define PAGESIZE EXEC_PAGESIZE
> >                   ^
> > imbapi.c:1999:30: note: in expansion of macro 'PAGESIZE'
> >   diff = (int)startpAddress % PAGESIZE;
> >                               ^
> > imbapi.c:107:18: note: each undeclared identifier is reported only once
> for
> > each
> > function it appears in
> >  #define PAGESIZE EXEC_PAGESIZE
> >                   ^
> > imbapi.c:1999:30: note: in expansion of macro 'PAGESIZE'
> >   diff = (int)startpAddress % PAGESIZE;
> >                               ^
> > imbapi.c: In function 'UnmapPhysicalMemory':
> > imbapi.c:107:18: error: 'EXEC_PAGESIZE' undeclared (first use in this
> > function)
> >  #define PAGESIZE EXEC_PAGESIZE
> >                   ^
> > imbapi.c:2045:44: note: in expansion of macro 'PAGESIZE'
> >   diff =  ((unsigned int) virtualAddress) % PAGESIZE;
> >                                             ^
> > Makefile:417: recipe for target 'imbapi.lo' failed
> > make[4]: *** [imbapi.lo] Error 1
> > make[4]: Leaving directory '/cygdrive/c/ipmitool-1.8.15/src/plugins/imb'
> > Makefile:481: recipe for target 'all-recursive' failed
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory '/cygdrive/c/ipmitool-1.8.15/src/plugins'
> > Makefile:580: recipe for target 'all-recursive' failed
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory '/cygdrive/c/ipmitool-1.8.15/src'
> > Makefile:454: recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory '/cygdrive/c/ipmitool-1.8.15'
> > Makefile:385: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
> > Do I need to use any other switches in configure or lack a Cywin package?
> >
> > Thanks in advance for your help!
> >
> > Best regards,
> >
> > Juan Pablo Baserga
> > Consultor Independiente/Independent Consultant
> > Mobile/Linux/High Availability/Internet/Business Intelligence
> > Cel: +54-911-5318-1127
> > Phone: +54-11-4799-8237
> > Skype: jbaserga
> >
> >
> >
> ------------------------------------------------------------------------------
> > Dive into the World of Parallel Programming. The Go Parallel Website,
> > sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> > hub for all things parallel software development, from weekly thought
> > leadership blogs to news, videos, case studies, tutorials and more. Take
> a
> > look and join the conversation now. http://goparallel.sourceforge.net/
> > _______________________________________________
> > Ipmitool-devel mailing list
> > Ipmitool-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
> >
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to