solaris example compilation problem

Ram Krishnaswamy RKrishnaswamy____pathfire.com
Fri Sep 14 15:39:50 CEST 2001


Hello Rohit, Frank,

Rob Adelberg from Arinc suggested that I try replacing -lrt with -lposix4 in
the makefile and it worked. 

Also, the examples had to be compiled with -D_DEBUG switch. This has to do
with line # 73 in snmp++/include/v3.h file. Lines 67 and 68 (debug version)
are different from lines 73 and 74 (release version) and the solaris
compiler complains about line 73. I think this is basically to turn off
debug printing. Am I right frank?

Ram


-----Original Message-----
From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
Sent: Thursday, September 13, 2001 5:19 PM
To: Ram Krishnaswamy
Cc: 'agentpp-dl____fock.de'
Subject: Re: solaris example compilation problem


Hi Ram,

Yes, the real time library I only used for nanosleep. You may replace
the nanosleep method by sleep if you have not librt.a on your system.

Best regards,
Frank

Ram Krishnaswamy wrote:

> I was trying to compile the static_table example on Solaris 5.6 and it
> complains about not finding "-lrt" (probably the real time library) which
is
> part of Makefile.solaris. I was able to compile libdes, snmp++ and agent++
> successfully without any problems. Anyone know what this "rt" library is
> for. I think it probably has the method "nanosleep" that libagent++ uses.
>
> Thanks.
>
> Ram Krishnaswamy
> (ramk at pathfire.com)
> x1671



More information about the AGENTPP mailing list