[postgis-users] Undefined references

Paul Ramsey pramsey at refractions.net
Mon Mar 24 11:14:52 PST 2003


I thought your problem sounded familiar. It looks like the cygwin 
compile requires that the static pgsql libraries be referenced during 
the linking phase of postgis. Anyhow, the end of the relevant thread is 
referenced here:

http://postgis.refractions.net/pipermail/postgis-users/2003-February/002128.html

Paul

Marc-André Morin wrote:
> Yes, I followed instructions from your Windows install guide.
> And as mentionned, I installed cygwin (binaries) and PostgreSQL.  For postgresql, I downloaded sources and launched the ./configure and teh make functions.
> All as been done successfully...
> 
> So, I put de package of PostGIS in the contrib directory of postgresql...  And when I launched the make function, I got these undefined references...
> 
> What could I do?
> 
> 
> ----- Original Message -----
> From: Paul Ramsey <pramsey at refractions.net>
> Date: Mon, 24 Mar 2003 10:23:55 -0800
> To: PostGIS Users Discussion <postgis-users at postgis.refractions.net>
> Subject: Re: [postgis-users] Undefined references
> 
> 
>>Marc-Andr?,
>>   The CygWin install can be tricky, and the 7.3 install has been 
>>noticably hard for people.  Have you followed the instructions from the 
>>Windows install guide at http://www.gasai.com/gisapps/WindowsHowTo.html 
>>?  I am not sure (Norman could confirm) whether or not installing 
>>against a tarbal is preferable to installing against the cygwin src package.
>>Yours,
>>Paul
>>
>>
>>Marc-Andr? Morin wrote:
>>
>>>Hi Kolks,
>>>
>>>I'm a newbie with PostGIS and I'm trying to set up it.
>>>Fist of all, I installed Cygwin 2.249.2.5 and configured PostgreSQL 7.3-2 (bin and src) on W2K.
>>>
>>>All work without errors.
>>>
>>>Now, I try to install PostGIS 0.7.4
>>>
>>>Here is what I got when I called make:
>>>
>>>$ make
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_debug.o postgis_debug.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_ops.o postgis_ops.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_fn.o postgis_fn.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_inout.o postgis_inout.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_proj.o postgis_proj.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -c -o postgis_chip.o postgis_chip.c
>>>gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -g -I. -I../../src/include  -DFRONTEND -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=73  -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  -c -o postg
>>>is_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  -c -o postg
>>>is_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
>>>postgis_debug.o(.text+0x2e0): In function `mem_size':
>>>/cygdrive/c/postgresql/contrib/postgis-0.7.4/postgis_debug.c:101: undefined refe
>>>stgis_estimate.c:743: undefined reference to `_make_ands_explicit'
>>>postgis_estimate.o(.text+0x1398):/cygdrive/c/postgresql/contrib/postgis-0.7.4/po
>>>stgis_estimate.c:745: undefined reference to `_canonicalize_qual'
>>>collect2: ld returned 1 exit status
>>>dllwrap: gcc exited with status 1
>>>make: *** [libpostgis.a] Error 1
>>>
>>>Does anybody could help me?
>>>
>>>Best regards,
>>>
>>>Marc-Andre
>>
>>
>>-- 
>>       __
>>      /
>>      | Paul Ramsey
>>      | Refractions Research
>>      | Email: pramsey at refractions.net
>>      | Phone: (250) 885-0632
>>      \_
>>
>>
>>_______________________________________________
>>postgis-users mailing list
>>postgis-users at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> 


-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the postgis-users mailing list