SGI SNMP.xs compile error [was Re: SNMP.xs error?]

This is a discussion on SGI SNMP.xs compile error [was Re: SNMP.xs error?] within the SNMP Coders forums, part of the Networking and Network Related category; Hi Thomas, This issue should be sent to net-snmp-coders@lists.sourceforge.net where others with SGI experience might ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-12-2006
G. S. Marzot
 
Posts: n/a
Default SGI SNMP.xs compile error [was Re: SNMP.xs error?]

Hi Thomas,

This issue should be sent to net-snmp-coders@lists.sourceforge.net where others
with SGI experience might be able to help better...copying response there.

This is a very odd error...somehow newSVuv() looks as if it is returning
something of type 'int'

I don't get any warning about this on any architecture that I have tried...

if I pump out the preprocessed output like this...

gcc -c -g -O2 -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/local/include
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -DVERSION=\"5.4.dev\" -DXS_VERSION=\"5.4.dev\"
-fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -E SNMP.c | less

the relevant line turns into this...still hard to see anything of type 'int'
would come from 'Perl_newSVuv':

Perl_av_push(((PerlInterpreter *)pthread_getspecific((*Perl_Gthr_key_ptr(((void
*)0))))), traplist,Perl_newSVuv(((PerlInterpreter
*)pthread_getspecific((*Perl_Gthr_key_ptr(((void *)0))))), pdu->time));

if you can get this for your compiler and environment it might reveal something...

in perl.h there is something interesting about SGI already having 'sv'
defined...but its fixed my translating 'sv' to 'perl_sv'

/* SGI's <sys/sema.h> has struct sv */
#if defined(UTS) || defined(__sgi)
# define STRUCT_SV perl_sv
#else
# define STRUCT_SV sv
#endif
typedef struct STRUCT_SV SV;


so....not much help...all above with perl 5.8.8 and latest net-snmp perl module
on i386 FC5.

-G

Thomas Anders wrote:
> Joe, Wes,
>
> there's an interesting compile error on IRIX in perl/SNMP/SNMP.c (in
> net-snmp 5.3.x CVS) with the SGI C compiler:
>
> cc-1164 cc: ERROR File = SNMP.xs, Line = 1331
> Argument of type "int" is incompatible with parameter of type "SV *".
>
> av_push(traplist, newSVuv(pdu->time));
>
> Other compilers are obviously only warning about the fact, but are not
> treating it fatal. Still, I'm not familiar enough with the XS code to
> fix it myself. Your feedback is appreciated.
>
>
> +Thomas
>
> PS. Sent from my company address since the Blue-Cable mailservers are
> currently SpamCop-listed. Delisting in progress. I may also not get list
> email due to this, so please forward important -admin messages to my
> company address.
>




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0