undefined references - Mailing list pgsql-ports
From | Morin, Marc-André |
---|---|
Subject | undefined references |
Date | |
Msg-id | 85F883EB8B41D61181C80002A541DB96017029A0@valcartierex.drev.dnd.ca Whole thread Raw |
List | pgsql-ports |
============================================================================ POSTGRESQL BUG REPORT TEMPLATE ============================================================================ Marc-Andre Morin marc-andre.morin@drdc-rddc.gc.ca System Configuration --------------------- Architecture (example: Intel Pentium) : Dell Precision 420 Operating System (example: Linux 2.0.26 ELF) : W2K Pro PostgreSQL version (example: PostgreSQL-7.3.2): PostgreSQL-7.3.2 Compiler used (example: gcc 2.95.2) : gcc version 3.2 20020927 (prerelease) Please enter a FULL description of your problem: ------------------------------------------------ I tried to compile PostGIS version 0.7.4 with make command. I got the following error: $ make gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_debug.o postgis_debug.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_ops.o postgis_ops.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_fn.o postgis_fn.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_inout.o postgis_inout.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_proj.o postgis_proj.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_chip.o postgis_chip.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_transform.o postgis_transform.c postgis_transform.c: In function `transform_geom': postgis_transform.c:437: warning: control reaches end of non-void function gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_gist_72.o postgis_gist_72.c gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -I. -I../../src/in clude -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73 -DUSE_STATS -c -o postgis_estimate.o postgis_estimate.c dlltool --export-all --output-def postgis.def postgis_debug.o postgis_ops.o post gis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o postg is_gist_72.o postgis_estimate.o dllwrap -o postgis.dll --dllname postgis.dll --def postgis.def postgis_debug.o p ostgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_ transform.o postgis_gist_72.o postgis_estimate.o ../../src/utils/dllinit.o -L/us r/local/lib -L/usr/local/lib ../../src/backend/libpostgres.a fu000001.o(.idata$3+0xc): undefined reference to `_libpostgres_a_iname' nmth000000.o(.idata$4+0x0): undefined reference to `__nm__cpu_index_tuple_cost' Info: resolving _cpu_index_tuple_cost by linking to __imp__cpu_index_tuple_cost (auto-import) collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 make: *** [libpostgis.a] Error 1 Please describe a way to repeat the problem. Please try to provide a concise reproducible example, if at all possible: ---------------------------------------------------------------------- If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- I had to make the following change in $postgresql/src/include/optimizer/cost.h: //extern double cpu_index_tuple_cost; extern DLLIMPORT double cpu_index_tuple_cost; All works fine since I made that change!
pgsql-ports by date: