[pgpool-hackers: 3595] Re: pgPool build error on Fedora 32
Tatsuo Ishii
ishii at sraoss.co.jp
Sat Apr 25 17:00:19 JST 2020
> /usr/bin/ld: protocol/child.o:(.bss+0x460): multiple definition of `remote_ps_data'; main/health_check.o:(.bss+0x0): first defined here
> /usr/bin/ld: streaming_replication/pool_worker_child.o:(.bss+0x0): multiple definition of `remote_ps_data'; main/health_check.o:(.bss+0x0): first defined here
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:768: pgpool] Error 1
> =================
I have tried with gcc-10 package on Ubuntu 18 box and succeeded in
compiling/linking Pgpool-II 4.1.1. Does Fedora 32's gcc 10 have
special configuration?
/bin/bash ../libtool --tag=CC --mode=link gcc-10 -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-format-truncation -fno-strict-aliasing -rpath /usr/local/pgsql/lib -rpath /usr/local/lib -o pgpool main/main.o main/pool_globals.o main/pgpool_main.o main/health_check.o config/pool_config.o config/pool_config_variables.o pcp_con/pcp_child.o pcp_con/pcp_worker.o pcp_con/recovery.o auth/md5.o auth/pool_auth.o auth/pool_passwd.o auth/pool_hba.o auth/auth-scram.o protocol/pool_proto2.o protocol/child.o protocol/pool_process_query.o protocol/pool_connection_pool.o protocol/pool_proto_modules.o query_cache/pool_memqcache.o protocol/CommandComplete.o context/pool_session_context.o context/pool_process_context.o context/pool_query_context.o streaming_replication/pool_worker_child.o rewrite/pool_timestamp.o rewrite/pool_lobj.o utils/pool_select_walker.o utils/strlcpy.o utils/psprintf.o utils/pool_params.o utils/ps_status.o utils/pool_shmem.o utils/pool_sema.o utils/pool_signal.o utils/pool_path.o utils/pool_ip.o utils/pool_relcache.o utils/pool_process_reporting.o utils/pool_ssl.o utils/pool_stream.o utils/getopt_long.o utils/mmgr/mcxt.o utils/mmgr/aset.o utils/error/elog.o utils/error/assert.o utils/pcp/pcp_stream.o utils/regex_array.o utils/json_writer.o utils/json.o utils/scram-common.o utils/base64.o utils/sha2.o utils/ssl_utils.o utils/statistics.o -L/usr/local/pgsql/lib -lpq parser/libsql-parser.a parser/nodes.o watchdog/lib-watchdog.a -lpthread -lcrypt -lresolv -lnsl -lm
libtool: link: gcc-10 -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-format-truncation -fno-strict-aliasing -o pgpool main/main.o main/pool_globals.o main/pgpool_main.o main/health_check.o config/pool_config.o config/pool_config_variables.o pcp_con/pcp_child.o pcp_con/pcp_worker.o pcp_con/recovery.o auth/md5.o auth/pool_auth.o auth/pool_passwd.o auth/pool_hba.o auth/auth-scram.o protocol/pool_proto2.o protocol/child.o protocol/pool_process_query.o protocol/pool_connection_pool.o protocol/pool_proto_modules.o query_cache/pool_memqcache.o protocol/CommandComplete.o context/pool_session_context.o context/pool_process_context.o context/pool_query_context.o streaming_replication/pool_worker_child.o rewrite/pool_timestamp.o rewrite/pool_lobj.o utils/pool_select_walker.o utils/strlcpy.o utils/psprintf.o utils/pool_params.o utils/ps_status.o utils/pool_shmem.o utils/pool_sema.o utils/pool_signal.o utils/pool_path.o utils/pool_ip.o utils/pool_relcache.o utils/pool_process_reporting.o utils/pool_ssl.o utils/pool_stream.o utils/getopt_long.o utils/mmgr/mcxt.o utils/mmgr/aset.o utils/error/elog.o utils/error/assert.o utils/pcp/pcp_stream.o utils/regex_array.o utils/json_writer.o utils/json.o utils/scram-common.o utils/base64.o utils/sha2.o utils/ssl_utils.o utils/statistics.o parser/nodes.o -L/usr/local/pgsql/lib -lpq parser/libsql-parser.a watchdog/lib-watchdog.a -lpthread -lcrypt -lresolv -lnsl -lm -Wl,-rpath -Wl,/usr/local/pgsql/lib -Wl,-rpath -Wl,/usr/local/lib
make[2]: Leaving directory '/home/t-ishii/work/Pgpool-II/4.1.1/pgpool-II-4.1.1/src'
:
:
make[1]: Leaving directory '/home/t-ishii/work/Pgpool-II/4.1.1/pgpool-II-4.1.1/src'
make[1]: Entering directory '/home/t-ishii/work/Pgpool-II/4.1.1/pgpool-II-4.1.1'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/t-ishii/work/Pgpool-II/4.1.1/pgpool-II-4.1.1'
$ gcc-10 -v
Using built-in specs.
COLLECT_GCC=gcc-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 10-20200416-0ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,amdgcn-amdhsa,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200416 (experimental) [master revision 3c3f12e2a76:dcee354ce56:44b326839d864fc10c459916abcc97f35a9ac3de] (Ubuntu 10-20200416-0ubuntu1~18.04)
More information about the pgpool-hackers
mailing list