Steve Singer ssinger at ca.afilias.info
Mon Aug 25 06:41:40 PDT 2014
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
> http://lists.slony.info/mailman/listinfo/slony1-bugs
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgport_order.diff
Type: text/x-patch
Size: 901 bytes
Desc: not available
Url : http://lists.slony.info/pipermail/slony1-bugs/attachments/20140825/cc25e6bd/attachment.bin 


More information about the Slony1-bugs mailing list