<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">While building Slony1-2.2.3 tarball on Linux against PG9.4, I observed that the configure failed for the following reason:-</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="font-family:arial,sans-serif;font-size:13px">--</span><div style="font-family:arial,sans-serif;font-size:13px"><div>configure:5703: checking for pgport</div>
<div>configure:5729: gcc -o conftest -g -O2   -I/mnt/hgfs/pginstaller/server/staging/linux-x64/include/postgresql/server/  -L/mnt/hgfs/pginstaller/server/staging/linux-x64/lib/ conftest.c  -lpgcommon &gt;&amp;5</div><div>
configure:5729: $? = 0</div><div>configure:5731: result: yes</div><div>configure:5763: <b>gcc -o conftest -g -O2   -I/mnt/hgfs/pginstaller/server/staging/linux-x64/include/postgresql/server/  -L/mnt/hgfs/pginstaller/server/staging/linux-x64/lib/ conftest.c  -lpgport  -lpgcommon</b> &gt;&amp;5</div>
<div>/mnt/hgfs/pginstaller/server/staging/linux-x64/lib//libpgcommon.a(exec.o): In function `resolve_symlinks&#39;:</div><div>exec.c:(.text+0x1a6): undefined reference to `last_dir_separator&#39;</div><div>exec.c:(.text+0x1f5): undefined reference to `strlcpy&#39;</div>
<div>exec.c:(.text+0x219): undefined reference to `join_path_components&#39;</div><div>exec.c:(.text+0x221): undefined reference to `canonicalize_path&#39;</div><div>/mnt/hgfs/pginstaller/server/staging/linux-x64/lib//libpgcommon.a(exec.o): In function `find_my_exec&#39;:</div>
<div>exec.c:(.text+0x36d): undefined reference to `first_dir_separator&#39;</div><div>exec.c:(.text+0x38c): undefined reference to `join_path_components&#39;</div><div>exec.c:(.text+0x394): undefined reference to `canonicalize_path&#39;</div>
<div>exec.c:(.text+0x474): undefined reference to `first_path_var_separator&#39;</div><div>exec.c:(.text+0x4c3): undefined reference to `join_path_components&#39;</div><div>exec.c:(.text+0x4d1): undefined reference to `join_path_components&#39;</div>
<div>exec.c:(.text+0x4d9): undefined reference to `canonicalize_path&#39;</div><div>exec.c:(.text+0x552): undefined reference to `join_path_components&#39;</div><div>/mnt/hgfs/pginstaller/server/staging/linux-x64/lib//libpgcommon.a(exec.o): In function `set_pglocale_pgservice&#39;:</div>
<div>exec.c:(.text+0x620): undefined reference to `get_etc_path&#39;</div><div>exec.c:(.text+0x641): undefined reference to `canonicalize_path&#39;</div><div>/mnt/hgfs/pginstaller/server/staging/linux-x64/lib//libpgcommon.a(exec.o): In function `find_other_exec&#39;:</div>
<div>exec.c:(.text+0x6c1): undefined reference to `last_dir_separator&#39;</div><div>exec.c:(.text+0x6cc): undefined reference to `canonicalize_path&#39;</div><div>collect2: ld returned 1 exit status</div><div>--</div><div>
<br></div><div><div>$ nm -oA server/staging/linux-x64/lib/libpg* | grep last_dir_separator</div><div>server/staging/linux-x64/lib/libpgcommon.a:exec.o:                 U last_dir_separator</div><div>server/staging/linux-x64/lib/libpgport.a:path.o:0000000000000070 T last_dir_separator</div>
</div><div><br></div><div>So, I&#39;m wondering why do we see undefined symbol even though pgport lib is  included in the linking </div></div><div><br></div>-- <br><div dir="ltr">Sandeep Thakkar<div><br></div></div>
</div>