Re: [Evolution-hackers] A compiling error of solaris cc on anonymous union in libmapi
- From: Johnny Jacob <jjohnny novell com>
- To: evolution-hackers gnome org
- Subject: Re: [Evolution-hackers] A compiling error of solaris cc on anonymous union in libmapi
- Date: Mon, 22 Sep 2008 10:26:03 +0530
Best place to ask this would be in
http://mailman.openchange.org/listinfo/devel
:)
On Wed, 2008-09-17 at 18:03 +0800, liushuai wrote:
> Hi everyone
> Sorry for bothering you.
> Did everybody encounter this problem?
>
> Define this struct in samba4/source/libcli/netlogon.h like this:
>
>
> struct netlogon_samlogon_response
> {
> uint32_t ntver;
> union {
> struct NETLOGON_SAM_LOGON_RESPONSE_NT40 nt4;
> struct NETLOGON_SAM_LOGON_RESPONSE nt5;
> struct NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex;
> };
>
> };
>
>
>
> Use it in netlogon.c like this:
> netlogon_samlogon_response *response;
> &response->nt4;
> &response->nt5_ex;
>
> And solaris cc reported this error:
> "./libcli/netlogon.h", line 39: warning: unnamed struct member
> "./libcli/netlogon.h", line 49: warning: unnamed struct member
> "libcli/netlogon.c", line 33: improper member use: nt4
> "libcli/netlogon.c", line 38: improper member use: nt5_ex
> cc: acomp failed for libcli/netlogon.c
> The following command failed:
> /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -g -DDEBUG_PASSWORD -DDEVELOPER
> -fullwarn -Ilib/talloc -Ilib/replace -KPIC -I./include -I.
> -I./lib -I./lib/replace -I./lib/talloc -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H
> -c libcli/netlogon.c -o libcli/netlogon.o
> make[1]: *** [libcli/netlogon.o] Error 1
> make[1]: Leaving directory
> `/export/home/liushuai/mapi/openchange/samba4/source'
> Error in Step2 (error code 2)
> make: *** [samba] Error 1
>
>
> This usage has no problem in ubuntu. However solaris cc has this
> problem.
> Everyone has a solution?
> And thank you!
> Shuai Liu
>
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]