
t.d.lee at durham
Mar 13, 2008, 8:43 AM
Views: 1891
Permalink
|
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 [at] lists http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
|