Re: [Amanda-users] amanda 3.2.1 on Solaris x86 -- open file limit

2011-02-09 Thread Jean-Louis Martineau

Hi Sebastian,

Thanks for that useful information.

The correct fix is probably to also change all u_long variables to u_int32?

Jean-Louis

shesselbarth wrote:

IXDR_GET_U_LONG is defined in /usr/linclude/rpc/xdr.h (on linux)
This file is included from /usr/linclude/rpc/rpc.h which is included in
ndmp-src/ndmp?.h



Hi,

I just stumbled across the same build issues with 64-bit (open)solaris.
After some research on linux and solaris rpc/xdr.h headers I think
IXDR_GET/PUT_U_LONG got removed from solaris 64-bit for whatever
reason (I guess LONG is somehow ambiguous in size while INT32 isn't)

Moreover, I have a warning in my xdr.h from linux:

/* WARNING: The IXDR_*_LONG defines are removed by Sun for new platforms
 * and shouldn't be used any longer. Code which use this defines or longs
 * in the RPC code will not work on 64bit Solaris platforms !
 */

For a first try I replaced all occurrences of GET/PUT_U_LONG with the 
corresponding U_INT32 macro. At least it compiles cleanly now.


I DID NOT ACTUALLY RUN THE COMPILED AMANDA, YET!

Can you please comment on the changes I have made and if they are
reasonable, i.e. don't break cross-platform compatibility.

Regards,
  Sebastian

+--
|This was sent by hesselba...@ims.uni-hannover.de via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--


  




Re: [Amanda-users] amanda 3.2.1 on Solaris x86 -- open file limit

2011-02-09 Thread Brian Cuttler
On Tue, Feb 08, 2011 at 07:55:47PM -0500, shesselbarth wrote:
  IXDR_GET_U_LONG is defined in /usr/linclude/rpc/xdr.h (on linux)
  This file is included from /usr/linclude/rpc/rpc.h which is included in
  ndmp-src/ndmp?.h

I have a successful build on Solaris 10x86 for 64bit-amanda, I
had a secondary issue with the calls to Perl so I'm not running
it (maybe the 64-bit install and then install the 32-bit amanda
perl modules on top of it...).


from my config.log for amanda 3.2.1

$ ./configure --with-user=amanda --with-group=sys
   --with-udpportrange=932,948  --with-tcpportrange=10084,10100
   --with-gnutar=/usr/sfw/bin/gtar --with-gnuplot=/opt/sfw/bin/gnuplot
   --without-libiconv-prefix CC=/opt/SUNWspro/bin/cc
   EGREP=/usr/sfw/bin/gegrep
  CFLAGS=-I/usr/sfw/include -I/opt/csw/include -fast -xtarget=woodcrest-m64
  CPPFLAGS=-D__amd64 -I/usr/sfw/include -I/opt/csw/include
  LDFLAGS=-L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib/amd64
   -R/opt/csw/lib/amd64 -R/usr/lib/amd64 -R/usr/sfw/lib/amd64
--without-ndmp


PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/dt/bin
PATH: /usr/openwin/bin
PATH: /usr/ccs/bin
PATH: /usr/sfw/bin
PATH: /opt/sfw/gcc-3/bin
PATH: /opt/sfw/bin
PATH: /usr/local/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/ucb
PATH: /local/molbio/phylip/i96pc





 Hi,
 
 I just stumbled across the same build issues with 64-bit (open)solaris.
 After some research on linux and solaris rpc/xdr.h headers I think
 IXDR_GET/PUT_U_LONG got removed from solaris 64-bit for whatever
 reason (I guess LONG is somehow ambiguous in size while INT32 isn't)
 
 Moreover, I have a warning in my xdr.h from linux:
 
 /* WARNING: The IXDR_*_LONG defines are removed by Sun for new platforms
  * and shouldn't be used any longer. Code which use this defines or longs
  * in the RPC code will not work on 64bit Solaris platforms !
  */
 
 For a first try I replaced all occurrences of GET/PUT_U_LONG with the 
 corresponding U_INT32 macro. At least it compiles cleanly now.
 
 I DID NOT ACTUALLY RUN THE COMPILED AMANDA, YET!
 
 Can you please comment on the changes I have made and if they are
 reasonable, i.e. don't break cross-platform compatibility.
 
 Regards,
   Sebastian
 
 +--
 |This was sent by hesselba...@ims.uni-hannover.de via Backup Central.
 |Forward SPAM to ab...@backupcentral.com.
 +--
 
 
---
   Brian R Cuttler brian.cutt...@wadsworth.org
   Computer Systems Support(v) 518 486-1697
   Wadsworth Center(f) 518 473-6384
   NYS Department of HealthHelp Desk 518 473-0773



IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential or sensitive information which is, or may be, legally
privileged or otherwise protected by law from further disclosure.  It
is intended only for the addressee.  If you received this in error or
from someone who was not authorized to send it to you, please do not
distribute, copy or use it or any attachments.  Please notify the
sender immediately by reply e-mail and delete this from your
system. Thank you for your cooperation.




[Amanda-users] amanda 3.2.1 on Solaris x86 -- open file limit

2011-02-08 Thread shesselbarth
 IXDR_GET_U_LONG is defined in /usr/linclude/rpc/xdr.h (on linux)
 This file is included from /usr/linclude/rpc/rpc.h which is included in
 ndmp-src/ndmp?.h

Hi,

I just stumbled across the same build issues with 64-bit (open)solaris.
After some research on linux and solaris rpc/xdr.h headers I think
IXDR_GET/PUT_U_LONG got removed from solaris 64-bit for whatever
reason (I guess LONG is somehow ambiguous in size while INT32 isn't)

Moreover, I have a warning in my xdr.h from linux:

/* WARNING: The IXDR_*_LONG defines are removed by Sun for new platforms
 * and shouldn't be used any longer. Code which use this defines or longs
 * in the RPC code will not work on 64bit Solaris platforms !
 */

For a first try I replaced all occurrences of GET/PUT_U_LONG with the 
corresponding U_INT32 macro. At least it compiles cleanly now.

I DID NOT ACTUALLY RUN THE COMPILED AMANDA, YET!

Can you please comment on the changes I have made and if they are
reasonable, i.e. don't break cross-platform compatibility.

Regards,
  Sebastian

+--
|This was sent by hesselba...@ims.uni-hannover.de via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--