Bug added with I-MX MCUXpresso 11.5 (fd_set in select.h)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bug added with I-MX MCUXpresso 11.5 (fd_set in select.h)

2,303 次查看
_ThomasLorenz_
Contributor II

Hi

The was added some incompatibiltiy/bug with version 11.5 - would you please fix that !?

select.h 11.4.1:

/* We use a macro for fd_set so that including Sockets.h afterwards
can work. */
typedef struct _types_fd_set {
fd_mask fds_bits[_howmany(FD_SETSIZE, NFDBITS)];
} _types_fd_set;

#define fd_set _types_fd_set

select.h 11.5.0:

typedef struct fd_set {
__fd_mask __fds_bits[_howmany(FD_SETSIZE, _NFDBITS)];
} v;
#if __BSD_VISIBLE
#define fds_bits __fds_bits
#endif

Regards

Thomas

0 项奖励
回复
7 回复数

2,275 次查看
_ThomasLorenz_
Contributor II

Hi

Compiler gives error that type fd_set is already defined (as now #undef fd_set  (what we do) is not possible anymore as fd_set is now already a typedef in the 11.5 arm libs).

-> green comment in 11.4 is now not the case anymore

select.h 11.4.1:

/* We use a macro for fd_set so that including Sockets.h afterwards
can work. */
typedef struct _types_fd_set {
fd_mask fds_bits[_howmany(FD_SETSIZE, NFDBITS)];
} _types_fd_set;

#define fd_set _types_fd_set

-> indirect typedef

select.h 11.5.0:

Directly does the fd_set typedef

typedef struct fd_set {

 

I hope it is clear now.

Thomas

0 项奖励
回复

2,266 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi _ThomasLorenz_ 

Thanks for your reply.

Yes, it's more clear. I saw the difference. 

Please let me know your part number and demo project which includes error. I will verify and report it. Thanks,

Jun Zhang

0 项奖励
回复

2,086 次查看
lh_dan
Contributor III

I have the same problem...is there any work around other than don't use 11.5? (or 11.5.1 because it doesn't seem to be fixed yet)

0 项奖励
回复

2,074 次查看
_ThomasLorenz_
Contributor II

Hi It seems that the issue has been resolved meanwhile (not sure when) – but current 11.5 select.h also includes the fd_set define.

 

Please try online Update.

 

Thomas

 

 

0 项奖励
回复

2,063 次查看
lh_dan
Contributor III

Thomas,

 

Thanks for your responce....do you happen to know how to force that update? I have the same plugin that you have but the select.h in both directories is the same (includes the fd_set define).

C:\NXP\MCUXpressoIDE_11.5.0_7232\ide\tools\arm-none-eabi\include\sys\select.h

C:\NXP\MCUXpressoIDE_11.5.0_7232\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138\tools\arm-none-eabi\include\sys\select.h

lh_dan_0-1652996275654.png

Thanks for any help,

Dan

0 项奖励
回复

1,988 次查看
lh_dan
Contributor III

I found the secret is to define the following macro in lwipopts.h:

#define LWIP_TIMEVAL_PRIVATE 1

0 项奖励
回复

2,287 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

Please check if my understanding is correct.

You use MCUXpresso 11.5 + select.h (in 11.5), wrong result

              MCUXpresso 11.5 + select.h (in 11.4.1), correct result

If  this understanding is correct, Could you please specify what wrong result you got with screenshot?

How can we reproduce your issue?

What's the part number?

Thanks,

Jun Zhang

 

 

0 项奖励
回复