This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--===============0619613219==
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C77208.7CE28BB8"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C77208.7CE28BB8
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

You are right,

it is defined in /usr/include/netinet/in.h

=20

The problem was that:

=20

when I execute "make" in /sema/home/palmenti/net-snmp-5.4/snmplib

I have the following error:

=20

gcc -I../include -I. -I../snmplib -g -O2 -Uhpux11 -Dhpux11=3Dhpux11
-D_LABEL_T -c snmp_api.c -fPIC -DPIC -o .libs/snmp_api.o

In file included from snmp_api.c:88:

/usr/include/sys/socket.h:484: parse error before "sendfile"

/usr/include/sys/socket.h:485: parse error before "bsize_t"

/usr/include/sys/socket.h:486: parse error before "sendpath"

/usr/include/sys/socket.h:487: parse error before "bsize_t"

snmp_api.c: In function `snmp_add_var':

snmp_api.c:6928: warning: assignment makes pointer from integer without
a cast

snmp_api.c:6928: warning: assignment makes pointer from integer without
a cast

*** Error exit code 1

=20

To avoid this, I put on gcc line the "-D_XOPEN_SOURCE_EXTENDED=3D1"

And this eliminate the problem, BUT

=20

In /usr/include/netinet/in.h there is:

=20

#ifndef _XOPEN_SOURCE_EXTENDED

/*

* Macros for number representation conversion.

*/

#ifndef ntohl

#define ntohl(x) (x)

#define ntohs(x) (x)

#define htonl(x) (x)

#define htons(x) (x)

#endif

#endif /* ! _XOPEN_SOURCE_EXTENDED */

=20

=20

So, how Can I do?

=20

=20

=20

Nunzio Palmentieri

Web Care Solution

=20

Atos Origin

Via Antiniana 2/a=20

80078 Pozzuoli (NA) - ITALY

=20

=20

=20

Direct +39 081 6103 388

Mobile +39 335 1214 806

Fax +39 081 6103 200

e-mail mailto:nunzio.palmentieri@atosorigin.com

Web www.atosorigin.com

=20

This electronic message contains information from Atos Origin, which =
may
be privileged and confidential. The information is intended to be use =
of
the individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use =
of
the contents of this information is prohibited.

=20

=20

-----Messaggio originale-----
Da: Thomas Anders [mailto:thomas.anders@blue-cable.de]=20
Inviato: gioved=EC 29 marzo 2007 15.17
A: Palmentieri Nunzio
Cc: net-snmp-coders@lists.sourceforge.net
Oggetto: Re: R: netsnmp on HP-UX 11.11

=20

Palmentieri Nunzio wrote:

> /usr/lib/dld.sl: Unresolved symbol: htonl (code) =20


=20

That's likely related to your custom build hacks. htonl() is a macro

defined as

=20

#define htonl(x) (x)

=20

so shouldn't end up as an external symbol at all.

=20

=20

+Thomas

=20

--=20

Thomas Anders (thomas.anders at blue-cable.de)


------_=_NextPart_001_01C77208.7CE28BB8
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

xmlns=3D"urn:schemas-microsoft-comfficeffice" =
xmlns:w=3D"urn:schemas-microsoft-comffice:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">














style=3D'font-size:
10.0pt'>You are right,>>



style=3D'font-size:
10.0pt'>it is defined in =
/usr/include/netinet/in.h>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>The problem was that:>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>when I execute "make" in =
/sema/home/palmenti/net-snmp-5.4/snmplib>>



style=3D'font-size:
10.0pt'>I have the following error:>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:10.0pt;font-style:italic'>gcc -I../include -I. =
-I../snmplib -g
-O2 -Uhpux11 -Dhpux11=3Dhpux11 -D_LABEL_T -c snmp_api.c=A0 -fPIC -DPIC =
-o .libs/snmp_api.o>>



style=3D'font-size:10.0pt;font-style:italic'>In file included from =
snmp_api.c:88:>>



style=3D'font-size:10.0pt;font-style:italic'>/usr/include/sys/socket.h:4=
84: parse
error before "sendfile">>



style=3D'font-size:10.0pt;font-style:italic'>/usr/include/sys/socket.h:4=
85: parse
error before "bsize_t">>



style=3D'font-size:10.0pt;font-style:italic'>/usr/include/sys/socket.h:4=
86: parse
error before "sendpath">>



style=3D'font-size:10.0pt;font-style:italic'>/usr/include/sys/socket.h:4=
87: parse
error before "bsize_t">>



style=3D'font-size:10.0pt;font-style:italic'>snmp_api.c: In function
`snmp_add_var':>>



style=3D'font-size:10.0pt;font-style:italic'>snmp_api.c:6928: warning: =
assignment
makes pointer from integer without a =
cast>>



style=3D'font-size:10.0pt;font-style:italic'>snmp_api.c:6928: warning: =
assignment
makes pointer from integer without a =
cast>>



style=3D'font-size:10.0pt;font-style:italic'>*** Error exit code =
1>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>To avoid this, I put on gcc line the =
"-D_XOPEN_SOURCE_EXTENDED=3D1">>



style=3D'font-size:
10.0pt'>And this eliminate the problem, style=3D'color:red;font-weight:bold'>BUT
>> pan>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>In /usr/include/netinet/in.h there =
is:>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:10.0pt;font-style:italic'>#ifndef =
_XOPEN_SOURCE_EXTENDED>>



style=3D'font-size:10.0pt;font-style:italic'>/*>>=



style=3D'font-size:10.0pt;font-style:italic'>=A0* Macros for number =
representation
conversion.>>



style=3D'font-size:10.0pt;font-style:italic'>=A0*/>> nt>



style=3D'font-size:10.0pt;font-style:italic'>#ifndef =
ntohl>>



style=3D'font-size:10.0pt;font-style:italic'>#define =
ntohl(x)=A0=A0=A0=A0=A0=A0=A0 (x)>>



style=3D'font-size:10.0pt;font-style:italic'>#define =
ntohs(x)=A0=A0=A0=A0=A0=A0=A0 (x)>>



style=3D'font-size:10.0pt;font-style:italic'>#define =
htonl(x)=A0=A0=A0=A0=A0=A0=A0 (x)>>



style=3D'font-size:10.0pt;font-style:italic'>#define =
htons(x)=A0=A0=A0=A0=A0=A0=A0 (x)>>



style=3D'font-size:10.0pt;font-style:italic'>#endif>> ont>



style=3D'font-size:10.0pt;font-style:italic'>#endif=A0 /* ! =
_XOPEN_SOURCE_EXTENDED
*/>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>So, how Can I do?>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>Nunzio Palmentieri>>



style=3D'font-size:
10.0pt'>Web Care Solution>>



style=3D'font-size:
10.0pt'>=A0>>



style=3D'font-size:
10.0pt'>Atos Origin>>



style=3D'font-size:
10.0pt'>Via Antiniana 2/a >>



style=3D'font-size:
10.0pt'>80078 Pozzuoli (NA) - ITALY>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>=A0>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>Direct=A0=A0=A0=A0=A0=A0=A0 +39 081 6103 =
388>>



style=3D'font-size:
10.0pt'>Mobile=A0=A0=A0=A0=A0=A0 +39 335 1214 =
806>>



style=3D'font-size:
10.0pt'>Fax=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0+39 081 6103 =
200>>



style=3D'font-size:
10.0pt'>e-mail=A0=A0=A0=A0=A0=A0=A0 =
mailto:nunzio.palmentieri@atosorigin.com>>



style=3D'font-size:
10.0pt'>Web=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
www.atosorigin.com>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>This electronic message contains information from Atos Origin, =
which
may be privileged and confidential. The information is intended to be =
use of
the individual(s) or entity named above. If you are not the intended =
recipient,
be aware that any disclosure, copying, distribution or use of the =
contents of
this information is prohibited.>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>-----Messaggio originale-----

Da: Thomas Anders [mailto:thomas.anders@blue-cable.de]

Inviato: gioved=EC 29 marzo 2007 15.17

A: Palmentieri Nunzio

Cc: net-snmp-coders@lists.sourceforge.net

Oggetto: Re: R: netsnmp on HP-UX 11.11



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>Palmentieri Nunzio wrote:>>



style=3D'font-size:
10.0pt'>> /usr/lib/dld.sl: Unresolved symbol: htonl (code)=A0 =
>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>That's likely related to your custom build hacks. htonl() is a =
macro>>



style=3D'font-size:
10.0pt'>defined as>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>#define=A0=A0=A0 htonl(x)=A0=A0=A0=A0=A0=A0=A0 =
(x)>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>so shouldn't end up as an external symbol at =
all.>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>+Thomas>>



style=3D'font-size:
10.0pt'>>



style=3D'font-size:
10.0pt'>-- >>



style=3D'font-size:
10.0pt'>Thomas Anders (thomas.anders at =
blue-cable.de)>>









------_=_NextPart_001_01C77208.7CE28BB8--


--===============0619613219==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============0619613219==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0619613219==--