Bug 416941

Summary: gphoto2 build problem (alpha only?)
Product: [Fedora] Fedora Reporter: Oliver Falk <oliver>
Component: gphoto2Assignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-25 05:52:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oliver Falk 2007-12-08 23:54:16 UTC
Can you please have a look at this build log:

http://buildsys.zero42.at/koji/getfile?taskID=74990&name=build.log

Thx

Comment 1 Jindrich Novy 2007-12-09 08:12:41 UTC
Oliver, it seems like you have incorrect glibc-headers installed in buildroot as
IXANY isn't declared in %{_includedir}/bits/termios.h. This is all I can guess
from the build log you posted here.

Try to add somthing like:
#ifdef __ALPHA__
#  define IXANY   0004000
#endif

after the #include <termios.h> in
gphoto2-2.4.0/libgphoto2-2.4.0/libgphoto2_port/serial/unix.c and you will see.

Comment 2 Jindrich Novy 2007-12-09 08:15:59 UTC
FYI: http://opengroup.org/onlinepubs/007908799/xbd/termios.html

Comment 3 Oliver Falk 2007-12-09 09:46:44 UTC
Well. I do see it defined:
[oliver@gosa F-8]$ grep -r IXANY /usr/include/{asm,bits}/*
/usr/include/asm/termbits.h:#define IXANY       0004000
/usr/include/bits/termios.h:# define IXANY              0004000

In bits/termios.h the define is inside of some ifdef __USE_BSD. But __USE_BSD
isn't enabled somewhere, is it?

The define is also commented with: /* POSIX.1 doesn't want these... */. - On
Alpha. On x86 I don't see this idef or the comment ?!

Comment 4 Jindrich Novy 2007-12-09 10:01:02 UTC
rpm -q glibc-headers ?

Comment 5 Jindrich Novy 2007-12-09 10:02:20 UTC
... and also rpm -q kernel-headers please :)

Comment 6 Oliver Falk 2007-12-09 12:54:06 UTC
[oliver@gosa work]$ rpm -q kernel-headers
kernel-headers-2.6.23.1-58.fc8axp


Comment 7 Oliver Falk 2007-12-09 21:42:55 UTC
#ifndef IXANY
#  define IXANY   0004000
#endif

Is what I patched in. Just in case some other arch also has problems...

If you don't matter, please add appropriate patch (with your ifdef, or my ifndef
- I don't mind).

The question with the headers - of course - is still open.

Comment 8 Jindrich Novy 2008-02-25 05:52:45 UTC
I applied the ifndef in rawhide, it seems to be safer.