How can abiword be compiled for Solaris using gcc?
The abiword is a basic word processor which can be used in Solaris. To compile the abiword, the user can use Sun's cc and GNU gcc by following these steps ( compiling with gcc):
- The user needs to change the craible CC to gcc. He also needs to change the option -mt to pthreads
- The configuration option used is : ./configure --with-libiconv="path_of_libiconv" -with-libpng="path_of_libpng" CC=gcc
- The UT_ICONV should be set to “conts”
- There is a conflict due to the parameters (const void *, const void *); the user needs to set them to int (*dcomp) (const dirent **, const dirent **); to prevent any conflicts from occurring.
- The parameters passed on to alphasort are : int alphasort(const void *d1, const void *d2); This needs to be changed to int alphasort(const dirent **d1, const dirent **d2);
Post a Comment