Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2005:
[Freeciv-Dev] build problems under solaris mk2
Home

[Freeciv-Dev] build problems under solaris mk2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] build problems under solaris mk2
From: Toby Dylan Hocking <tdhock@xxxxxxxxxxxxxxxx>
Date: Wed, 16 Nov 2005 21:09:10 -0800 (PST)

Hey!

Thanks for pointing me in the right direction. I had to add a bunch of "/lib" suffixes to the ends of my LD_LIBRARY_PATH entries, and I finally got the configure script to recognize GTK+2.

I'm still working on getting the entire thing built. Right now the error I'm getting is with the readline library. The configure script tells me that I need a "development" package, but I'm pretty sure what I have is good, since I just compiled another package which requires the readline library the other day. I think I have to point the compiler in the right direction so it can find my readline library, but I'm not sure what file or variable I need to edit.

If you have any ideas, please email back.

Toby Dylan Hocking
Open Computing Facility
UC Berkeley

On Wed, 16 Nov 2005, Vasco Alexandre da Silva Costa wrote:

On 11/15/05, Toby Dylan Hocking <tdhock@xxxxxxxxxxxxxxxx> wrote:
Hi guys,

I'm trying to get freeciv 2.0.7 to compile on an old solaris system, using
the attached c-shell script "buildinfo.freeciv". However, I always seem to
get linker errors like the ones reported in the attached outfile
"buildinfo.freeciv.out".

As you can see, I set CFLAGS, LDFLAGS, and LD_LIBRARY_PATH for all the
relevant libraries (note that my gtk2 is actually 2.6.7), but still your
configure script gives me errors.

Any ideas?? By the way, I have got one of the precompiled binaries to
work, but it is an older version which I'd rather not use. Also, I have
got freeciv 2.0.7 to compile with --enable-client-gtk, but the graphics
were really messed up, so that's why I'm trying with gtk2.

Hello Toby,

The gtk1 client is being deprecated, so you did well in picking gtk2.

gtk2 gets the CFLAGS, LDFLAGS, etc from the pkg-config program.

Quoting the log you attached:

==========
configure:8129: gcc -o conftest -Wall -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -DXTHREADS
-I/opt/local/X11/packages/gtk+-2.6.7/include/gtk-2.0
-I/opt/local/X11/packages/gtk+-2.6.7/lib/gtk-2.0/include
-I/opt/local/X11/packages/xfixes//include -I/usr/openwin/include
-I/opt/local/X11/packages/xcursor//include
-I/opt/local/X11/packages/xrender-0.9.0//include
-I/opt/local/X11/packages/render-0.8//include
-I/opt/local/packages/atk-1.10.1/include/atk-1.0
-I/opt/local/packages/pango-1.8.1/include/pango-1.0
-I/opt/local/X11/packages/libXft-2.1.7/include
-I/opt/local/packages/freetype-2.1.9/include/freetype2
-I/opt/local/packages/freetype-2.1.9/include
-I/opt/local/packages/fontconfig-2.3.2/include
-I/opt/local/X11/include
-I/opt/local/packages/glib-2.6.6/include/glib-2.0
-I/opt/local/packages/glib-2.6.6/lib/glib-2.0/include
-L/opt/local/gnu/packages/libiconv-1.9.2/lib
-L/opt/local/gnu/packages/readline5/lib
-L/opt/local/X11/packages/gtk2/lib -L/opt/local/packages/glib2/lib
-L/opt/local/packages/atk/lib -L/opt/local/packages/pango/lib
-L/opt/local/packages/gdk-pixbuf/lib conftest.c -R/opt/local/X11/lib
-R/usr/openwin/lib -R/opt/local/packages/freetype-2.1.9/lib
-L/opt/local/X11/packages/gtk+-2.6.7/lib -L/opt/local/X11/lib
-L/opt/local/X11/packages/xfixes//lib -L/usr/openwin/lib
-L/opt/local/X11/packages/xcursor//lib
-L/opt/local/X11/packages/xrender-0.9.0//lib
-L/opt/local/packages/atk-1.10.1/lib
-L/opt/local/packages/pango-1.8.1/lib
-L/opt/local/X11/packages/libXft-2.1.7/lib
-L/opt/local/packages/freetype-2.1.9/lib
-L/opt/local/packages/glib-2.6.6/lib -lgtk-x11-2.0 -lgdk-x11-2.0
-lXext -lXfixes -lXcursor -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0
-lXft -lfreetype -lz -lXrender -lpangox-1.0 -lX11 -lsocket -lnsl
-lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -liconv
-lz  -liconv >&5
configure:8132: $? = 0
configure:8134: ./conftest
ld.so.1: conftest: fatal: libatk-1.0.so.0: open failed: No such file
or directory
./configure: line 1: 15770 Killed                  ./conftest$ac_exeex
==========

Yes, it seems to fail at the run stage.

LD_LIBRARY_PATH, or your system library paths indeed seem to be the problem.
In Linux you can add defaults library paths to /etc/ld.so.conf, I am
unaware of how to
change these in Solaris.

Hopefully, you have managed to get it compiling by now. If not, we
will try to help the best
we can.

Good luck,
-Vasco Alexandre da Silva Costa




[Prev in Thread] Current Thread [Next in Thread]