Hi Thomas,

Thanks for your reply. This is what i have got with 5.4.2.rc1:

#  CFLAGS=-fPIC ./configure
# make

I have also tried with this:

# ./configure --with-cflags="-fPIC"
# make

But not succeed in either case.



Writing Makefile for NetSNMP::TrapReceiver
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.0402\"  -DXS_VERSION=\"5.0402\" -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="/u02/net-snmp/net-snmp-5.4.2.rc1/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/u02/net-snmp/net-snmp-5.4.2.rc1/perl/default_store/../../snmplib/.libs 
-L/u02/net-snmp/net-snmp-5.4.2.rc1/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.
[EMAIL PROTECTED]:/u02/net-snmp/net-snmp-5.4.2.rc1


I have also made distclean before any new tried with configure.

Best wishes,
jari




Thomas Anders <[EMAIL PROTECTED]> 
18.08.2008 02:16
Please respond to
[email protected]


To
[EMAIL PROTECTED]
cc
[email protected]
Subject
Re: Installing 5.4.1.2 on HP-UX 11.00 and shared library error






Jari wrote:
>         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

Can you please retry with 5.4.2.rc1 instead and report back?
Please also post you full configure line.


+Thomas

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

Reply via email to