patchDotGNU Portable.NET - Patches: patch #3403, serial.c fails to compile on hpux...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3403: serial.c fails to compile on hpux 10.20 s800

Submitter:  Vincent Fortier <th0ma7>
Submitted:  Thu 30 Sep 2004 11:35:39 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Invalid Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Fri 01 Oct 2004 03:35:44 PM UTC, comment #2: 

I have checked in fixes to CVS to make it build on HPUX.
Please get it from CVS and build.

Thanks for your report.

Gopal.V <t3rmin4t0r>
Group administrator
Thu 30 Sep 2004 12:56:12 PM UTC, comment #1: 

Please try

#include <sys/modem.h>

#ifndef CRTSCTS
#  ifdef CNEW_RTSCTS
#    define CRTSCTS CNEW_RTSCTS
#  else
#    define CRTSCTS 0
#  endif /* CNEW_RTSCTS */
#endif /* !CRTSCTS */

instead of your patch and report back the success. This code
has been pulled out of a hat and I haven't got HPUX here .

Gopal.V <t3rmin4t0r>
Group administrator
Thu 30 Sep 2004 11:35:39 AM UTC, original submission:  

Here is the error log:
serial.c: In function `ILSerialModify':
serial.c:398: error: `CRTSCTS' undeclared (first use in this function)
serial.c:398: error: (Each undeclared identifier is reported only once
serial.c:398: error: for each function it appears in.)
serial.c: In function `ILSerialReadPins':
serial.c:473: error: `MDCD' undeclared (first use in this function)
serial.c:479: error: `MCTS' undeclared (first use in this function)
serial.c:485: error: `MDSR' undeclared (first use in this function)
serial.c:491: error: `MDTR' undeclared (first use in this function)
serial.c:497: error: `MRTS' undeclared (first use in this function)
serial.c:503: error: `MRI' undeclared (first use in this function)
serial.c: In function `ILSerialWritePins':
serial.c:529: error: `MDTR' undeclared (first use in this function)
serial.c:546: error: `MRTS' undeclared (first use in this function)
gmake[1]: * [serial.o] Error 1
gmake[1]: Leaving directory `/tmp/download/pnet/pnet-0.6.8/support'
gmake: * [all-recursive] Error 1

I simply added definitions for thoses variables (starting at line 213):
#ifndef CRTSCTS
#define CRTSCTS 0
#endif
#ifndef MDCD
#define MDCD    0
#endif
#ifndef MCTS
#define MCTS    0
#endif
#ifndef MDSR
#define MDSR    0
#endif
#ifndef MDTR
#define MDTR    0
#endif
#ifndef MRTS
#define MRTS    0
#endif
#ifndef MRI
#define MRI     0
#endif


Vincent Fortier <th0ma7>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-01 t3rmin4t0r StatusNone Invalid
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code