Bug 21362

Summary: RH 7 compiler rejects fpos_t assignments (RH6.2 worked)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <jsprigg>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-26 21:54:25 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 Need Real Name 2000-11-26 21:54:23 UTC
In Red Hat 6.2, I could declare & assign fpos_t as follows:

fpos_t loc;
loc = 0;

In Red Hat 7, the same code generates a compiler error:

"incompatible types in assignment"


Please help - This was an experiment to convince my bosses to switch from 
NT to Linux.

Comment 1 Jakub Jelinek 2000-11-27 07:20:40 UTC
fpos_t is no longer a scalar type, there is nothing in the standards
which demand this to be a scalar btw. This is so that proper wide
stream support could be added.
As I have no idea what you wanted to achieve, I cannot suggest
what you should do instead, but one hint could be that fpos_t used
to be the same as off_t (resp. off64_t for fpos64_t), so you could
maybe use those types instead.
This is not related to gcc at all, the change happened in glibc
headers.