Question : INSTALL - SQUID  getting "pam_auth.c:133: warning: initialization from incompatible pointer type"

Dear experts -

               I have been trying to install squid 3.1.3 on Solaris 10 and when I do the gmake , I am running into the following error.
pam_auth.c:133: warning: initialization from incompatible pointer type
gmake[3]: *** [pam_auth.o] Error 1
gmake[3]: Leaving directory `/export/home/squid/software/squid-3.1.3/helpers/basic_auth/PAM'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/export/home/squid/software/squid-3.1.3/helpers/basic_auth'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/squid/software/squid-3.1.3/helpers'
gmake: *** [all-recursive] Error 1

Can you please help me to resolve this issue ?

Regards

Answer : INSTALL - SQUID  getting "pam_auth.c:133: warning: initialization from incompatible pointer type"

You are not just trying to install squid, you are clearly trying to build it as well. Because you are building under Solaris, some warnings are likely owing to differences in header file from Linux. I suspect the gcc line leading up to the above contained the option -Werror (treat warnings as errors). You probably have to fix this yourself - examine pam_auth.c at line 133 - what is being initialised? What is its type? Can you see how to change it so it will compile clean? It depends how close what you have is to what pam_auth.c expects. If it's a change in signedness or even better just a const give or take, it's probably OK to patch the C code to agree with what the system provides.
The other thing you could try is removing -Werror. Warnings can point to an actual problem, but they don't always. Find -Werror in the various Makefiles and remove. Or find in the various Makefile.ins and remove, then re-run configure
Random Solutions  
 
programming4us programming4us