This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

2.1.95 oddities


>Submitter-Id:	net
>Originator:	Myles Uyema
>Organization:
 
>Confidential:	no
>Synopsis:	
>Severity:	
>Priority:	
>Category:	libc
>Class:		
>Release:	libc-2.1.95
>Environment:
	
Host type: i686-pc-linux-gnu
System: Linux uyema 2.4.0-test9 #2 SMP Fri Oct 20 00:22:41 PDT 2000 i686 unknown
Architecture: i686

Addons: linuxthreads

Build CC: gcc
Compiler version: 2.95.2 19991024 (release)
Kernel headers: 2.4.0-test9
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio

>Description:
	locking function calls always returning ENOLCK.

/usr/sbin/mail:
open("/var/mail/myles", O_RDONLY)       = 4
shmat(4, 0, 0x3)                        = 0x75710025
fstat64(4, {st_mode=S_IFREG|0600, st_size=15196, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
_llseek(4, 0, [0], SEEK_CUR)            = 0
shmat(4, 0xbffff864, 0x2)               = ?
flock(4, LOCK_EX)                       = -1 ENOLCK (No locks available)

/usr/bin/pine:
rt_sigprocmask(SIG_BLOCK, [ALRM], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], [ALRM], 8) = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], [ALRM], 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {0x8158720, [], SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGUSR2, {SIG_IGN}, {0x8158a50, [], SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {0x8158890, [], SA_RESTART|0x4000000}, 8) = 0
open("/var/spool/mail/myles", O_RDONLY) = 5
flock(5, LOCK_SH)                       = -1 ENOLCK (No locks available)
lstat64("/var/spool/mail/myles.lock", 0xbfffafcc) = -1 ENOENT (No such file or d

	Unable to recompile pine4.21:
cc   -g -DDEBUG   -DLNX -DSYSTYPE=\"LNX\" -DMOUSE   -c -o os.o os.c
os.c: In function `fget_pos':
os.c:1123: conversion to non-scalar type requested
os.c:1124: invalid operands to binary ==
os.c: In function `fset_pos':
os.c:1134: incompatible type for argument 2 of `fseek'
make: *** [os.o] Error 1

os.c:
fget_pos(stream, ptr)
FILE *stream;
fpos_t *ptr;
{
    *ptr = (fpos_t)ftell(stream);
    return (*ptr == -1L ? -1 : 0);
}

/*----------------------------------------------------------------------
   This is an emulation of the ANSI C fsetpos function.
  ----*/
fset_pos(stream, ptr)
FILE *stream;
fpos_t *ptr;
{
    return fseek(stream, *ptr, 0);
}


	
>How-To-Repeat:
	I've also tried recompiling under kernel source 2.2.17, with
	the same results under mail and pine.
	
	The unchanging constant is that I am operating under 2.4.0-test9.

>Fix:
	

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]