Hello,<div><br></div><div><div>I am trying to enable check_pgsql on OS X, and I can't get the configure script to recognize my postgresql 9.0 install even though I've hacked my configure script to have the correct paths.</div>
<div><br></div><div>But before I get too deep into that, I tried to compile check_pgsql manually by:</div><div><br></div><div>cd nagios-plugins-1.4.15/plugins</div><div><br></div><div>make check_pgsql LDFLAGS="-L/opt/local/lib -L/opt/local/lib/postgresql90" CPPFLAGS="-I. -I/opt/local/include -I/opt/local/include/postgresql90 -I../gl -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/pccard -I../lib" CFLAGS="-I. -I/opt/local/include -I/opt/local/include/postgresql90"</div>
<div><br></div><div>When I do that I get this:</div><div><br></div><div>cc -I. -I/opt/local/include -I/opt/local/include/postgresql90 -I. -I/opt/local/include -I/opt/local/include/postgresql90 -I../gl -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/pccard -I../lib -L/opt/local/lib -L/opt/local/lib/postgresql90 check_pgsql.c -o check_pgsql</div>
<div>In file included from check_pgsql.c:36:</div><div>utils.h:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timeout_alarm_handler’</div><div>utils.h:64: error: redefinition of ‘struct timeval’</div>
<div>utils.h:71: warning: ‘struct timezone’ declared inside parameter list</div><div>utils.h:71: warning: its scope is only this definition or declaration, which is probably not what you want</div><div>In file included from check_pgsql.c:38:</div>
<div>netutils.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘socket_timeout_alarm_handler’</div><div>check_pgsql.c: In function ‘main’:</div><div>check_pgsql.c:146: error: ‘LC_ALL’ undeclared (first use in this function)</div>
<div>check_pgsql.c:146: error: (Each undeclared identifier is reported only once</div><div>check_pgsql.c:146: error: for each function it appears in.)</div><div>check_pgsql.c:159: error: ‘timeout_alarm_handler’ undeclared (first use in this function)</div>
<div>check_pgsql.c: In function ‘process_arguments’:</div><div>check_pgsql.c:246: error: ‘NP_VERSION’ undeclared (first use in this function)</div><div>check_pgsql.c: In function ‘print_help’:</div><div>check_pgsql.c:422: error: ‘NP_VERSION’ undeclared (first use in this function)</div>
<div>make: *** [check_pgsql] Error 1</div><div><br></div><div>Does anyone know what might be causing the build problem? Thanks.</div><div><br></div><div>Mark</div></div>