SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
amanda 3.2.1 on Solaris x86 -- open file limit
Author Message
Post amanda 3.2.1 on Solaris x86 -- open file limit 
Jean-Louis,

I think the Solaris 10x86 build does in fact create a 32-bit binary.

[finsen]: /usr/local/libexec/amanda > file amandad
amandad: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped

If I'm understanding the docs below correctly this means that
we need to build the binaries differently in order to make
more than 256 file descriptors available. A build issue rather
than an OS issue.

What do you think ?

thank you,

Brian


On Tue, Jan 11, 2011 at 03:25:37PM -0500, Brian Cuttler wrote:

Jean-Louis,

I've been receiving this error on my Solaris 10 system
running amanda 2.6.x.

Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service selfcheck: selfcheck: lerror [open pipe to /usr/local/libexec/amanda/application/amzfs-snapshot: Too many open files]
ERROR: finsen: service /usr/local/libexec/amanda/selfcheck failed: pid 29042 exited with code 1
Client check: 1 host checked in 97.039 seconds. 2 problems found.


I have tried to use /etc/project to set non-default values for
the file descriptor resource but with no luck.

I will try to set a value in /etc/system and we will reboot
the server so the new value becomes active.

But researching the issue we found the following that I thought
you might be interested in.

http://docs.sun.com/app/docs/doc/817-0404/chapter2-31?l=en&n=1&a=view

When the maximum number of open files for a process is not enough.
Other limitations in system facilities can mean that a larger number
of file descriptors is not as useful as it might be. For example:

* A 32-bit program using standard I/O is limited to 256 file
descriptors. A 64-bit program using standard I/O can use up
to 2 billion descriptors. Specifically, standard I/O refers
to the stdio(3C) functions in libc(3LIB).

* select is by default limited to 1024 descriptors per fd_set.
For more information, see select(3C). Starting with the Solaris 7
release, 32-bit application code can be recompiled with a larger
fd_set size (less than or equal to 65,536). A 64-bit application
uses an fd_set size of 65,536, which cannot be changed.

Also URL
http://docs.sun.com/app/docs/doc/817-0404/chapter2-32?l=en&a=view

accordingly I will set the value of rlim_fd_cur in our /etc/system file.

thank you,

Brian

---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.


---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
Brian Cuttler wrote:
Jean-Louis,

I think the Solaris 10x86 build does in fact create a 32-bit binary.

x86 is 32 bits.
[finsen]: /usr/local/libexec/amanda > file amandad
amandad: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped

If I'm understanding the docs below correctly this means that
we need to build the binaries differently in order to make
more than 256 file descriptors available. A build issue rather
than an OS issue.

What do you think ?

Maybe, you should try it.

Jean-Louis

Post amanda 3.2.1 on Solaris x86 -- open file limit 
Much to my surprise

[curie]: /tmp/am-inst/amanda-3.1.2-64bit > file ./amandad-src/.libs/amandad
./amandad-src/.libs/amandad: ELF 64-bit LSB executable AMD64 Version 1 [SSE FXSR FPU], dynamically linked, not stripped


I did make the one change to the configure input.
gmake clean; gmake

I will install the new kit on the client that was giving me problems.


On Wed, Jan 12, 2011 at 11:41:15AM -0500, Brian Cuttler wrote:

Jean-Louis,

I haven't built anything myself in years, looking at the
config.log and the results of invoking the computer itself
with -flags and checking the man page it looks as simple as
adding "-m64" to my CFLAGS argument when I invoke ./configure.

I'm guessing its not quite that simple though.

I'm happy to build and test but I could use some guidance on
how to build it.

thanks,

Brian

On Wed, Jan 12, 2011 at 11:13:21AM -0500, Jean-Louis Martineau wrote:
Brian Cuttler wrote:
Jean-Louis,

I think the Solaris 10x86 build does in fact create a 32-bit binary.

x86 is 32 bits.
[finsen]: /usr/local/libexec/amanda > file amandad
amandad: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped

If I'm understanding the docs below correctly this means that
we need to build the binaries differently in order to make
more than 256 file descriptors available. A build issue rather
than an OS issue.

What do you think ?

Maybe, you should try it.

Jean-Louis
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.


---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
On Wed, Jan 12, 2011 at 02:03:52PM -0500, Brian Cuttler wrote:

Much to my surprise

[curie]: /tmp/am-inst/amanda-3.1.2-64bit > file ./amandad-src/.libs/amandad
./amandad-src/.libs/amandad: ELF 64-bit LSB executable AMD64 Version 1 [SSE FXSR FPU], dynamically linked, not stripped

Yes - this is from the 3.1.2 sources.

I'd had problems with the 3.2.0 under Solaris 10x86 (but not under Sparc)
and did not stop to download a newer source package.

One variable at a time, that is what makes it science.



I did make the one change to the configure input.
gmake clean; gmake

I will install the new kit on the client that was giving me problems.


On Wed, Jan 12, 2011 at 11:41:15AM -0500, Brian Cuttler wrote:

Jean-Louis,

I haven't built anything myself in years, looking at the
config.log and the results of invoking the computer itself
with -flags and checking the man page it looks as simple as
adding "-m64" to my CFLAGS argument when I invoke ./configure.

I'm guessing its not quite that simple though.

I'm happy to build and test but I could use some guidance on
how to build it.

thanks,

Brian

On Wed, Jan 12, 2011 at 11:13:21AM -0500, Jean-Louis Martineau wrote:
Brian Cuttler wrote:
Jean-Louis,

I think the Solaris 10x86 build does in fact create a 32-bit binary.

x86 is 32 bits.
[finsen]: /usr/local/libexec/amanda > file amandad
amandad: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped

If I'm understanding the docs below correctly this means that
we need to build the binaries differently in order to make
more than 256 file descriptors available. A build issue rather
than an OS issue.

What do you think ?

Maybe, you should try it.

Jean-Louis
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.


---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.


---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
Jean-Louis,

Installation on the target didn't complete smoothly, received
the following errors.

I can send the complete log...

attaching full # gmake install output.

[finsen]: /tmp/am-inst/amanda-3.1.2-64bit > gmake install > /tmp/gmake-install.errors
libtool: install: warning: relinking `libamar.la'
libtool: install: warning: relinking `libamandad.la'
libtool: install: warning: relinking `libamxfer.la'
Undefined first referenced
symbol in file
IXDR_GET_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob
gmake[3]: *** [amndmjob] Error 1
gmake[2]: *** [install] Error 2
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2



This is what the server things of the new client.

I'm not sure on where to go from here and will need
assistance in order to try to fix the problem.


amcheck -c curie finsen

Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service noop: ld.so.1: noop: fatal: /usr/local/lib/amanda/libamandad-3.1.2.so: wrong ELF class: ELFCLASS64
ERROR: finsen: service /usr/local/libexec/amanda/noop failed: pid 17663 exited with signal 9
Client check: 1 host checked in 0.442 seconds. 2 problems found.

(brought to you by Amanda 3.1.2)


thank you,

Brian
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
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 don't know what's wrong with the solaris include.

Reconfigure with '--without-ndmp' to disable the compilation of the ndmp-src directory.

Jean-Louis

Brian Cuttler wrote:
Jean-Louis,

Installation on the target didn't complete smoothly, received
the following errors.

I can send the complete log...

attaching full # gmake install output.

[finsen]: /tmp/am-inst/amanda-3.1.2-64bit > gmake install > /tmp/gmake-install.errors
libtool: install: warning: relinking `libamar.la'
libtool: install: warning: relinking `libamandad.la'
libtool: install: warning: relinking `libamxfer.la'
Undefined first referenced
symbol in file
IXDR_GET_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob
gmake[3]: *** [amndmjob] Error 1
gmake[2]: *** [install] Error 2
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2



This is what the server things of the new client.

I'm not sure on where to go from here and will need
assistance in order to try to fix the problem.



amcheck -c curie finsen


Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service noop: ld.so.1: noop: fatal: /usr/local/lib/amanda/libamandad-3.1.2.so: wrong ELF class: ELFCLASS64
ERROR: finsen: service /usr/local/libexec/amanda/noop failed: pid 17663 exited with signal 9
Client check: 1 host checked in 0.442 seconds. 2 problems found.

(brought to you by Amanda 3.1.2)


thank you,

Brian
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.




Post amanda 3.2.1 on Solaris x86 -- open file limit 
Thanks, will try that, also looking into whether or not
we failed to install 64bit libraries...


On Wed, Jan 12, 2011 at 03:16:37PM -0500, Jean-Louis Martineau 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 don't know what's wrong with the solaris include.

Reconfigure with '--without-ndmp' to disable the compilation of the
ndmp-src directory.

Jean-Louis

Brian Cuttler wrote:
Jean-Louis,

Installation on the target didn't complete smoothly, received
the following errors.

I can send the complete log...

attaching full # gmake install output.

[finsen]: /tmp/am-inst/amanda-3.1.2-64bit > gmake install >
/tmp/gmake-install.errors
libtool: install: warning: relinking `libamar.la'
libtool: install: warning: relinking `libamandad.la'
libtool: install: warning: relinking `libamxfer.la'
Undefined first referenced
symbol in file
IXDR_GET_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob
gmake[3]: *** [amndmjob] Error 1
gmake[2]: *** [install] Error 2
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2



This is what the server things of the new client.

I'm not sure on where to go from here and will need
assistance in order to try to fix the problem.



amcheck -c curie finsen


Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service noop: ld.so.1: noop: fatal:
/usr/local/lib/amanda/libamandad-3.1.2.so: wrong ELF class: ELFCLASS64
ERROR: finsen: service /usr/local/libexec/amanda/noop failed: pid 17663
exited with signal 9
Client check: 1 host checked in 0.442 seconds. 2 problems found.

(brought to you by Amanda 3.1.2)


thank you,

Brian
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.




---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
Jean-Louis,

I've installed 64 bit libraries and altered the .configure
accordingly. Ok, the libraries have been included in the
build, I should have but have not dropped the 32-bit libraries.


[curie]: /tmp/am-inst/amanda-3.1.2-64bit > ./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
--without-libintl-prefix CC=/opt/SUNWspro/bin/cc
EGREP=/usr/sfw/bin/gegrep
CFLAGS="-I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64"
CPPFLAGS="-I/usr/sfw/include -I/opt/sfw/include"
LDFLAGS="-L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib
-R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64"

We see this error several times around libgcrypt.so
We did not see this with the default 32-bit build.

ld: warning: file /opt/csw/lib/64/libgcrypt.so: linked to /opt/csw/lib/amd64/libgcrypt.so: attempted multiple inclusion of file

Please let me know if I can include more detail.

thank you,

Brian

gmake all-am
gmake[3]: Entering directory `/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src'
/bin/bash ../libtool --tag=CC --mode=link /opt/SUNWspro/bin/cc -DNDMOS_CONST_NDMJOBLIB_REVISION='"amanda-3.1.2"' -I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib -R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64 -o amndmjob amndmjob_main.o ndmjob_args.o ndmjob_job.o ndmjob_rules.o ndmjob_main_util.o amndma_tape_simulator.o libndmjob.la ../common-src/libamanda.la -lm -mt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lcrypto -L/opt/sfw/lib -lcurl -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz
libtool: link: /opt/SUNWspro/bin/cc -DNDMOS_CONST_NDMJOBLIB_REVISION=\"amanda-3.1.2\" -I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o .libs/amndmjob amndmjob_main.o ndmjob_args.o ndmjob_job.o ndmjob_rules.o ndmjob_main_util.o amndma_tape_simulator.o -mt -L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib ./.libs/libndmjob.so -L/opt/csw/lib/64 -L/usr/openwin/lib/64 -L/opt/csw/lib/bdb47 -L/opt/csw/lib -Lopt/csw/postgresql83/lib/amd64 /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so ../common-src/.libs/libamanda.so -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 /opt/csw/lib/64/libcurl.so /opt/csw/lib/amd64/libidn.so /opt/csw/lib/amd64/libssh2.so /opt/csw/lib/amd64/libgcrypt.so /opt/csw/lib/64/libgcrypt.so /opt/csw/lib/amd64/libgpg-error.so /opt/csw/lib/amd64/libldap.so /opt/csw/lib/amd64/liblber.so -lgen /opt/csw/lib/amd64/libsasl2.so -lsunmath -lm -lpthread /opt/csw/lib/amd64/libint!
l.so -lsec /opt/csw/lib/amd64/libiconv.so -lc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lssl -lcrypto -lsocket -lnsl -ldl -lz -mt -R/usr/local/lib/amanda -R/opt/csw/lib -R/opt/csw/lib/64 -R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64
ld: warning: file /opt/csw/lib/64/libgcrypt.so: linked to /opt/csw/lib/amd64/libgcrypt.so: attempted multiple inclusion of file
Undefined first referenced
symbol in file
IXDR_GET_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob




On Wed, Jan 12, 2011 at 03:16:37PM -0500, Jean-Louis Martineau 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 don't know what's wrong with the solaris include.

Reconfigure with '--without-ndmp' to disable the compilation of the
ndmp-src directory.

Jean-Louis

Brian Cuttler wrote:
Jean-Louis,

Installation on the target didn't complete smoothly, received
the following errors.

I can send the complete log...

attaching full # gmake install output.

[finsen]: /tmp/am-inst/amanda-3.1.2-64bit > gmake install >
/tmp/gmake-install.errors
libtool: install: warning: relinking `libamar.la'
libtool: install: warning: relinking `libamandad.la'
libtool: install: warning: relinking `libamxfer.la'
Undefined first referenced
symbol in file
IXDR_GET_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob
gmake[3]: *** [amndmjob] Error 1
gmake[2]: *** [install] Error 2
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2



This is what the server things of the new client.

I'm not sure on where to go from here and will need
assistance in order to try to fix the problem.



amcheck -c curie finsen


Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service noop: ld.so.1: noop: fatal:
/usr/local/lib/amanda/libamandad-3.1.2.so: wrong ELF class: ELFCLASS64
ERROR: finsen: service /usr/local/libexec/amanda/noop failed: pid 17663
exited with signal 9
Client check: 1 host checked in 0.442 seconds. 2 problems found.

(brought to you by Amanda 3.1.2)


thank you,

Brian
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.




---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.

Post amanda 3.2.1 on Solaris x86 -- open file limit 
Brian Cuttler wrote:
Jean-Louis,

I've installed 64 bit libraries and altered the .configure
accordingly. Ok, the libraries have been included in the
build, I should have but have not dropped the 32-bit libraries.


[curie]: /tmp/am-inst/amanda-3.1.2-64bit > ./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
--without-libintl-prefix CC=/opt/SUNWspro/bin/cc
EGREP=/usr/sfw/bin/gegrep
CFLAGS="-I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64"
CPPFLAGS="-I/usr/sfw/include -I/opt/sfw/include"
LDFLAGS="-L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib
-R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64"

We see this error several times around libgcrypt.so
We did not see this with the default 32-bit build.

ld: warning: file /opt/csw/lib/64/libgcrypt.so: linked to /opt/csw/lib/amd64/libgcrypt.so: attempted multiple inclusion of file

This is not important,

I don't know on which header file IXDR_GET_U_LONG is defined on solaris,
you can try to find it and add an include for it.
Or as I said, you can configure with '--without-ndmp'.

Jean-Louis
Please let me know if I can include more detail.

thank you,

Brian

gmake all-am
gmake[3]: Entering directory `/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src'
/bin/bash ../libtool --tag=CC --mode=link /opt/SUNWspro/bin/cc -DNDMOS_CONST_NDMJOBLIB_REVISION='"amanda-3.1.2"' -I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib -R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64 -o amndmjob amndmjob_main.o ndmjob_args.o ndmjob_job.o ndmjob_rules.o ndmjob_main_util.o amndma_tape_simulator.o libndmjob.la ../common-src/libamanda.la -lm -mt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lcrypto -L/opt/sfw/lib -lcurl -L/usr/sfw/lib -lssl -lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz
libtool: link: /opt/SUNWspro/bin/cc -DNDMOS_CONST_NDMJOBLIB_REVISION=\"amanda-3.1.2\" -I/usr/sfw/include -I/opt/sfw/include -I/usr/local/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o .libs/amndmjob amndmjob_main.o ndmjob_args.o ndmjob_job.o ndmjob_rules.o ndmjob_main_util.o amndma_tape_simulator.o -mt -L/opt/csw/lib/amd64 -L/usr/lib/amd64 -L/usr/sfw/lib -L/opt/sfw/lib ./.libs/libndmjob.so -L/opt/csw/lib/64 -L/usr/openwin/lib/64 -L/opt/csw/lib/bdb47 -L/opt/csw/lib -Lopt/csw/postgresql83/lib/amd64 /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so ../common-src/.libs/libamanda.so -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 /opt/csw/lib/64/libcurl.so /opt/csw/lib/amd64/libidn.so /opt/csw/lib/amd64/libssh2.so /opt/csw/lib/amd64/libgcrypt.so /opt/csw/lib/64/libgcrypt.so /opt/csw/lib/amd64/libgpg-error.so /opt/csw/lib/amd64/libldap.so /opt/csw/lib/amd64/liblber.so -lgen /opt/csw/lib/amd64/libsasl2.so -lsunmath -lm -lpthread /opt/csw/lib/amd64/libi!
ntl.so -lsec /opt/csw/lib/amd64/libiconv.so -lc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lssl -lcrypto -lsocket -lnsl -ldl -lz -mt -R/usr/local/lib/amanda -R/opt/csw/lib -R/opt/csw/lib/64 -R/opt/csw/lib/amd64 -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/lib/amd64
ld: warning: file /opt/csw/lib/64/libgcrypt.so: linked to /opt/csw/lib/amd64/libgcrypt.so: attempted multiple inclusion of file
Undefined first referenced
symbol in file
IXDR_GET_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG /tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob




On Wed, Jan 12, 2011 at 03:16:37PM -0500, Jean-Louis Martineau 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 don't know what's wrong with the solaris include.

Reconfigure with '--without-ndmp' to disable the compilation of the
ndmp-src directory.

Jean-Louis

Brian Cuttler wrote:

Jean-Louis,

Installation on the target didn't complete smoothly, received
the following errors.

I can send the complete log...

attaching full # gmake install output.

[finsen]: /tmp/am-inst/amanda-3.1.2-64bit > gmake install >
/tmp/gmake-install.errors
libtool: install: warning: relinking `libamar.la'
libtool: install: warning: relinking `libamandad.la'
libtool: install: warning: relinking `libamxfer.la'
Undefined first referenced
symbol in file
IXDR_GET_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
IXDR_PUT_U_LONG
/tmp/am-inst/amanda-3.1.2-64bit/ndmp-src/.libs/libndmlib.so
ld: fatal: Symbol referencing errors. No output written to .libs/amndmjob
gmake[3]: *** [amndmjob] Error 1
gmake[2]: *** [install] Error 2
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2



This is what the server things of the new client.

I'm not sure on where to go from here and will need
assistance in order to try to fix the problem.




amcheck -c curie finsen


Amanda Backup Client Hosts Check
--------------------------------
ERROR: finsen: service noop: ld.so.1: noop: fatal:
/usr/local/lib/amanda/libamandad-3.1.2.so: wrong ELF class: ELFCLASS64
ERROR: finsen: service /usr/local/libexec/amanda/noop failed: pid 17663
exited with signal 9
Client check: 1 host checked in 0.442 seconds. 2 problems found.

(brought to you by Amanda 3.1.2)


thank you,

Brian
---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.




---
Brian R Cuttler brian.cuttler < at > wadsworth.org
Computer Systems Support (v) 518 486-1697
Wadsworth Center (f) 518 473-6384
NYS Department of Health Help 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.




Post  
> 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

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB