Re: [gtk-vnc-devel] [patch] build fail on Solaris.
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Halton Huo <Halton Huo Sun COM>
- Cc: gtk-vnc-devel lists sourceforge net
- Subject: Re: [gtk-vnc-devel] [patch] build fail on Solaris.
- Date: Fri, 26 Oct 2007 14:21:40 +0100
On Fri, Oct 26, 2007 at 03:37:16PM +0800, Halton Huo wrote:
> Hi there,
>
> I'm trying to build gtk-vnc trunk code on Solaris, but met ld fail, see
> following error message:
>
> /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -DHAVE_CONFIG_H -I. -I..
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/sfw/include
> -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DSYSCONFDIR=
> \"/export/home/halton/work/dist/etc\" -g -c gvnc.c -KPIC -DPIC
> -o .libs/libgtk_vnc_1_0_la-gvnc.o
> "gvnc.c", line 29: cannot find include file: <endian.h>
>
> When I add -I/usr/include/ast to (where endian.h is located) to CFLAGS ,
> get another error like some symbol not found:
>
> /ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/X11/include -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/sfw/include
> -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -I../src/
> -I/usr/include/ast -o .libs/gvncviewer
> gvncviewer-gvncviewer.o ../src/.libs/libgtk-vnc-1.0.so -L/usr/X11/lib
> -lgnutls -lgtk-x11-2.0 -lgdk-x11-2.0 -lXi -lXext -lX11 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lmlib -lpangocairo-1.0 -lfontconfig -lXrandr
> -lXcomposite -lXdamage -lpango-1.0 -lcairo -lXfixes -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0 -R/export/home/halton/work/dist/lib
> -R/usr/X11/lib
> Undefined first referenced
> symbol in file
> _ast_snprintf gvncviewer-gvncviewer.o
> _ast_printf gvncviewer-gvncviewer.o
> _ast_malloc ../src/.libs/libgtk-vnc-1.0.so
> _ast_sscanf ../src/.libs/libgtk-vnc-1.0.so
> _ast_strdup ../src/.libs/libgtk-vnc-1.0.so
> _ast_free ../src/.libs/libgtk-vnc-1.0.so
> _ast_fprintf gvncviewer-gvncviewer.o
> _Sfstderr gvncviewer-gvncviewer.o
>
> Then add -last should be added to LDFLAGS to resolve the build problem.
I don't think adding a dependancy on libast is the right thing todo here
since that is not guarenteed to be present on Solaris. Is there a sys/endian
or a byteswap.h header file in the base ? If not, then we'll need todo
a configure.ac test to figure out endianness.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]