ORBIT-USER: libmac compile error?
Kishore Ramachandran
kishore at winlab.rutgers.edu
Tue Oct 24 11:32:39 EDT 2006
Hi Rodney:
What version of libmac are you using and what kernel version do you have?
I checked libmac code in SVN trunk as well as release v1.1.0 and did not
find the lines (in either libmac_ifinfo.c and libmac_ifparams.c) you
mentioned. I did not find "__user" in either of the files. Are you using
code modified by you or someone else?
I suggest starting with trying to compile and run libmac release v1.1.0.
regards,
Kishore
---------------------------------------------------------------------------
Kishore Ramachandran
Graduate Assistant, WINLAB/ECE, Rutgers University.
WWW : http://www.winlab.rutgers.edu/~kishore
---------------------------------------------------------------------------
On Tue, 24 Oct 2006, Rodney Berriman wrote:
>
> Hi Kishore,
>
> I'm getting a compile error building libmac:
>
> In file included from ./libmac_cmn.h:132,
> from ./libmac.h:36,
> from libmac_ifparams.c:13:
> /usr/include/linux/socket.h:7:2: warning: #warning "You should include
> <sys/socket.h>. This time I will do it for you."
> libmac_ifparams.c: In function `mac_append_params':
> libmac_ifparams.c:584: *error: syntax error before "__user"*
>
> the line is:
> iwr.u.data.pointer = (void __user *) plist;
>
> Similar error occurring at libmac_ifinfo.c:368
>
>
> changing *(void __user *)* to *(void *)* compiles OK, but is it correct?
>
>
> many thanks,
> Rodney
>
>
>
>
> --------------------------------------------------------------------------
> This email and any attachments may be confidential. They may contain legally
> privileged information or copyright material. You should not read, copy,
> use or disclose them without authorisation. If you are not an intended
> recipient, please contact us at once by return email and then delete both
> messages. We do not accept liability in connection with computer virus,
> data corruption, delay, interruption, unauthorised access or unauthorised
> amendment. This notice should not be removed.
More information about the orbit-user
mailing list