On Wed, 2003-03-26 at 17:45, Ben Armstrong wrote:
> I started taking a peek at the glibc /usr/include/dirent.h 

Oops, forgot to finish this thought.  Well, it wasn't much help.  After
a bit of Googling, though, I came up with this:

 http://www.science.uva.nl/pub/solaris/solaris2/Q6.19.html

  6.19) Why doesn't readdir work? It chops the first two characters of all
  filenames.                          
  
   You're probably linking with libucb and didn't read question 6.18.
   (Readdir in libucb.so wants you to include sys/dir.h, but many SunOS
   4.1.x programs included <dirent.h>, consequently, you're mixing native
   <dirent.h> struct dirent with libucb readdir(). The symptom of this
   mixup is that the first two characters of each filename are missing. 
   Make sure you use a native compiler (default /opt/SUNWspro/bin/cc,
   which may not be in your PATH), and not /usr/ucb/cc.

Well, this is the inverse of our problem.  Rather than the first two
characters being missing, we have only the first two characters.

Oh, and FYI, this is question 6.18 which is referred to above:

  6.18) Can I use the source compatibility package to postpone porting?

   Not really. The Source code compatibility package is compatible with
   BSD 4.2, not SunOS 4.1.x. The consensus is that the library is broken
   beyond usability. If you use libucb to pick up some functions you
   need, it is often best to specify it after all other libraries and
   after libc with:

            -lc -L/usr/ucblib -R/usr/ucblib -lucb

   or preferably:

            -lc /usr/ucblib/libucb.a

I hope this is somehow of help.

Ben
-- 
Ben Armstrong <[EMAIL PROTECTED]>

_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to