Installing 5.4.1.2 on HP-UX 11.00 and shared library error

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <OF0069DC56.D9DAE3E7-ONC22574A3.002831CE-C22574A3.003252E5@arenapartners.fi>
Hi,

I'm trying to install net-snmp-5.4.1.2 from source on this environment:

HP-UX pumba B.11.00 U 9000/800 1582706577 unlimited-user license

This is the config summary:
..............................
---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Net-SNMP Version:           5.4.1.2
  Building for:               hpux11
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:     usm
  Agent MIB code:             default_modules =>  snmpv3mibs mibII 
ucd_snmp notification notification-log-mib target agent_mibs agentx 
disman/event disman/schedule utilities host
  Embedded Perl support:      disabled
  SNMP Perl modules:          building -- not embeddable
  SNMP Python modules:        disabled
  Authentication support:     MD5
  Encryption support: 

---------------------------------------------------------
.....................

But in the make phase this error occured:

.......................
checking if g++ PIC flag -fPIC works... yes

Writing Makefile for Bundle::NetSNMP
cp Makefile.subs.pl blib/lib/Bundle/Makefile.subs.pl
cp default_store.pm ../blib/lib/NetSNMP/default_store.pm
AutoSplitting ../blib/lib/NetSNMP/default_store.pm 
(../blib/lib/auto/NetSNMP/default_store)
        /usr/contrib/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp 
-prototypes -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap 
typemap  default_store.xs > default_store.xsc && mv default_store.xsc 
default_store.c
        gcc -c    -I../../include -fPIC -Uhpux11 -Dhpux11=hpux11 
-D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE 
-I/usr/local/lib/perl5/5.8.0/PA-RISC2.0/CORE -I. -I/usr/local/include 
-D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE 
-DVERSION=\"5.04012\"  -DXS_VERSION=\"5.04012\" -fPIC 
"-I/usr/local/lib/perl5/5.8.0/PA-RISC2.0/CORE"   default_store.c
Running Mkbootstrap for NetSNMP::default_store ()
        chmod 644 default_store.bs
        rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.sl
 
LD_RUN_PATH="/usr/net-snmp/net-snmp-5.4.1.2/perl/default_store/../../snmplib/.libs:/lib" 
/usr/bin/ld  -b -L/usr/local/lib -L/opt/local/lib  default_store.o  -o 
.../blib/arch/auto/NetSNMP/default_store/default_store.sl 
-L/usr/net-snmp/net-snmp-5.4.1.2/perl/default_store/../../snmplib/.libs 
-L/usr/net-snmp/net-snmp-5.4.1.2/perl/default_store/../../snmplib 
-L/usr/local/lib -lnetsnmp -lgen -lelf 
/usr/bin/ld: DP relative code in file 
/usr/local/lib/libnetsnmp.a(default_store.o) - shared library must be 
position
    independent.  Use +z or +Z to recompile.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
root@pumba:/usr/net-snmp/net-snmp-5.4.1.2
................

I've tried to find solution to insert the -fPIC flag but no succeed. What 
went wrong?

Best wishes,
jari

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.