Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-0.95 release doesn't compile on x86-64 #44

Closed
GoogleCodeExporter opened this issue Apr 7, 2015 · 3 comments
Closed

-0.95 release doesn't compile on x86-64 #44

GoogleCodeExporter opened this issue Apr 7, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Download the .tar.gz to an x86_64 machine
2. ./configure
3. make

What is the expected output? What do you see instead?

I see build errors like this:
 g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -I/home/mrabkin/unwind/include
-pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual
-Wno-sign-compare -DNO_FRAME_POINTER -g -O2 -MT
libtcmalloc_minimal_la-malloc_hook.lo -MD -MP -MF
.deps/libtcmalloc_minimal_la-malloc_hook.Tpo -c src/malloc_hook.cc  -fPIC
-DPIC -o .libs/libtcmalloc_minimal_la-malloc_hook.o
src/base/linux_syscall_support.h: In function 'ssize_t sys_pread64(int,
void*, size_t, loff_t)':
src/base/linux_syscall_support.h:2733: error: '__NR_pread64' was not
declared in this scope
src/base/linux_syscall_support.h: In function 'ssize_t sys_pwrite64(int,
const void*, size_t, loff_t)':
src/base/linux_syscall_support.h:2735: error: '__NR_pwrite64' was not
declared in this scope
make: *** [libtcmalloc_minimal_la-malloc_hook.lo] Error 1


What version of the product are you using? On what operating system?

$ uname -a
Linux <hostname> 2.6.12-1.1398_FC4smp #1 SMP Fri Jul 15 01:05:24 EDT 2005
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

I looked in the offending .h file, and it does seem that __NR_pread64 is
simply not defined for x86_64 systems.

Original issue reported on code.google.com by mrab...@gmail.com on 15 Feb 2008 at 10:26

@GoogleCodeExporter
Copy link
Author

it seems to compile and run (at least some tests pass) if the above two uses are
changed to 'pread' and 'pwrite' from 'pread64' and 'pwrite64', respectively.

Original comment by mrab...@gmail.com on 15 Feb 2008 at 11:38

@GoogleCodeExporter
Copy link
Author

Yes, this is just a bug in the file.  I'll have a fix out shortly.

craig

Original comment by csilv...@gmail.com on 19 Feb 2008 at 6:56

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Should be fixed in 0.95.1

Original comment by csilv...@gmail.com on 19 Feb 2008 at 10:19

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant