Serge, You probably need to #include <sys/ioccom.h> which defines _IOR on Solaris:
#define _IOR(x, y, t) \ ((int)((uint32_t) \ (IOC_OUT|(((sizeof (t))&IOCPARM_MASK)<<16)|(x<<8)|y))) without this defined you get both errors when compiling the code. Good Luck, John Serge wrote: > Hi Doug and Albert, > > Thank's to you both for your replies ! > > > 1) Compiling via SFEbinutils, etc. : > > - the configure script runs as well after removing -j$CPUS in the spec file ; > - after that, binutils is compiled, except in /gprof : the three files at the > end of the Makefile list, flat_bl.o, bsd_callg_bl.o and fsf_callg_bl.o for a > reason are no builded. No error message in the .log, except of course that > they aren't present for the link. > > 2) Compiling directly alsa-lib (same version that SFEalsa-lib) with > Sunstudio11 (all patches manually applied) : > > "../../include/sound/asound.h", line 165: warning: implicit function > declaration: _IOR > "../../include/sound/asound.h", line 165: syntax error before or at: int > > The problem is here (asound.h) : > > enum { > SNDRV_HWDEP_IOCTL_PVERSION = _IOR ('H', 0x00, int), > SNDRV_HWDEP_IOCTL_INFO = _IOR ('H', 0x01, struct sndrv_hwdep_info), > SNDRV_HWDEP_IOCTL_DSP_STATUS = _IOR('H', 0x02, struct > sndrv_hwdep_dsp_status), > SNDRV_HWDEP_IOCTL_DSP_LOAD = _IOW('H', 0x03, struct > sndrv_hwdep_dsp_image) > }; > > - with gcc (3 or 4) i get also a "syntax error", without more precision. > > I made several tries to modify these _IOR declarations, but without success. > > Best regards, > > Sergio > > > This message posted from opensolaris.org > _______________________________________________ > desktop-discuss mailing list > desktop-discuss at opensolaris.org