Hello Thomas,
Thank you very much for your response. Following your advice, I moved to
net-snmp 5.4.
My machine has AIX 5.1 and I'm using cc (C for AIX Compiler, Version 5) as a
compiler. I just used ./configure without any additional settings. (I
modified configure script to build shared libraries on AIX.)
Do we need to modify libtool in net-snmp src directory? Is your work related
to the following posting? (I found it in net-snmp-users list.)
Again, I will greatly appreciate any feedback.
Thanks,
Sukwoo Kang
Sorry to give you that so late...
I hope this will be readable. All the differences are listed below:
- The symbol '*' delimits the original version of net-snmp
- the symbol '-' delimits the modifications we made to get it work
x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x
*** rs6000.orig/libtool Fri Oct 20 16:48:38 2006
--- rs6000.work/libtool Fri Oct 20 18:25:39 2006
***************
*** 187,189 ****
archive_cmds=""
! archive_expsym_cmds="\$CC \${wl}-bM:SRE -o \$output_objdir/\$soname
\$libobjs \$deplibs \$compiler_flags \${allow_undefined_flag}
\${wl}-bnoentry \${wl}-bexport:\$export_symbols ~\$AR -crlo
\$objdir/\$libname\$release.a \$objdir/\$soname"
postinstall_cmds=""
--- 187,189 ----
archive_cmds=""
! archive_expsym_cmds="\$CC -qmkshrobj -G -o \$output_objdir/\$soname
\$libobjs \$deplibs \$compiler_flags ~ln -s \$soname
\$objdir/\$libname\$release.a"
postinstall_cmds=""
***************
*** 239,241 ****
# This must work even if $libdir does not exist.
! hardcode_libdir_flag_spec="\${wl}-bnolibpath
\${wl}-blibpath:\$libdir:/usr/lib:/lib"
--- 239,241 ----
# This must work even if $libdir does not exist.
! hardcode_libdir_flag_spec="-brtl \${wl}-bnolibpath
\${wl}-blibpath:\$libdir:/usr/lib:/lib"
x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x
Hope this will help you.
Arnaud.
On 5/7/07, Thomas Anders <[EMAIL PROTECTED]> wrote:
Sukwoo Kang wrote:
> We are currently developing net-snmp based subagent on AIX. We tried to
use
> dynamic linking for net-snmp libraries on AIX, but we failed. Our
subagent
> crashes with dynamic libraries as in the following. (I'm using
> net-snmp 5.2on AIX 5.1.) [...]
>
> All that suggested are using static linking on AIX. Other than static
> linking, is there any solution to solve this problem?
It has been a while, but IIRC I *have* been able to build a working
net-snmp 5.4 with dynamic linking on AIX. I think it required a few
ugly hacks, because I fear it isn't particularly well supported by
current stable libtool (1.5.22).
What compiler version, CFLAGS and configure options did you use?
Please note that I'd highly recommend moving to net-snmp 5.4 before
anything else.
+Thomas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders