<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:"Microsoft YaHei UI", "Microsoft YaHei", Î¢ÈíÑźÚ, SimSun, ËÎÌå, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello<br>
</p>
<p><br>
</p>
<p>&nbsp; &nbsp;&nbsp;Under the directory of pgpool,I did the patch of LDAP authentication from [pgpool-hackers:3538].</p>
<p><span style="font-size: 12pt;">The patched command which I used is,patch -p1 &lt; pgpool_ldap_auth.patch.I got pgpool_ldap_auth.patch from [pgpool-hackers:3538].</span></p>
<p>&nbsp;</p>
<p>The patched results are as follows</p>
<p>&nbsp;</p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file configure.ac</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file doc.ja/src/sgml/client-auth.sgml</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file doc/src/sgml/client-auth.sgml</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file src/auth/pool_auth.c</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing &#8203;CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file src/auth/pool_hba.c</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file src/include/auth/pool_hba.h</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file src/include/config.h.in</span></p>
<p><span style="background-color: #bebebe;">(Stripping trailing CRs from patch; use --binary to disable.)</span></p>
<p><span style="background-color: #bebebe;">patching file src/pgpool.spec</span></p>
<p><span style="background-color: #bebebe;">patch unexpectedly ends in middle of line</span></p>
<p><span style="background-color: #bebebe;">Hunk #1 succeeded at 103 with fuzz 1.</span></p>
<p>&nbsp;</p>
<p>I follow the guidelines to do next operation.<br>
</p>
<p>&nbsp;</p>
<p><span style="background-color: #bebebe;">&nbsp;$ autoheader</span></p>
<p><span style="background-color: #bebebe;">&nbsp;$ aclocal</span></p>
<p><span style="background-color: #bebebe;">&nbsp;$ automake -a -c</span></p>
<p><span style="background-color: #bebebe;">&nbsp;$ autoconf</span></p>
<p>&nbsp;</p>
<p>Then,I did&nbsp;the configure. </p>
<p>&nbsp;</p>
<p><span style="background-color: #bebebe;">./configure --prefix=/opt/pgpool_3 --with-pgsql=/opt/PG12</span></p>
<p>&nbsp;</p>
<p>Then I did&nbsp;the make operation which result in errors.</p>
<p>&nbsp;</p>
<p><span style="background-color: #bebebe;">auth/pool_hba.c:758:33: error: 'uaLDAP' undeclared (first use in this function); did you mean 'uaMD5'?</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;if (parsedline-&gt;auth_method == uaLDAP)</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^~~~~~</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uaMD5</span></p>
<p><span style="background-color: #bebebe;">auth/pool_hba.c:758:33: note: each undeclared identifier is reported only once for each function it appears in</span></p>
<p><span style="background-color: #bebebe;">auth/pool_hba.c: In function 'parse_hba_auth_opt':</span></p>
<p><span style="background-color: #bebebe;">auth/pool_hba.c:895:23: error: 'uaLDAP' undeclared (first use in this function); did you mean 'uaMD5'?</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;&nbsp;REQUIRE_AUTH_OPTION(uaLDAP, &quot;ldapurl&quot;, &quot;ldap&quot;);</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^</span></p>
<p><span style="background-color: #bebebe;">auth/pool_hba.c:320:30: note: in definition of macro 'REQUIRE_AUTH_OPTION'</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;if (hbaline-&gt;auth_method != methodval) \</span></p>
<p><span style="background-color: #bebebe;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^~~~~~~~~</span></p>
<p><span style="background-color: #bebebe;">Makefile:800: recipe for target 'auth/pool_hba.o' failed</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I also did another configure.</p>
<p><span style="background-color: #bebebe;">&nbsp;./configure --prefix=/opt/pgpool_3 --with-pgsql=/opt/PG12 --with-ldap</span></p>
<p>&nbsp;</p>
<p>Then I did the make operation which result in other errors.</p>
<p>&nbsp;</p>
<p><span style="background-color: #bebebe;">auth/pool_hba.o: In function `CheckLDAPAuth':</span></p>
<p><span style="background-color: #bebebe;">/auth/pool_hba.c:2623: undefined reference to `recv_password_packet'</span></p>
<p><span style="background-color: #bebebe;">collect2: error: ld returned 1 exit status</span></p>
<p><span style="background-color: #bebebe;">Makefile:777: recipe for target 'pgpool' failed</span></p>
<p><span style="background-color: #bebebe;">make[2]: *** [pgpool] Error 1</span></p>
<p><span style="background-color: #bebebe;">make[2]: Leaving directory '/home/zhoujianshen/pgpool-II-4.1.1/src'</span></p>
<p><span style="background-color: #bebebe;">Makefile:866: recipe for target 'all-recursive' failed</span></p>
<p><span style="background-color: #bebebe;">make[1]: *** [all-recursive] Error 1</span></p>
<p><span style="background-color: #bebebe;">make[1]: Leaving directory '/home/zhoujianshen/pgpool-II-4.1.1/src'</span></p>
<p><span style="background-color: #bebebe;">Makefile:410: recipe for target 'all-recursive' failed</span></p>
<p><span style="background-color: #bebebe;">make: *** [all-recursive] Error 1</span><br>
</p>
<p><span style="background-color: #bebebe;"><br>
</span></p>
<p><span style="background-color: #bebebe;"><br>
</span></p>
<p>Could you please help me checkout what result these errors,thanks.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><span style="color: #282828; font-family: &quot;microsoft yahei ui&quot;, &quot;microsoft yahei&quot;, Î¢ÈíÑźÚ, simsun, ËÎÌå, sans-serif; font-size: 13.3333px; background-color: #ffffff;">Thanks</span><br style="color: #282828; font-family: &quot;microsoft yahei ui&quot;, &quot;microsoft yahei&quot;, Î¢ÈíÑźÚ, simsun, ËÎÌå, sans-serif; font-size: 13.3333px; background-color: #ffffff;">
<span style="color: #282828; font-family: &quot;microsoft yahei ui&quot;, &quot;microsoft yahei&quot;, Î¢ÈíÑźÚ, simsun, ËÎÌå, sans-serif; font-size: 13.3333px; background-color: #ffffff;">Best regards</span><br style="color: #282828; font-family: &quot;microsoft yahei ui&quot;, &quot;microsoft yahei&quot;, Î¢ÈíÑźÚ, simsun, ËÎÌå, sans-serif; font-size: 13.3333px; background-color: #ffffff;">
Jianshen Zhou<br>
</p>
<p><br>
</p>
</div>
</body>
</html>