discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pantomime/Testing error


From: Guevara, Kristine F
Subject: Pantomime/Testing error
Date: Thu, 11 Jul 2002 08:41:48 -0500

After implementing flock in MimeUtility.m, it still returns the same error
when I try to compile the test programs in /Pantomime/Testing:

Making all in Client...
make[1]: Entering directory `/reserved/toolman/Pantomime/Testing/Client'
Making all for app Pantomime...
 Linking app Pantomime ...
Undefined                       first referenced
 symbol                             in file
flock
/GNUtools/2.8/Local/Libraries/sparc/solaris2.8/gnu-gnu-gnu/libPantomime.so
ld: fatal: Symbol referencing errors. No output written to
Pantomime.app/sparc/solaris2.8/gnu-gnu-gnu/Pantomime
collect2: ld returned 1 exit status
make[2]: *** [Pantomime.app/sparc/solaris2.8/gnu-gnu-gnu/Pantomime] Error 1
make[1]: *** [Pantomime.all.app.variables] Error 2
make[1]: Leaving directory `/reserved/toolman/Pantomime/Testing/Client'
make: *** [internal-all] Error 2



-----Original Message-----
From: Ludovic Marcotte
To: Guevara, Kristine F
Cc: discuss-gnustep@gnu.org
Sent: 7/10/02 3:13 PM
Subject: RE: GNUMail error

Hi Kristine,

> ...
> It is the same ld error returned by GNUMail.

Looks like flock() isn't defined at all.

You could always try to define a flock() function based on lockf() that 
would look like this (for example, in Pantomime/Source/MimeUtility.m):

int flock (int fd, int operation) 
{ 
  int i;
  
  switch (operation)
    {
    case LOCK_SH:
    case LOCK_EX: 
      i = lockf(fd, F_LOCK, 0); 
      break;
      
    case LOCK_SH|LOCK_NB:
    case LOCK_EX|LOCK_NB: 
      i = lockf(fd, F_TLOCK, 0); 
      if (i == -1) 
        if ((errno == EAGAIN) || (errno == EACCES))
          errno = EWOULDBLOCK; 
      break;
      
    case LOCK_UN: 
      i = lockf(fd, F_ULOCK, 0); 
      break;
      
    default: 
      i = -1;
      errno = EINVAL;
      break; 
    } 
  
  return (i); 
} 

If it still doesn't work, let me know so I'll install everything on my 
Solaris box and fix those issues.

Ludo

-- 
Live as if you were to die tomorrow.
Learn as if you were to live forever.
 - Gandhi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]