Skip site navigation (1) Skip section navigation (2)

undefined references

From: "Morin, Marc-André" <Marc-Andre(dot)Morin(at)drdc-rddc(dot)gc(dot)ca>
To: "'pgsql-ports(at)postgresql(dot)org'" <pgsql-ports(at)postgresql(dot)org>
Subject: undefined references
Date: 2003-03-26 19:58:33
Message-ID: 85F883EB8B41D61181C80002A541DB96017029A0@valcartierex.drev.dnd.ca (view raw or flat)
Thread:
Lists: pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Marc-Andre Morin
marc-andre(dot)morin(at)drdc-rddc(dot)gc(dot)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

Next:From: Brandon McMurrayDate: 2003-03-27 16:16:10
Subject: Compile of pgsql v7.1.3 fails on Red Hat 8.0
Previous:From: Jari VuoksenrantaDate: 2003-03-26 00:19:29
Subject: pg 731-win32 changes cygwin root dir

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group