Thank you very much, thats it just change like you described it and it works !!!
i will now test my other progs and give you feedback when i finished thanks again cheers peter > Just figured out that Solaris uses different values for SOCK_STREAM and > SOCK_DGRAM. > In ssfpc.inc change > SOCK_STREAM=2; > SOCK_DGRAM=1; > > I tested this on solaris 10 x86 and I get output from your test program. > Can you please test this on SPARC? > BTW I got a 120 "protocol not supported" error. > > Ludo > > >> -----Message d'origine----- >> De : Ungarn [mailto:ung...@its-pro.net] >> Envoyé : jeudi 30 juin 2011 13:07 >> À : Ararat Synapse >> Objet : Re: [Synalist] RE : RE : synapse on sparc-solaris >> >> >> >> "Bad file number" >> >> thanks peter >> >> >>> What is the error message? >>> >>> Writeln(http.Sock.LastErrorDesc); >>> >>> Ludo >>> >>> >>> >>>> -----Message d'origine----- >>>> De : Ungarn [mailto:ung...@its-pro.net] >>>> Envoyé : jeudi 30 juin 2011 11:28 >>>> À : Ararat Synapse >>>> Objet : Re: [Synalist] RE : synapse on sparc-solaris >>>> >>>> >>>> >>>> thanks ludo, >>>> >>>> i have copied all values to unxsockh.inc and now i can >>>> >> compile it for >> >>>> solaris but on windows and linux i get an response, >>>> on solaris - nothing >>>> i tried with tcpdump and nothing happens on the net >>>> >>>> thanks peter >>>> >>>> my simple prog: >>>> **** >>>> program test; >>>> >>>> uses >>>> Classes, sysutils, >>>> snmpsend, httpsend; >>>> >>>> var >>>> http : THTTPSend; >>>> lines : TStringList; >>>> >>>> begin >>>> WriteLn( 'Test sparc' ); >>>> >>>> lines := TStringList.Create; >>>> >>>> http := THTTPSend.Create; >>>> http.HTTPMethod( 'GET', 'http://www.gauns.org' ); >>>> WriteLn( HTTP.Headers.Text ); >>>> lines.LoadFromStream( HTTP.Document ); >>>> WriteLn( '*******************' ); >>>> WriteLn( lines.Text ); >>>> end. >>>> **** >>>> >>>> >>>> >>>> >>>>> I haven't used it on Solaris but a quick look at ssfpc.inc >>>>> >>>>> >>>> shows that >>>> >>>> >>>>> solaris/unxsockh.inc is missing the definitions for the >>>>> >>>>> >>>> setsockopt and >>>> >>>> >>>>> getsockopt options. Solaris supports setsockopt and >>>>> >> getsockopt but >> >>>>> AFAIK not all of the options listed in >>>>> >> linux/unxsockh.inc. What you >> >>>>> could do is to copy the missing definitions from >>>>> >> linux/unxsockh.inc >> >>>>> (line 172 and further) into solaris/unxsockh.inc. >>>>> >> Ssfpc.inc is only >> >>>>> mapping the constants to the corresponding constants in >>>>> >> sockets.pp >> >>>>> and, at first sight, the setsockopt and getsockopt options >>>>> >>>>> >>>> mapped are >>>> >>>> >>>>> not used with snmpsend. So if they are not implemented in >>>>> >>>>> >>>> Solaris, it >>>> >>>> >>>>> won't hurt defining them when they are not used. >>>>> >>>>> >>>>> Ludo >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> -----Message d'origine----- >>>>>> De : Ungarn [mailto:ung...@its-pro.net] >>>>>> Envoyé : jeudi 30 juin 2011 01:30 >>>>>> À : Ararat Synapse >>>>>> Objet : [Synalist] synapse on sparc-solaris >>>>>> >>>>>> >>>>>> Hi everybody, >>>>>> >>>>>> did someone used synapse snmpsend on sparc-solaris >>>>>> >>>>>> i get with every version (2.1.1, 2.4.2) following errors >>>>>> >>>>>> ssfpc.inc(157,32) Error: Identifier not found "IP_TOS" >>>>>> ssfpc.inc(158,32) Error: Identifier not found "IP_TTL" >>>>>> ssfpc.inc(159,32) Error: Identifier not found "IP_HDRINCL" >>>>>> ssfpc.inc(160,32) Error: Identifier not found "IP_OPTIONS" >>>>>> ssfpc.inc(162,32) Error: Identifier not found "IP_RECVOPTS" >>>>>> ssfpc.inc(163,32) Error: Identifier not found "IP_RETOPTS" >>>>>> ssfpc.inc(171,32) Error: Identifier not found "IP_MULTICAST_IF" >>>>>> ssfpc.inc(172,32) Error: Identifier not found "IP_MULTICAST_TTL" >>>>>> ssfpc.inc(173,32) Error: Identifier not found "IP_MULTICAST_LOOP" >>>>>> ssfpc.inc(174,32) Error: Identifier not found "IP_ADD_MEMBERSHIP" >>>>>> ssfpc.inc(175,32) Error: Identifier not found >>>>>> >> "IP_DROP_MEMBERSHIP" >> >>>>>> ssfpc.inc(211,35) Error: Identifier not found "IPV6_UNICAST_HOPS" >>>>>> ssfpc.inc(212,35) Error: Identifier not found "IPV6_MULTICAST_IF" >>>>>> ssfpc.inc(213,35) Error: Identifier not found >>>>>> >> "IPV6_MULTICAST_HOPS" >> >>>>>> ssfpc.inc(214,35) Error: Identifier not found >>>>>> >> "IPV6_MULTICAST_LOOP" >> >>>>>> ssfpc.inc(215,35) Error: Identifier not found "IPV6_JOIN_GROUP" >>>>>> ssfpc.inc(216,35) Error: Identifier not found "IPV6_LEAVE_GROUP" >>>>>> >>>>>> i can compile it on solaris box or crosscompile on linux, >>>>>> >>>>>> >>>> same result >>>> >>>> >>>>>> ! on linux and crosscompile windows, there are no problems >>>>>> >>>>>> i can give acces to my solaris-sparc box, if someone will try >>>>>> >>>>>> thanks in advance >>>>>> peter >>>>>> >>>>>> >>>>>> -------------------------------------------------------------- >>>>>> ---------------- >>>>>> All of the data generated in your IT infrastructure is seriously >>>>>> valuable. Why? It contains a definitive record of application >>>>>> performance, security threats, fraudulent activity, and >>>>>> >>>>>> >>>> more. Splunk >>>> >>>> >>>>>> takes this data and makes >>>>>> sense of it. IT sense. And common sense. >>>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>>> _______________________________________________ >>>>>> synalist-public mailing list >>>>>> >> synalist-public@lists.sourceforge.net >> >>>>>> https://lists.sourceforge.net/lists/listinfo/synalist-public >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >> --------------------------------------------------------------------- >> >>>> - >>>> >>>> >>>>> -------- >>>>> All of the data generated in your IT infrastructure is >>>>> >>>>> >>>> seriously valuable. >>>> >>>> >>>>> Why? It contains a definitive record of application >>>>> >>>>> >>>> performance, security >>>> >>>> >>>>> threats, fraudulent activity, and more. Splunk takes this >>>>> >>>>> >>>> data and makes >>>> >>>> >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> synalist-public mailing list synalist-public@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/synalist-public >>>>> >>>>> >>>>> >>>>> >>>> >>>> -------------------------------------------------------------- >>>> ---------------- >>>> All of the data generated in your IT infrastructure is seriously >>>> valuable. Why? It contains a definitive record of application >>>> performance, security threats, fraudulent activity, and >>>> >> more. Splunk >> >>>> takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> synalist-public mailing list synalist-public@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/synalist-public >>>> >>>> >>>> >>> >>> >> ---------------------------------------------------------------------- >> >>> -------- >>> All of the data generated in your IT infrastructure is >>> >> seriously valuable. >> >>> Why? It contains a definitive record of application >>> >> performance, security >> >>> threats, fraudulent activity, and more. Splunk takes this >>> >> data and makes >> >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> synalist-public mailing list >>> synalist-public@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/synalist-public >>> >>> >>> >> >> >> -------------------------------------------------------------- >> ---------------- >> All of the data generated in your IT infrastructure is >> seriously valuable. Why? It contains a definitive record of >> application performance, security >> threats, fraudulent activity, and more. Splunk takes this >> data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> synalist-public mailing list synalist-public@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/synalist-public >> >> > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > synalist-public mailing list > synalist-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/synalist-public > > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public