Re: POPT 2.0: version stamping in includes

2010-06-18 Thread Jeff Johnson

On Jun 18, 2010, at 9:03 PM, Michael Jennings wrote:
 
 Ah, okay.  I guess I was envisioning for runtime checks:
 
  void *f = dlopen(NULL, RTLD_LAZY);
  if (dlsym(f, popt_something)) {
...
  }
 

Any idea how portably POSIX dlsym() is in 2010?

There's the GNUish dlvsym() that needs figgering if I attempt
compatibility with symbol versioning too.

73 de Jeff

__
POPT Library   http://rpm5.org
Developer Communication List   popt-devel@rpm5.org


Re: POPT 2.0: version stamping in includes

2010-06-18 Thread Michael Jennings
On Friday, 18 June 2010, at 21:09:24 (-0400),
Jeff Johnson wrote:

 Any idea how portably POSIX dlsym() is in 2010?

According to the Open Group website, dlsym() and dlopen() are at
*least* in POSIX.1 2004 if not earlier.  And they came from SunOS, so
Solaris portability won't be an issue.  MacOS has them, BSD has them.
They should be fine.

 There's the GNUish dlvsym() that needs figgering if I attempt
 compatibility with symbol versioning too.

Yeah, that's where you'll get into portability trouble. :)

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  m...@kainx.org
Linux Server/Cluster Admin, LBL.gov   Author, Eterm (www.eterm.org)
---
 Can we leave the world outside just for awhile, just for awhile?
  Spend some time, you and I, under this bright, glorious sky?  It's
  been so long since I first saw you, but I still love the smile in
  your eyes.   -- Roxette, Church of Your Heart
__
POPT Library   http://rpm5.org
Developer Communication List   popt-devel@rpm5.org