Opened 12 years ago

Closed 11 years ago

#656 closed defect (fixed)

IZ2980: error: conflicting types for 'getline'

Reported by: opoplawski Owned by:
Priority: normal Milestone:
Component: sge Version: 6.2u2
Severity: minor Keywords: build


[Imported from gridengine issuezilla]

        Issue #:      2980             Platform:     All      Reporter: opoplawski (opoplawski)
       Component:     gridengine          OS:        All
     Subcomponent:    build            Version:      6.2u2       CC:    None defined
        Status:       NEW              Priority:     P3
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    andreas (andreas)
      QA Contact:     andreas
       * Summary:     error: conflicting types for 'getline'
   Status whiteboard:
                      Date/filename:                                                  Description:                                            Submitted by:
                      Mon Apr 6 12:08:00 -0700 2009: gridengine-6.2u2_1-getline.patch Patch to change getline() to sge_getline() (text/plain) opoplawski

     Issue 2980 blocks:
   Votes for issue 2980:

   Opened: Mon Apr 6 12:05:00 -0700 2009 

Compiling with latest Fedora Rawhide:

-DLOAD_OPENSSL -I/usr/include/../include -DSGE_ARCH_STRING=lx26-x86 -DTARGET_32BIT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -DSPOOLING_dynamic -DSECURE
-Wno-strict-prototypes -Wno-error  -DHAVE_MEMMOVE -DXMT_HAS_STRERROR -I../3rdparty/qmon/Xmt310 -I../3rdparty/qmon/Xbae
-I../3rdparty/qmon/iconlist -I../3rdparty/qmon/ltree -I../3rdparty/qmon/outline -I../3rdparty/qmon/rowcol -I../3rdparty/qmon/spinbox
-I../clients/qmon -I../3rdparty/qmon/tab -I/usr/X11R6/include -U_GNU_SOURCE   -DINCLUDEDIR=\"/usr/include\"   -DOBJSUFFIX=\".o\" ../include.c
In file included from ../include.c:29:
../def.h:158: error: conflicting types for 'getline'
/usr/include/stdio.h:653: note: previous declaration of 'getline' was here

Looks line "getline" needs to get renamed to avoid conflicting with the glibc function getline.

   ------- Additional comments from opoplawski Mon Apr 6 12:08:38 -0700 2009 -------
Created an attachment (id=187)
Patch to change getline() to sge_getline()

Attachments (1)

187 (1.8 KB) - added by dlove 11 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 11 years ago by dlove

  • Resolution set to fixed
  • Severity set to minor
  • Status changed from new to closed

Fixed by [3543].

Changed 11 years ago by dlove

Note: See TracTickets for help on using tickets.