[Devel] [ openser-Bugs-1442869 ] unixodbc compile problem

SourceForge.net noreply at sourceforge.net
Sat Mar 4 03:54:45 CET 2006


Bugs item #1442869, was opened at 2006-03-04 02:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1442869&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Nobody/Anonymous (nobody)
Summary: unixodbc compile problem

Initial Comment:
Build from CVS (3/3/2006) produced the following error:

In file included from dbase.c:40:
my_con.h:47: error: flexible array member in otherwise
empty struct


The code in question is below:

#define STRN_LEN

typedef struct strn
{
        char s[STRN_LEN];
} strn;


I review of a diff to the previous version of my_con.h is:
 
typedef struct strn 	 
{ 	 
         char s[1024]; 	         
} strn; 	 
  	

An obvious solution is to change the define to:

#define STRN_LEN 1024

Regards,
Norm


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1442869&group_id=139143



More information about the Devel mailing list