Server:
1666 Client: p4web-browser
Path:
 
Files   Submitted   Branches   Labels   Clients   Users   Jobs   Settings  
View submitted changelists Cancel operation Hide recent activity bar Show go to bar Information Help
4381 2004/08/03 lawrence_you Branch files for jam at change 4382 2004/08/03 lawrence_you Fix a bug when using the Librar
Changelist:
Changelist: 4382
Date: 2004/08/03 12:37
Client: lawrence_you-cygwin
User: lawrence_you
Description:
Fix a bug when using the Library target on Cygwin (1.5.10-3). Include
<unistd.h> for OS_CYGWIN to call the correct version lseek.

The wrong version of lseek is called by file_archscan. The lseek
fails while reading the ar file, causing the routine to read
subsequent bytes instead of seeking to the next ar_hdr entry in the
archive. When the desired object file is not found, jam rebuilds the
entire archive even though the object and proper mtime exists. A
simple test is to just use a single Jamfile and two source
files. Without this fix, jam would relink the second time it was
invoked.

Jamfile:
Library TestLib : file1.c file2.c ;

file1.c:
#define FOO

file2.c:
#define BAR
Affected files: View file textDiff rev #1 vs. rev #2//guest/lawrence_you/public/jam/src/fileunix.c#2 edit
Copyright 2008 Perforce Software. All rights reserved.