Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 234560 - Can't build program that needs REG_EIP on fc5 x86_64
Can't build program that needs REG_EIP on fc5 x86_64
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-03-30 00:24 EDT by Joseph Shraibman
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-30 02:18:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joseph Shraibman 2007-03-30 00:24:19 EDT
Description of problem:
I can't build atscap 1.1-rc9k.  It fails with 

Building a colorful object:
atscap.c:53:2: warning: #warning using ... lines are PLATFORM SPECIFIC!
atscap.c:240:2: warning: #warning using POSIX signals
atscap.c:274:2: warning: #warning using Linux DVB
atscap.c:280:2: warning: #warning using TCP for HTTP
atscap.c:290:2: warning: #warning Using GNU backtrace()
atscap.c:304:2: warning: #warning using PNG for signal chart
atscap.c:572:2: warning: #warning using ECMA-48 for console colors
atscap.c:2317:2: warning: #warning using 8 entry VCT for broadcast
atscap.c:2575:2: warning: #warning using tiny EPG
atscap.c:3123:2: warning: #warning using dvrlog
atscap.c:3775:2: warning: #warning using x86 arch uc_mcontext.gregs REG_EIP
atscap.c: In function ‘signal_handler’:
atscap.c:3777: error: ‘REG_EIP’ undeclared (first use in this function)
atscap.c:3777: error: (Each undeclared identifier is reported only once
atscap.c:3777: error: for each function it appears in.)
atscap.c:7405:2: warning: #warning using Linux TIOCGWINSZ
atscap.c: In function ‘show_mem_static’:
atscap.c:8591: warning: format ‘%d’ expects type ‘int’, but argument 6 has type
‘long unsigned int’
atscap.c:8629: warning: format ‘%d’ expects type ‘int’, but argument 5 has type
‘long unsigned int’
atscap.c:8629: warning: format ‘%d’ expects type ‘int’, but argument 6 has type
‘long unsigned int’
atscap.c:24260:2: warning: #warning using FIFO mutex reads
atscap.c:24588:2: warning: #warning using POSIX SCHED_FIFO priority 1
make: *** [atscap] Error 1

It builds fine on my fc6 i386 install

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Download atscap from
2. untar it, and run make
Comment 1 Jakub Jelinek 2007-03-30 02:18:12 EDT
That's the program's fault, it simply has never been ported to non-i386.
There is no %eip register on x86_64 (but %rip; and on other arches it has
even different names, or is represented by multiple registers etc.), so x86_64
defines REG_RIP instead.
Comment 2 Joseph Shraibman 2007-03-30 11:07:31 EDT
And here I thought that x86_64 was completely reverse compatible.  Thanks for
clearing it up for me.
Comment 3 Jakub Jelinek 2007-03-30 11:21:13 EDT
If you build a 32-bit program, it is.  But you are building a 64-bit one.

Note You need to log in before you can comment on or make changes to this bug.