Bug 56261 - source code problems
source code problems
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: gdm (Show other bugs)
6.2
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Havoc Pennington
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-11-14 13:48 EST by d.binderman
Modified: 2007-04-18 12:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-11-14 14:15:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2001-11-14 13:48:58 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

In compiling gdm-2.0beta2-23, I got

1.

cc: Error: slave.c, line 437: In this statement, "LC_CTYPE" is not declared. (undeclared)
                    lang = setlocale(LC_CTYPE, "");
-------------------------------------^

which I fixed with the following patch

*** slave.c.old	Thu Oct 11 11:46:56 2001
--- slave.c	Thu Oct 11 11:47:15 2001
***************
*** 23,28 ****
--- 23,29 ----
  #include <config.h>
  #include <gnome.h>
  #include <stdio.h>
+ #include <locale.h>
  #include <stdlib.h>
  #include <ctype.h>
  #include <fcntl.h>

2. 

Then I got 

cc: Info: slave.c, line 231: In this statement, an array is being accessed outside the bounds specified for the array type. (subscrbounds)
        fcntl(pipe2[0], F_SETFD, fcntl(pipe2[2], F_GETFD, 0) | FD_CLOEXEC);
---------------------------------------------^

where 

    gint pipe1[2], pipe2[2];  

I'm not sure what the fix is for this one.



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


How reproducible:
Always

Steps to Reproduce:
1. compile with Compaq ccc compiler
2.
3.
	

Additional info:
Comment 1 Havoc Pennington 2001-11-14 14:15:16 EST
Almost certainly fixed in recent gdm, e.g. the one from 7.2

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