Steve Singer ssinger at ca.afilias.info
Tue Aug 26 11:53:42 PDT 2014
On 08/26/2014 01:49 AM, Sandeep Thakkar wrote:
> Yes, the patch works fine. Thanks.
>

What I don't understand is why the configure test wants the revised 
order (common before pgport0 but slonik compiles fine -lpgport -lpgcommon



>
> On Mon, Aug 25, 2014 at 7:11 PM, Steve Singer <ssinger at ca.afilias.info
> <mailto:ssinger at ca.afilias.info>> wrote:
>
>     On 08/25/2014 03:35 AM, Sandeep Thakkar wrote:
>
>         Hi
>
>         While building Slony1-2.2.3 tarball on Linux against PG9.4, I
>         observed
>         that the configure failed for the following reason:-
>
>
>
>     Does this patch fix things?  (You will have to run autoconf after
>     applying it)
>
>
>         --
>         configure:5703: checking for pgport
>         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 >&5
>         configure:5729: $? = 0
>         configure:5731: result: yes
>         configure:5763: *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* >&5
>
>         /mnt/hgfs/pginstaller/server/__staging/linux-x64/lib//__libpgcommon.a(exec.o):
>         In function `resolve_symlinks':
>         exec.c:(.text+0x1a6): undefined reference to `last_dir_separator'
>         exec.c:(.text+0x1f5): undefined reference to `strlcpy'
>         exec.c:(.text+0x219): undefined reference to `join_path_components'
>         exec.c:(.text+0x221): undefined reference to `canonicalize_path'
>         /mnt/hgfs/pginstaller/server/__staging/linux-x64/lib//__libpgcommon.a(exec.o):
>         In function `find_my_exec':
>         exec.c:(.text+0x36d): undefined reference to `first_dir_separator'
>         exec.c:(.text+0x38c): undefined reference to `join_path_components'
>         exec.c:(.text+0x394): undefined reference to `canonicalize_path'
>         exec.c:(.text+0x474): undefined reference to
>         `first_path_var_separator'
>         exec.c:(.text+0x4c3): undefined reference to `join_path_components'
>         exec.c:(.text+0x4d1): undefined reference to `join_path_components'
>         exec.c:(.text+0x4d9): undefined reference to `canonicalize_path'
>         exec.c:(.text+0x552): undefined reference to `join_path_components'
>         /mnt/hgfs/pginstaller/server/__staging/linux-x64/lib//__libpgcommon.a(exec.o):
>         In function `set_pglocale_pgservice':
>         exec.c:(.text+0x620): undefined reference to `get_etc_path'
>         exec.c:(.text+0x641): undefined reference to `canonicalize_path'
>         /mnt/hgfs/pginstaller/server/__staging/linux-x64/lib//__libpgcommon.a(exec.o):
>         In function `find_other_exec':
>         exec.c:(.text+0x6c1): undefined reference to `last_dir_separator'
>         exec.c:(.text+0x6cc): undefined reference to `canonicalize_path'
>         collect2: ld returned 1 exit status
>         --
>
>         $ nm -oA server/staging/linux-x64/lib/__libpg* | grep
>         last_dir_separator
>         server/staging/linux-x64/lib/__libpgcommon.a:exec.o:
>               U
>         last_dir_separator
>         server/staging/linux-x64/lib/__libpgport.a:path.o:__0000000000000070
>         T
>         last_dir_separator
>
>         So, I'm wondering why do we see undefined symbol even though
>         pgport lib
>         is  included in the linking
>
>         --
>         Sandeep Thakkar
>
>
>
>         _________________________________________________
>         Slony1-bugs mailing list
>         Slony1-bugs at lists.slony.info <mailto:Slony1-bugs at lists.slony.info>
>         http://lists.slony.info/__mailman/listinfo/slony1-bugs
>         <http://lists.slony.info/mailman/listinfo/slony1-bugs>
>
>
>
>
>
> --
> Sandeep Thakkar
>



More information about the Slony1-bugs mailing list