Re: Build on Solaris

DINH Viet Hoa <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On 23 Jul 2005, at 19:06, Alex S Moore wrote:

> I am trying to build libetpan 0.38 on Solaris 8 using Sun's  
> compiler. However, I am getting the following error and do not know  
> how to fix it.  Can someone create a patch to fix this?
>
> ---
>  cc -c -I../../include -I../.. -I. -fast -xarch=v8 -I/opt/csw/bdb4/ 
> include -I/opt/csw/include -D_REENTRANT -DHAVE_CONFIG_H  
> mailstream.c  -KPIC -DPIC -o .libs/mailstream.o
> "mailstream.c", line 402: syntax error before or at: .
> cc: acomp failed for mailstream.c
> *** Error code 1
> make: Fatal error: Command failed for target `mailstream.lo'
> Current working directory /export/medusa/asmoore/build/ 
> libetpan-0.38/src/data-types
> *** Error code 1
> ---

You will see much problems like this. They will be surrounded by such  
defines.

#ifdef _MSC_VER
#else
#endif

Just replace "#ifdef _MSC_VER" with "#if 1".

You may try to use gcc to compile.
However, I'll try to find write some fix for Sun Compiler.

Whenever there is constant structures defined this way, you may use  
_MSC_VER alternative.
And tell about the result.

-- 
DINH Viet Hoa



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.