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]

Re: 2.2.2 and build problem on alpha


Arkadiusz Miskiewicz <misiek@pld.ORG.PL> writes:

> Problem when building glibc 2.2.2 on alpha
> 
> ...
> dummy-repertoire.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mieee -mieee  -I..gcc ../locale/programs/simple-hash.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mieegcc ../locale/programs/xstrdup.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mieee -mgcc ../locale/programs/xmalloc.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mieee -mgcc iconv_prog.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -mieee -mieee  -I../localrm -f ../libc.so.6.1.new
> /bin/sh ../scripts/rellns-sh ../libc.so ../libc.so.6.1.new
> mv -f ../libc.so.6.1.new ../libc.so.6.1
> gcc -nostdlib -nostartfiles -o iconv_prog  -Wl,-dynamic-linker=/lib/ld-linux.so.2    ../csu/crt1.o .../libc.so.6.1: undefined reference to `__ftruncate64'
> collect2: ld returned 1 exit status
> make[1]: *** [iconv_prog] Error 1
> make[1]: Leaving directory `/home/users/builder/rpm/BUILD/glibc-2.2.2/iconv'
> make: *** [iconv/others] Error 2
> Bad exit status from /var/tmp/rpm-tmp.71810 (%build)
> Error: package build failed.

Here's a patch,

Andreas

2001-02-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/syscalls.list (ftruncate): Add
	__ftruncate64 alias.
	* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (ftruncate):
	Likewise.

--- libc/sysdeps/unix/sysv/linux/alpha/syscalls.list.jj	Fri Aug 25 19:17:40 2000
+++ libc/sysdeps/unix/sysv/linux/alpha/syscalls.list	Fri Feb 16 11:57:11 2001
@@ -26,7 +26,7 @@ fstatfs		-	fstatfs		2	__fstatfs	fstatfs 
 statfs		-	statfs		2	__statfs	statfs statfs64
 getrlimit	-	getrlimit	2	__getrlimit	getrlimit getrlimit64
 setrlimit	-	setrlimit	2	__setrlimit	setrlimit64 setrlimit
-ftruncate	-	ftruncate	2	__ftruncate	ftruncate ftruncate64
+ftruncate	-	ftruncate	2	__ftruncate	ftruncate __ftruncate64 ftruncate64
 truncate	-	truncate	2	truncate	truncate64
 
 # these are actually common with the x86:
--- libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list.jj	Fri Aug 25 18:59:54 2000
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list	Fri Feb 16 11:57:52 2001
@@ -8,7 +8,7 @@ fstatfs		-	fstatfs		2	__fstatfs	fstatfs 
 statfs		-	statfs		2	__statfs	statfs statfs64
 getrlimit	-	getrlimit	2	__getrlimit	getrlimit getrlimit64
 setrlimit	-	setrlimit	2	__setrlimit	setrlimit64 setrlimit
-ftruncate	-	ftruncate	2	__ftruncate	ftruncate ftruncate64
+ftruncate	-	ftruncate	2	__ftruncate	ftruncate __ftruncate64 ftruncate64
 truncate	-	truncate	2	truncate	truncate64
 mmap		-	mmap		6	__mmap		mmap __mmap64 mmap64
 


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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