Re: 5.4 Open Issues

This is a discussion on Re: 5.4 Open Issues within the SNMP Coders forums, part of the Networking and Network Related category; --===============1955816137== Content-Type: multipart/alternative; boundary=Apple-Mail-3--257037218 --Apple-Mail-3--257037218 Content-Transfer-Encoding: 7bit Content-Type: ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-11-2006
chris jalbert
 
Posts: n/a
Default Re: 5.4 Open Issues



--===============1955816137==
Content-Type: multipart/alternative; boundary=Apple-Mail-3--257037218



--Apple-Mail-3--257037218
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

On 10-Oct-2006, at 4:00 PM, Thomas Anders wrote:

> Dave Shield wrote:
>> On 10/10/06, Thomas Anders <thomas.anders@blue-cable.de> wrote:
>>>> 1) OpenBSD4 headers

>>
>>> Huh? We neither have openbsd3.h nor openbsd4.h, but just openbsd.h.

>>
>> OK - in that case, I don't understand the comment
>> "openbsd4 uses openbsd.h, and thus a lot of openbsd3 code
>> that most likely works on openbsd4 is excluded"
>>
>> I'd assumed this was referring to a file openbsd3.h. Clearly not.
>> Can someone please clarify the precise issue here.

>
> Robert has logged this issue, not me, but anyway: On OpenBSD 3.x
> configure adds
> a "-Dopenbsd3=openbsd3" while on OpenBSD 4.x it adds "-
> Dopenbsd4=openbsd4", of
> course. Our code only has #ifdefs for openbsd3 (and/or earlier). We
> either need
> to adjust the code to add "|| defined(openbsd4)" or add something
> like the
> following to openbsd.h:
>
> #ifdef openbsd4
> #undef openbsd3
> #define openbsd3 openbsd3
> #endif
>
> The latter is only appropriate if "openbsd3" is to be understood as
> "3.x or
> later" (like we do for freebsd).
>
> Whatever we chose will need to be done again when OpenBSD 5.x comes
> out.


Here is what I do for Darwin / OS X. I'm trying to build on Tiger
(10.4 / Darwin 8) and Leopard (10.5 / Darwin 9) and am ignoring
Panther (10.3 / Darwin 7) because the latter has very different APIs
(thank a lot to the Intel transition).

Configure defines the OS release, i.e. darwin8 or darwin9. In the
respective header file (I created one for each) I also define darwin
and set it to the release number, e.g. "#define darwin 8" on Tiger,
which allows me to write "#if (darwin >= 8)" for tests. Sounds like
BSD could use a similar mechanism...

And yes, I'll post these patches shortly; I haven't yet because I was
still fighting with some of the build issues and I have to break them
up.

>>>> 8) "as-needed" linking
>>> OSX is the only one that fails during "make".

>>
>> That's the "library layering" bug report, I presume? (Which I
>> responded to earlier today)
>> Naive question - does static vs dynamic linking make any
>> difference here?
>> Requiring static linking obviously isn't ideal, but would be a
>> workable stop-gap.

>
> OSX testers, please.


I just responded to your comment: from what I've seen, it doesn't
work, but I will try your suggestion and rework the makefile.

>>> On
>>> the other (older) systems
>>> problems probably only happen when doing "make install DESTDIR=/
>>> some/where/else".

>>
>> Which is a relatively unusual invocation.
>> Yes - it needs to be fixed properly, but doesn't feel to be a show-
>> stopper.

>
> ACK.


OS X builds this way (i.e., with DESTDIR), and it mostly works. If
someone has specific components that don't work properly, let me
know; the fixes are certainly easier than the issues I'm having with
Perl.

>>>> 9) OS X embedded perl

>>
>>> Shall we hold off enabling embedded perl by default on OSX?

>>
>> If it doesn't work, then yes! :-)

>
> We need to find out whether it's broken on OSX for most-if-not-all
> or just this
> single person/setup. OSX testers, please! (Didn't I just say that?)


I have to admit I haven't tried the embedded Perl because of the
existing warnings and because of my blocker issues with the Perl
modules. I can try enabling it once I get the Perl modules building.

--chris
net-snmp-owners at group.apple.com




--Apple-Mail-3--257037218
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><DIV><DIV>On 10-Oct-2006, at =
4:00 PM, Thomas Anders wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Dave Shield wrote:</DIV> <BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">On 10/10/06, Thomas Anders =
&lt;<A =
href=3D"mailto:thomas.anders@blue-cable.de">thomas.anders@blue-cable.de</A=
>&gt; wrote:</DIV> <BLOCKQUOTE type=3D"cite"><BLOCKQUOTE =

type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">1) OpenBSD4 headers</DIV> =
</BLOCKQUOTE></BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV> <BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Huh? We =
neither have openbsd3.h nor openbsd4.h, but just openbsd.h.</DIV> =
</BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">OK - in that case, I don't understand the =
comment</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><SPAN =
class=3D"Apple-converted-space">=A0=A0 </SPAN>"openbsd4 uses openbsd.h, =
and thus a lot of openbsd3 code</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN =
class=3D"Apple-converted-space">=A0 =A0 </SPAN>that most likely works on =
openbsd4 is excluded"</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">I'd assumed this was referring =
to a file openbsd3.h.<SPAN class=3D"Apple-converted-space">=A0 =
</SPAN>Clearly not.</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">Can someone please clarify =
the precise issue here.</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Robert has =
logged this issue, not me, but anyway: On OpenBSD 3.x configure =
adds</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">a "-Dopenbsd3=3Dopenbsd3" while =
on OpenBSD 4.x it adds "-Dopenbsd4=3Dopenbsd4", of</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">course. Our code only has #ifdefs for openbsd3 =
(and/or earlier). We either need</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to adjust the =
code to add "|| defined(openbsd4)" or add something like the</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">following to openbsd.h:</DIV><DIV style=3D"margin-top:=
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#ifdef =
openbsd4</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">#undef openbsd3</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">#define openbsd3 openbsd3</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">#endif</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">The latter is only appropriate =
if "openbsd3" is to be understood as "3.x or</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">later" (like we do for freebsd).</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Whatever =
we chose will need to be done again when OpenBSD 5.x comes =
out.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Here is what I do for =
Darwin / OS X. I'm trying to build on Tiger (10.4 / Darwin 8) and =
Leopard (10.5 / Darwin 9) and am ignoring Panther (10.3 / Darwin 7) =
because the latter has very different APIs (thank a lot to the Intel =
transition).</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Configure defines the OS =
release, i.e. darwin8 or darwin9. In the respective header file (I =
created one for each) I also define darwin and set it to the release =
number, e.g. "#define darwin 8" on Tiger, which allows me to write "#if =
(darwin &gt;=3D 8)" for tests. Sounds like BSD could use a similar =
mechanism...</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>And yes, I'll post these =
patches shortly; I haven't yet because I was still fighting with some of =
the build issues and I have to break them up.</DIV><BR><BLOCKQUOTE =
type=3D"cite"> <BLOCKQUOTE type=3D"cite"><BLOCKQUOTE =
type=3D"cite"><BLOCKQUOTE =
type=3D"cite"></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><BLOCKQUOTE =
type=3D"cite"><BLOCKQUOTE type=3D"cite"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">8)<SPAN class=3D"Apple-converted-space">=A0 =
</SPAN>"as-needed" linking</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OSX is =
the only one that fails during "make".</DIV> </BLOCKQUOTE><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">That's =
the "library layering" bug report, I presume? <SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>(Which I</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">responded to earlier today)</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Naive question - does static vs dynamic linking make =
any difference here?</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">Requiring static linking =
obviously isn't ideal, but would be a</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">workable =
stop-gap.</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">OSX testers, =
please.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I just responded to your =
comment: from what I've seen, it doesn't work, but I will try your =
suggestion and rework the makefile.</DIV><BR><BLOCKQUOTE type=3D"cite"> =
<BLOCKQUOTE type=3D"cite"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><SPAN class=3D"Apple-converted-space">=A0=A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 </SPAN>On the other (older) =
systems</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">problems probably only happen =
when doing "make install DESTDIR=3D/some/where/else".</DIV> =
</BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Which is a relatively unusual invocation.</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Yes - it needs to be fixed properly, but doesn't =
feel to be a show-stopper.</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">ACK.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>OS X builds this way (i.e., =
with DESTDIR), and it mostly works. If someone has specific components =
that don't work properly, let me know; the fixes are certainly easier =
than the issues I'm having with Perl.</DIV><BR><BLOCKQUOTE type=3D"cite"> =
<BLOCKQUOTE type=3D"cite"><BLOCKQUOTE type=3D"cite"><BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">9)<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>OS X embedded perl</DIV> =
</BLOCKQUOTE></BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV> <BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Shall we hold =
off enabling embedded perl by default on OSX?</DIV> </BLOCKQUOTE><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If it =
doesn't work, then yes! :-)</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">We need to =
find out whether it's broken on OSX for most-if-not-all or just =
this</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">single person/setup. OSX =
testers, please! (Didn't I just say that?)</DIV> =
</BLOCKQUOTE><BR></DIV><DIV>I have to admit I haven't tried the embedded =
Perl because of the existing warnings and because of my blocker issues =
with the Perl modules. I can try enabling it once I get the Perl modules =
building.</DIV><BR><DIV> <SPAN class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Times; font-size: 13px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; =
"><DIV>--chris</DIV><DIV>net-snmp-owners at =
group.apple.com</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><BR =
class=3D"Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>=

--Apple-Mail-3--257037218--


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

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

--===============1955816137==--

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 12:53 AM.


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