Mon Jun 30 01:36:04 PDT 2014
- Previous message: [Slony1-bugs] [Bug 343] Errors in config file cause subsequent options to be ignored.
- Next message: [Slony1-bugs] [Bug 344] Configure fails to find libpgport
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://www.slony.info/bugzilla/show_bug.cgi?id=344 Summary: Configure fails to find libpgport Product: Slony-I Version: devel Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: low Component: other scripts AssignedTo: slony1-bugs at lists.slony.info ReportedBy: hamid.quddus at enterprisedb.com CC: slony1-bugs at lists.slony.info Estimated Hours: 0.0 Configure fails with the following error: configure: error: "pgport was not found. build without --with-pgport=yes to disable" Looking at the configure's conftest for libpgport test, I see that the libraries libpgcommon and libpgport are being linked in the wrong order. This would cause configure to fail for some versions of gcc; e.g. in my case on CentOS 5.x 32-bit it fails with the above error. =========================== [root at blinux ~]# uname -a Linux blinux 2.6.18-371.8.1.el5 #1 SMP Thu Apr 24 18:23:07 EDT 2014 i686 i686 i386 GNU/Linux [root at blinux ~]# gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =========================== To fix this, all we need to do is correct the order of linking for libpgport and libpgcommon. Following is the patch for configure: =========================== --- a/configure +++ b/configure @@ -5741,7 +5741,7 @@ rm -f core conftest.err conftest.$ac_objext \ if test $HAVE_PGCOMMON = 1 ; then EXTRALIBS=" -lpgcommon" fi - LIBS="$LIBS $EXTRALIBS -lpgport" + LIBS="$LIBS -lpgport $EXTRALIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ =========================== -- Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. You are the assignee for the bug.
- Previous message: [Slony1-bugs] [Bug 343] Errors in config file cause subsequent options to be ignored.
- Next message: [Slony1-bugs] [Bug 344] Configure fails to find libpgport
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-bugs mailing list