libassuan-0.6.10 -- does not compile on solaris (yet)

Niki W Waibel niki.waibel at wipro.com
Fri Jun 9 17:04:25 CEST 2006


ok, i've found some time.

attached there are two patches that fix the solaris compile issue (possably also for other platforms).

libassuan-0.6.10.nww-wo-autoconf.patch.gz
	patches only configure.ac and src/assuan-domain-connect.c
	you have to run autoheader, aclocal and autoconf afterwards

libassuan-0.6.10.nww.patch.gz
	patches the files
		aclocal.m4
		config.h.in
		configure
		configure.ac
		src/assuan-domain-connect.c
	so there is no more need for the auto*-tools.
	(i've used autoconf-2.59b, automake-1.9.6)

by the way, 0.6.9 compiled fine, although it was using those members as well...
this is what solaris (8/9/10) defines (in sys/socket.h):
===
struct msghdr {
        void            *msg_name;              /* optional address */
        socklen_t       msg_namelen;            /* size of address */
        struct iovec    *msg_iov;               /* scatter/gather array */
        int             msg_iovlen;             /* # elements in msg_iov */

#if defined(_XPG4_2) || defined(_KERNEL)
        void            *msg_control;           /* ancillary data */
        socklen_t       msg_controllen;         /* ancillary data buffer len */
        int             msg_flags;              /* flags on received message */
#else
        caddr_t         msg_accrights;  /* access rights sent/received */
        int             msg_accrightslen;
#endif  /* defined(_XPG4_2) || defined(_KERNEL) */
};
===
so i guess when compiling 0.6.9, _XPG4_2 is defined for some reason. anyway, the check for the member in the struct is a good thing imho.

maybe i can find out what's going on with _XPG4_2. if so, i'll keep you posted.

rds, niki

On Wed, 7 Jun 2006 19:32:15 +0200 Niki W Waibel wrote:
> hi, not subscribed to any gnupg list, so i am not
> sure if this email makes it through ...
> 
> compiling libassuan on solaris produces the following:
> ===
> if gcc -DHAVE_CONFIG_H -I. -I/tmp/libassuan-0.6.10/src -I.. -I.. -I/tmp/libassuan-0.6.10/include  -I/misc/sparc-sun-solaris2.10/include  -Wall -O3 -I/misc/sparc-sun-solaris2.10/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-logging.o -MD -MP -MF ".deps/assuan-logging.Tpo" -c -o assuan-logging.o assuan-logging.c; \
> then mv -f ".deps/assuan-logging.Tpo" ".deps/assuan-logging.Po"; else rm -f ".deps/assuan-logging.Tpo"; exit 1; fi
> assuan-domain-connect.c: In function 'domain_reader':
> assuan-domain-connect.c:118: error: 'struct msghdr' has no member named 'msg_control'
> assuan-domain-connect.c:119: error: 'struct msghdr' has no member named 'msg_controllen'
> assuan-domain-connect.c:139: error: 'struct msghdr' has no member named 'msg_flags'
> assuan-domain-connect.c:171: error: 'struct msghdr' has no member named 'msg_control'
> assuan-domain-connect.c:172: error: 'struct msghdr' has no member named 'msg_controllen'
> assuan-domain-connect.c:195: error: 'struct msghdr' has no member named 'msg_controllen'
> assuan-domain-connect.c:210: warning: implicit declaration of function 'CMSG_DATA'
> assuan-domain-connect.c: In function 'domain_writer':
> assuan-domain-connect.c:257: error: 'struct msghdr' has no member named 'msg_control'
> assuan-domain-connect.c:258: error: 'struct msghdr' has no member named 'msg_controllen'
> assuan-domain-connect.c: In function 'domain_sendfd':
> assuan-domain-connect.c:299: error: 'struct msghdr' has no member named 'msg_control'
> assuan-domain-connect.c:300: error: 'struct msghdr' has no member named 'msg_controllen'
> make[3]: *** [assuan-domain-connect.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory `/tmp/libassuan-0.6.10/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/libassuan-0.6.10/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/libassuan-0.6.10'
> make: *** [all] Error 2
> ===
> 
> the same problem was found some days ;-) ago in wine:
> http://www.winehq.org/pipermail/wine-patches/2002-May/002436.html
> 
> unfort i am in a hurry and i cannot write a patch (yet).
> 
> rds, niki


-- 
Niki W. Waibel
System Administrator
NewLogic - A Wipro Company




The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libassuan-0.6.10.nww.patch.gz
Type: application/octet-stream
Size: 17200 bytes
Desc: not available
Url : /pipermail/attachments/20060609/1ada8587/libassuan-0.6.10.nww.patch-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libassuan-0.6.10.nww-wo-autoconf.patch.gz
Type: application/octet-stream
Size: 1585 bytes
Desc: not available
Url : /pipermail/attachments/20060609/1ada8587/libassuan-0.6.10.nww-wo-autoconf.patch-0001.obj


More information about the Gnupg-devel mailing list