Mailing List Archive

heartbeat on solaris 10 (problems)
hi... i trying to compile/install heartbeat 2.1.3 on solaris 10 (x86).. so i
execute the following instruccition:

LDFLAGS="-L/opt/linux-ha/libnet-1.1.2.1/lib"
CPPFLAGS="-I/opt/linux-ha/libnet-1.1.2.1/include" ./ConfigureMe make

but i receive the following error:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-I../../include -I../../include -I../../linux-ha -I../../linux-ha
-I../../libltdl -I../../libltdl
-I/opt/linux-ha/libnet-1.1.2.1/include-I/usr/include/glib-
2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual
-Wcast-align -Wbad-function-cast-Winline -Wmissing-format-attribute
-Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
-Wno-strict-aliasing -ggdb3 -funsigned-char -DALIGNFUNC=T_ALIGN
-DMSGHDR_TYPE=nmsghdr -g -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement
-Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast
-Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -ggdb3
-funsigned-char -MT cl_reboot.lo -MD -MP -MF .deps/cl_reboot.Tpo -c
cl_reboot.c -fPIC -DPIC -o .libs/cl_reboot.o
cl_reboot.c: In function `cl_reboot':
cl_reboot.c:50: error: too few arguments to function `reboot'
gmake[2]: *** [cl_reboot.lo] Error 1
gmake[2]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib/clplumbing'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib'
gmake: *** [all-recursive] Error 1

┬┐how could fix them? :)

--
Salu2 ;)
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Re: heartbeat on solaris 10 (problems) [ In reply to ]
On Thu, 13 Mar 2008, maximatt wrote:

> hi... i trying to compile/install heartbeat 2.1.3 on solaris 10 (x86).. so i
> execute the following instruccition:
>
> LDFLAGS="-L/opt/linux-ha/libnet-1.1.2.1/lib"
> CPPFLAGS="-I/opt/linux-ha/libnet-1.1.2.1/include" ./ConfigureMe make
>
> but i receive the following error:
> [...]
> cl_reboot.c: In function `cl_reboot':
> cl_reboot.c:50: error: too few arguments to function `reboot'
> gmake[2]: *** [cl_reboot.lo] Error 1

This is a known problem, new at version 2.1.3. (It has since been
properly fixed for future releases.)

The "quick fix" is quite straightforward.

Edit the lib/clplumbing/cl_reboot.c" source file; at line 15 change the
line:
#define REBOOT1ARG 1
to read:
#define REBOOT2ARG 1

(that is, the number in that capitalised word from 1 to 2). The rebuild
should then work. (I hope!)

To understand what it does, look near line 50 where it is used to pick up
which form of the "reboot(...)" call to use.

Hope that helps.


--

: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: UNIX Team Leader Durham University :
: South Road :
: http://www.dur.ac.uk/t.d.lee/ Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Re: heartbeat on solaris 10 (problems) [ In reply to ]
hi... these resolves them... thanks!!!! that's right... i look only line 31
and i lost .. but yes.. i undesrtand the logic begind....

but i have another problem.. :)

i install blastware dependences (swig was isn't installed correctly)... and
run the follogin comand:

LDFLAGS="-L/opt/csw/lib/" CPPFLAGS="-I/opt/csw/include" ./ConfigureMe make

but i have these message now:

/bin/bash ../../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2
-Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual
-Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute
-Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
-Wno-strict-aliasing -DST_TEXTDOMAIN='"stonith"' -DSTONITH_MODULES='""'
-DLOCALEDIR='"/usr/share/locale"' -g-O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual
-Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute
-Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
-Wno-strict-aliasing -ggdb3-funsigned-char -L/opt/linux-ha/libnet-
1.1.2.1/lib -o apcmastersnmp.la -rpath
/opt/LXHAhb/lib/stonith/plugins/stonith2 -export-dynamic -module
-avoid-version -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11 -lkstat
-lelf -lm -ldl -lnsl -lsocket -ladm -lcrypto apcmastersnmp.lo -lglib-2.0
-lgnutls -lbz2 -lz -lHBAAPI -lxml2 -lc -luuid -lpam -lrt -ldl -lc -lposix4
-lsocket -lnsl
libtool: link: only absolute run-paths are allowed
gmake[4]: *** [apcmastersnmp.la] Error 1
gmake[4]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib/plugins/stonith'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib/plugins/stonith'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
/lib'
gmake: *** [all-recursive] Error 1


i cant find yet in www how to resolve them..

and these are the package that i install from blastware (someone are
dependences):

# /opt/csw/bin/pkg-get -l
autoconf
berkeleydb44
common
expat
gawk
gdbm
ggettext
gm4
libiconv
libnet
libtool
ncurses
perl
pkg_get
swig

Thanks in advance!!!

2008/3/13, David Lee <t.d.lee@durham.ac.uk>:
>
> On Thu, 13 Mar 2008, maximatt wrote:
>
> > hi... i trying to compile/install heartbeat 2.1.3 on solaris 10 (x86)..
> so i
> > execute the following instruccition:
> >
> > LDFLAGS="-L/opt/linux-ha/libnet-1.1.2.1/lib"
> > CPPFLAGS="-I/opt/linux-ha/libnet-1.1.2.1/include" ./ConfigureMe make
> >
> > but i receive the following error:
>
> > [...]
>
> > cl_reboot.c: In function `cl_reboot':
> > cl_reboot.c:50: error: too few arguments to function `reboot'
> > gmake[2]: *** [cl_reboot.lo] Error 1
>
>
> This is a known problem, new at version 2.1.3. (It has since been
> properly fixed for future releases.)
>
> The "quick fix" is quite straightforward.
>
> Edit the lib/clplumbing/cl_reboot.c" source file; at line 15 change the
> line:
> #define REBOOT1ARG 1
> to read:
> #define REBOOT2ARG 1
>
> (that is, the number in that capitalised word from 1 to 2). The rebuild
> should then work. (I hope!)
>
> To understand what it does, look near line 50 where it is used to pick up
> which form of the "reboot(...)" call to use.
>
> Hope that helps.
>
>
> --
>
> : David Lee I.T. Service :
> : Senior Systems Programmer Computer Centre :
> : UNIX Team Leader Durham University :
> : South Road :
> : http://www.dur.ac.uk/t.d.lee/ Durham DH1 3LE :
> : Phone: +44 191 334 2752 U.K. :
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>



--
Salu2 ;)
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Re: heartbeat on solaris 10 (problems) [ In reply to ]
2008/3/13, maximatt <azamax@gmail.com>:
>
>
> i install blastware dependences (swig was isn't installed correctly)...
> and run the follogin comand:


sorry, but these are not clear... i1m install swig manually and heatbeat
send me warnings about them, so i install blastware's swig; and now i not
have there warnings now (about swig)..

Thansk :)


--
Salu2 ;)
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Re: heartbeat on solaris 10 (problems) [ In reply to ]
i resolve them... i don have SNMP libraries.... ;)

Thanks!!!

2008/3/13, maximatt <azamax@gmail.com>:
>
> hi... these resolves them... thanks!!!! that's right... i look only line
> 31 and i lost .. but yes.. i undesrtand the logic begind....
>
> but i have another problem.. :)
>
> i install blastware dependences (swig was isn't installed correctly)...
> and run the follogin comand:
>
> LDFLAGS="-L/opt/csw/lib/" CPPFLAGS="-I/opt/csw/include" ./ConfigureMe make
>
>
> but i have these message now:
>
> /bin/bash ../../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual
> -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute
> -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
> -Wno-strict-aliasing -DST_TEXTDOMAIN='"stonith"' -DSTONITH_MODULES='""'
> -DLOCALEDIR='"/usr/share/locale"' -g-O2 -Wall
> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual
> -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute
> -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long
> -Wno-strict-aliasing -ggdb3-funsigned-char -L/opt/linux-ha/libnet-
> 1.1.2.1/lib -o apcmastersnmp.la -rpath
> /opt/LXHAhb/lib/stonith/plugins/stonith2 -export-dynamic -module
> -avoid-version -R../lib -L/usr/sfw/lib -lnetsnmp -lgen -lpkcs11 -lkstat
> -lelf -lm -ldl -lnsl -lsocket -ladm -lcrypto apcmastersnmp.lo -lglib-2.0
> -lgnutls -lbz2 -lz -lHBAAPI -lxml2 -lc -luuid -lpam -lrt -ldl -lc -lposix4
> -lsocket -lnsl
> libtool: link: only absolute run-paths are allowed
> gmake[4]: *** [apcmastersnmp.la] Error 1
> gmake[4]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
> /lib/plugins/stonith'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
> /lib/plugins/stonith'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
> /lib/plugins'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/home/paquetes/linuxHA/heartbeat-2.1.3
> /lib'
> gmake: *** [all-recursive] Error 1
>
>
> i cant find yet in www how to resolve them..
>
> and these are the package that i install from blastware (someone are
> dependences):
>
> # /opt/csw/bin/pkg-get -l
> autoconf
> berkeleydb44
> common
> expat
> gawk
> gdbm
> ggettext
> gm4
> libiconv
> libnet
> libtool
> ncurses
> perl
> pkg_get
> swig
>
> Thanks in advance!!!
>
> 2008/3/13, David Lee <t.d.lee@durham.ac.uk>:
> >
> > On Thu, 13 Mar 2008, maximatt wrote:
> >
> > > hi... i trying to compile/install heartbeat 2.1.3 on solaris 10
> > (x86).. so i
> > > execute the following instruccition:
> > >
> > > LDFLAGS="-L/opt/linux-ha/libnet-1.1.2.1/lib"
> > > CPPFLAGS="-I/opt/linux-ha/libnet-1.1.2.1/include" ./ConfigureMe make
> > >
> > > but i receive the following error:
> >
> > > [...]
> >
> > > cl_reboot.c: In function `cl_reboot':
> > > cl_reboot.c:50: error: too few arguments to function `reboot'
> > > gmake[2]: *** [cl_reboot.lo] Error 1
> >
> >
> > This is a known problem, new at version 2.1.3. (It has since been
> > properly fixed for future releases.)
> >
> > The "quick fix" is quite straightforward.
> >
> > Edit the lib/clplumbing/cl_reboot.c" source file; at line 15 change the
> > line:
> > #define REBOOT1ARG 1
> > to read:
> > #define REBOOT2ARG 1
> >
> > (that is, the number in that capitalised word from 1 to 2). The rebuild
> > should then work. (I hope!)
> >
> > To understand what it does, look near line 50 where it is used to pick
> > up
> > which form of the "reboot(...)" call to use.
> >
> > Hope that helps.
> >
> >
> > --
> >
> > : David Lee I.T. Service :
> > : Senior Systems Programmer Computer Centre :
> > : UNIX Team Leader Durham University :
> > : South Road :
> > : http://www.dur.ac.uk/t.d.lee/ Durham DH1 3LE :
> > : Phone: +44 191 334 2752 U.K. :
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
>
>
>
> --
> Salu2 ;)




--
Salu2 ;)
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems