Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

l'agent unix 2.1 compilé sous redhat ne fonctionne pas sur une autre machine linux

Bonjour,

 

J'ai compilé un agent linux avec la procédure standalone.sh sur une machine Redhat. Le binaire est généré et cela fonctionne bien.

[Tue Feb 10 11:32:28 2015][debug] A TAG seems to already exist in the ocsinv.adm file. The -t parameter will be ignored. Don't forget that the TAG value will be ign
ored by the server unless it has OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT=1.
[Tue Feb 10 11:32:28 2015][debug] OCS Agent initialised
[Tue Feb 10 11:32:28 2015][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Tue Feb 10 11:32:28 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Tue Feb 10 11:32:28 2015][debug] Log system initialised (File)
[Tue Feb 10 11:32:28 2015][debug] Calling handlers : `start_handler'
[Tue Feb 10 11:32:28 2015][debug] [download] Calling download_start_handler
[Tue Feb 10 11:32:28 2015][debug]  - LWP loaded
[Tue Feb 10 11:32:28 2015][debug]  - Crypt::SSLeay loaded
[Tue Feb 10 11:32:28 2015][debug] Compress::Zlib is available.
[Tue Feb 10 11:32:28 2015][debug] Calling handlers : `prolog_writer'
 

la conf perl :

# perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

  Platform:
    osname=linux, osvers=2.6.18-348.12.1.el5, archname=x86_64-linux-thread-multi
    uname='linux x86-007.build.bos.redhat.com 2.6.18-348.12.1.el5 #1 smp mon jul 1 17:54:12 edt 2013 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib64/perl5/vendor_perl -Dinc_version_list=5.10.0 -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-3)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE
  Built under linux
  Compiled at Aug  7 2013 06:31:19
  @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .


 ca marche sur  Red Hat Enterprise Linux Server release 6.5 (Santiago)
 

 Je copie l'agent sur une autre machine linux suse 11  SP3 et là j'ai un message du  type

[Mon Feb  9 14:16:26 2015][debug] A TAG seems to already exist in the ocsinv.adm file. The -t parameter will be ignored. Don't forget that the TAG value will be ignored by the server unless it has OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT=1.
[Mon Feb  9 14:16:26 2015][debug] OCS Agent initialised
[Mon Feb  9 14:16:26 2015][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Mon Feb  9 14:16:26 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Mon Feb  9 14:16:26 2015][debug] Log system initialised (File)
[Mon Feb  9 14:16:26 2015][debug] Calling handlers : `start_handler'
[Mon Feb  9 14:16:26 2015][debug] [download] Calling download_start_handler
[Mon Feb  9 14:16:26 2015][debug]  - LWP loaded
[Mon Feb  9 14:16:26 2015][error] [download] Crypt::SSLeay perl module is missing !!
[Mon Feb  9 14:16:26 2015][error] [download] Humm my prerequisites are not OK...disabling module :( :(
 

ca marche pas sur  SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 3
    .


Ca devrait marcher ? Comment etre sur que la compile est bien statique et embarque tout ce qu'il faut ?

in OCS Inventory NG agent for Unix by (200 points)
edited by

1 Answer

0 votes

Sur la Suse (qui ne marche pas) on a :

#ldd /usr/b0_cl_agent_pl/b0_cl_agent_pl/bin/ocsinventory-agent.sles11
        linux-vdso.so.1 =>  (0x00007fff6a037000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9897e6d000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f9897c54000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f9897a50000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f98977d7000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f989759b000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f9897398000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f989717b000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f9896e03000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f98980be000)
# md5sum  ocsinventory-agent.sles11
9b6fb91c4221a99c0502e398a03275e6  ocsinventory-agent.sles11
# ldd --version
ldd (GNU libc) 2.11.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
 

Sur la Redhat qui marche on a :

#ldd ocsinventory-agent.bin
        linux-vdso.so.1 =>  (0x00007ffff55ad000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003ade400000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003adfc00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003adc400000)
        libm.so.6 => /lib64/libm.so.6 (0x0000003add800000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003ade800000)
        libutil.so.1 => /lib64/libutil.so.1 (0x0000003ade000000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003adcc00000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003adc800000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003adc000000)
        libfreebl3.so => /lib64/libfreebl3.so (0x0000003adec00000)  <== EN PLUS !
# md5sum ocsinventory-agent.bin
9b6fb91c4221a99c0502e398a03275e6  ocsinventory-agent.bin
# ldd --version
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
 

by (200 points)
 
Powered by Question2Answer
...