Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2014 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/93c03c07e4e8b0030129 to your computer and use it in GitHub Desktop.
Save anonymous/93c03c07e4e8b0030129 to your computer and use it in GitHub Desktop.
configure:20025: gcc -o conftest -I/usr/local/include conftest.c -lgdal -L/usr/local/lib -lgdal >&5
/usr/bin/ld: warning: libpq.so.5, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libgdal.so: undefined reference to `PQresultStatus'
/usr/local/lib/libgdal.so: undefined reference to `PQgetvalue'
/usr/local/lib/libgdal.so: undefined reference to `PQclear'
/usr/local/lib/libgdal.so: undefined reference to `PQescapeStringConn'
/usr/local/lib/libgdal.so: undefined reference to `PQputCopyData'
/usr/local/lib/libgdal.so: undefined reference to `PQfmod'
/usr/local/lib/libgdal.so: undefined reference to `PQresultErrorMessage'
/usr/local/lib/libgdal.so: undefined reference to `PQexec'
/usr/local/lib/libgdal.so: undefined reference to `PQftable'
/usr/local/lib/libgdal.so: undefined reference to `lo_creat'
/usr/local/lib/libgdal.so: undefined reference to `PQhost'
/usr/local/lib/libgdal.so: undefined reference to `PQsetClientEncoding'
/usr/local/lib/libgdal.so: undefined reference to `PQgetisnull'
/usr/local/lib/libgdal.so: undefined reference to `PQerrorMessage'
/usr/local/lib/libgdal.so: undefined reference to `PQport'
/usr/local/lib/libgdal.so: undefined reference to `lo_open'
/usr/local/lib/libgdal.so: undefined reference to `PQputCopyEnd'
/usr/local/lib/libgdal.so: undefined reference to `PQftype'
/usr/local/lib/libgdal.so: undefined reference to `PQpass'
/usr/local/lib/libgdal.so: undefined reference to `PQgetResult'
/usr/local/lib/libgdal.so: undefined reference to `lo_close'
/usr/local/lib/libgdal.so: undefined reference to `PQexecParams'
/usr/local/lib/libgdal.so: undefined reference to `PQfname'
/usr/local/lib/libgdal.so: undefined reference to `PQconnectdb'
/usr/local/lib/libgdal.so: undefined reference to `PQstatus'
/usr/local/lib/libgdal.so: undefined reference to `PQntuples'
/usr/local/lib/libgdal.so: undefined reference to `PQgetlength'
/usr/local/lib/libgdal.so: undefined reference to `PQuser'
/usr/local/lib/libgdal.so: undefined reference to `PQfformat'
/usr/local/lib/libgdal.so: undefined reference to `lo_read'
/usr/local/lib/libgdal.so: undefined reference to `PQsetNoticeProcessor'
/usr/local/lib/libgdal.so: undefined reference to `PQfinish'
/usr/local/lib/libgdal.so: undefined reference to `lo_write'
/usr/local/lib/libgdal.so: undefined reference to `PQnfields'
collect2: ld returned 1 exit status
configure:20025: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define POSTGIS_MAJOR_VERSION "2"
| #define POSTGIS_MINOR_VERSION "1"
| #define POSTGIS_MICRO_VERSION "3"
| #define HAVE_IEEEFP_H 0
| #define HAVE_TERMIOS_H 1
| #define HAVE_VASPRINTF 1
| #define HAVE_ASPRINTF 1
| #define HAVE_FSEEKO 1
| #define HAVE_ICONV 1
| #define PGSQL_LOCALEDIR "/usr/pgsql-9.2/share/locale"
| #define HAVE_LIBPQ 1
| #define POSTGIS_PGSQL_VERSION 92
| #define HAVE_LIBXML_TREE_H 1
| #define HAVE_LIBXML_PARSER_H 1
| #define HAVE_LIBXML_XPATH_H 1
| #define HAVE_LIBXML_XPATHINTERNALS_H 1
| #define HAVE_LIBXML2 1
| #define POSTGIS_LIBXML2_VERSION "2.9.1"
| #define HAVE_LIBGEOS_C 1
| #define POSTGIS_GEOS_VERSION 34
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define POSTGIS_PROJ_VERSION 48
| #define HAVE_LIBPROJ 1
| #define HAVE_LIBJSON 1
| #define POSTGIS_DEBUG_LEVEL 0
| #define POSTGIS_PROFILE 0
| #define POSTGIS_VERSION "2.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"
| #define POSTGIS_LIB_VERSION "2.1.3"
| #define POSTGIS_BUILD_DATE "2014-06-20 00:21:47"
| #define POSTGIS_SCRIPTS_VERSION "2.1.3"
| #define POSTGIS_AUTOCACHE_BBOX 1
| #define POSTGIS_USE_STATS 1
| #define POSTGIS_RASTER_MAJOR_VERSION "0"
| #define POSTGIS_RASTER_MINOR_VERSION "1"
| #define POSTGIS_RASTER_MICRO_VERSION "6d"
| #define POSTGIS_RASTER_VERSION "0.1"
| #define POSTGIS_RASTER_LIB_VERSION "0.1.6d"
| #define POSTGIS_RASTER_BUILD_DATE "2014-06-20 00:21:47"
| #define POSTGIS_RASTER_SCRIPTS_VERSION "0.1.6d"
| #define POSTGIS_RASTER_WARN_ON_TRUNCATION 0
| #define POSTGIS_GDAL_VERSION 110
| #define HAVE_GDAL_H 1
| #define HAVE_OGR_API_H 1
| #define HAVE_CPL_CONV_H 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char GDALAllRegister ();
| int
| main ()
| {
| return GDALAllRegister ();
| ;
| return 0;
| }
configure:20042: result: no
configure:20049: error: could not find GDAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment