OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » networking » discuss

Thread: udp_impl.h missing on b27

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 8 - Last Post: Jan 9, 2006 10:56 AM by: meem
taochen

Posts: 198
From: Shanghai

Registered: 6/14/05
udp_impl.h missing on b27
Posted: Jan 2, 2006 11:38 PM

  Click to reply to this thread Reply

/usr/include/inet/ipclassifier.h needs "inet/udp_impl.h"
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/inet/ipclassifier.h#40

but udp_impl.h doesn't exist on my system.

# uname -a
SunOS w2100z 5.11 snv_27 i86pc i386 i86pc

I do see it on source browser though:
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/inet/udp_impl.h

Known problem on b27 ?

Tao

meem

Posts: 3,083
From: US

Registered: 3/9/05
re: udp_impl.h missing on b27
Posted: Jan 3, 2006 12:02 AM   in response to: taochen

  Click to reply to this thread Reply


> /usr/include/inet/ipclassifier.h needs "inet/udp_impl.h"
> http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/inet/ipclassifier.h#40
>
> but udp_impl.h doesn't exist on my system.

It exists, it just isn't shipped. This is intentional -- it contains
implementation details that do not constitute a public programming
interface. By not shipping it, we reduce the likelihood of software
accidentally becoming dependent on its contents.

In build 27, the putback for 6281836 introduced a dependency on udp_impl.h
from ipclassifier.h, hence the build problem you see. However, the
contents of ipclassifier.h also do not constitute a public programming
interface. What are you trying to build that depends on ipclassifier.h?

--
meem
_______________________________________________
networking-discuss mailing list
networking-discuss at opensolaris dot org



taochen

Posts: 198
From: Shanghai

Registered: 6/14/05
Re: udp_impl.h missing on b27
Posted: Jan 3, 2006 12:16 AM   in response to: meem

  Click to reply to this thread Reply



On 1/3/06, Peter Memishian <peter dot memishian at sun dot com> wrote:

> /usr/include/inet/ipclassifier.h needs "inet/udp_impl.h"
> http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/inet/ipclassifier.h#40
>
> but udp_impl.h doesn't exist on my system.

It exists, it just isn't shipped.  This is intentional -- it contains
implementation details that do not constitute a public programming
interface.  By not shipping it, we reduce the likelihood of software
accidentally becoming dependent on its contents.

In build 27, the putback for 6281836 introduced a dependency on udp_impl.h
from ipclassifier.h, hence the build problem you see.  However, the
contents of ipclassifier.h also do not constitute a public programming
interface.  What are you trying to build that depends on ipclassifier.h?

--
meem

lsof:
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.76.tar.gz

My build from S10 works fine on b27, except for a warning message on Solaris version.
I just wanted to get rid of the warning message by rebuilding it for " 5.11".

Sorry I just shutdown my system, can't provide more information until tomorrow.
Anyone should be able to recreate though. I believe I used Studio 11.

(You just need to add '5.11' in the ./Configure file to pass lsof configuration script.
 There're other build errors but not network related.)

Thanks,
Tao
_______________________________________________ networking-discuss mailing list networking-discuss at opensolaris dot org

meem

Posts: 3,083
From: US

Registered: 3/9/05
Re: udp_impl.h missing on b27
Posted: Jan 3, 2006 12:46 AM   in response to: taochen

  Click to reply to this thread Reply


> lsof:
> ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.76.tar.gz

I should've guessed; while lsof is an incredibly useful utility, it is
public enemy #1 when it comes to grovelling around in incredibly unstable
implementation details.

Anyway, it looks like we can easily eliminate the dependency between
ipclassifier.h's and udp_impl.h -- here are the diffs:

------- ipclassifier.h -------
40d39
< #include <inet/u
181c180
< udp_t *conn_udp; /* struct udp_s *conn_udp; /* Pointer to the udp struct */

Thanks for bringing this to our attention; I will log a bug. While we
will resolve this issue, we may choose to fix this differently after
reviewing all the factors involved.

--
meem
_______________________________________________
networking-discuss mailing list
networking-discuss at opensolaris dot org



taochen

Posts: 198
From: Shanghai

Registered: 6/14/05
Re: udp_impl.h missing on b27
Posted: Jan 3, 2006 8:25 AM   in response to: meem

  Click to reply to this thread Reply

On 1/3/06, Peter Memishian <peter dot memishian at sun dot com> wrote:

  ------- ipclassifier.h -------
  40d39
  < #include <inet/udp_impl.h>
  181c180
  <  & nbsp;    udp_t           *conn_udp;        /* Pointer to the udp struct */
  ---
  >       struct udp_s    *conn_udp;      &nbs p; /* Pointer to the udp struct */

Thanks for bringing this to our attention; I will log a bug.  While we
will resolve this issue, we may choose to fix this differently after
reviewing all the factors involved.

--
meem

Thanks for quick response and logging the bug!

Tao
_______________________________________________ networking-discuss mailing list networking-discuss at opensolaris dot org

meem

Posts: 3,083
From: US

Registered: 3/9/05
Re: udp_impl.h missing on b27
Posted: Jan 3, 2006 5:16 PM   in response to: taochen

  Click to reply to this thread Reply


> Thanks for quick response and logging the bug!

No problem; the CR is 6368593.

Since a few people were confused by my comment that <inet/u is
not shipped, I also put together a short blog entry that elaborates on
what I meant:

http://blogs.sun.com/roller/page/meem?entry=private_vs_secret

I hope this clarifies matters.

--
meem
_______________________________________________
networking-discuss mailing list
networking-discuss at opensolaris dot org



bhlewis

Posts: 2
From:

Registered: 11/23/05
Re: udp_impl.h missing on b27
Posted: Jan 4, 2006 10:01 AM   in response to: meem

  Click to reply to this thread Reply

Along these lines (getting lsof to compile on OpenSolaris), version 2.183 of
/usr/include/sys/fs/ufs_inode.h added a "struct slot" that conflicts with
/usr/include/sys/fs/pc_dir.h, making it impossible to include both files.

Would you be willing to log a bug on this?

Thanks,

-Ben

bhlewis

Posts: 2
From:

Registered: 11/23/05
Re: udp_impl.h missing on b27
Posted: Jan 4, 2006 12:56 PM   in response to: bhlewis

  Click to reply to this thread Reply

Never mind, it was already filed as 6349042.

Sorry!

-Ben

meem

Posts: 3,083
From: US

Registered: 3/9/05
re: Re: udp_impl.h missing on b27
Posted: Jan 9, 2006 10:56 AM   in response to: bhlewis

  Click to reply to this thread Reply


> Along these lines (getting lsof to compile on OpenSolaris), version 2.183 of
> /usr/include/sys/fs/ufs_inode.h added a "struct slot" that conflicts with
> /usr/include/sys/fs/pc_dir.h, making it impossible to include both files.
>
> Would you be willing to log a bug on this?

This is already filed as 6349042.

--
meem
_______________________________________________
networking-discuss mailing list
networking-discuss at opensolaris dot org






Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle