Opened 13 years ago

Closed 13 years ago

#1741 closed defect (fixed)

Build error --with-gui, gtk problem?

Reported by: havatv Owned by: mcayland
Priority: medium Milestone: PostGIS 2.0.0
Component: utils/loader-dumper Version: 2.0.x
Keywords: gtk, link, gui, build, make Cc: havatv

Description

I am on Debian Lenny, trying to build 2.0.0rc1.

Building goes fine without --with-gui, but I get errors when using --with-gui. Here is my configure (apparantly no complaints from configure):

./configure --with-raster --with-topology --with-gui --with-pgconfig=/usr/local/pgsql/91/bin/pg_config --with-geosconfig=/usr/local/bin/geos-config

Output that seems relevant for GUI:

GUI: Build requested, checking for dependencies (GKT+2.0)
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.8.0... yes (version 2.12.12)

When running make, error message is:

libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o shp2pgsql-core.o shp2pgsql-gui.o pgsql2shp-core.o -o .libs/shp2pgsql-gui ../liblwgeom/.libs/liblwgeom.so -L/usr/local/lib 
/usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so /usr/local/lib/libproj.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/local/lib/libiconv.so -L/usr/local/pgsql/91/lib -lpq
shp2pgsql-gui.o: In function `pgui_create_progress_dialog':
/home/havatv/src/postgis/postgis-2.0.0rc1/loader/shp2pgsql-gui.c:2614: undefined reference to `gtk_dialog_get_content_area'
shp2pgsql-gui.o: In function `pgui_create_tablechooser_dialog':
/home/havatv/src/postgis/postgis-2.0.0rc1/loader/shp2pgsql-gui.c:2789: undefined reference to `gtk_dialog_get_content_area'
collect2: ld returned 1 exit status
make[1]: *** [shp2pgsql-gui] Error 1
make[1]: Leaving directory `/home/havatv/src/postgis/postgis-2.0.0rc1/loader'
make: *** [all] Error 1

Change History (2)

comment:1 by mcayland, 13 years ago

Component: build/upgrade/installloader/dumper
Owner: changed from strk to mcayland

Hmmm… it seems that gtk_dialog_get_content_area() was only introduced with GTK ≥ 2.14. Let me see if there is a workaround for this.

comment:2 by mcayland, 13 years ago

Resolution: fixed
Status: newclosed

Okay - there should be a workaround for this in SVN trunk at r9582, or alternatively you can wait for RC2.

Note: See TracTickets for help on using tickets.