[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build problems with 1.7.6




On 2001.06.13 02:40:57 +1000 Anthony A. D. Talltree wrote:
> Once again, here are my build problems with 1.7.6.
> 
> SunOS 5.7 on SPARC hardware
> 
> o configure is incapable of finding GTK/glib, probably because (as
> usual) it hasn't a clue as to how to correctly invoke the linker.  I
> worked around this by setting the LD_LIBRARY_PATH envrionment variable,
> which means that the xchat executable link cli will probably need to be
> manually fixed, too.
> 
> o configure wedges after printing :
> 
> checking for dlopen... yes
> checking for dlerror... yes
> 
> A ^D for some reason allows configure to continue
> 
> ./configure --prefix=/usr/local/pkg/xchat
> yes
> checking for dlerror... yes
> checking for snprintf... yes
> checking for vsnprintf... yes
> checking for setenv... (cached) no
> checking for select... yes
> checking for select in -lsocket... yes
> checking for gethostbyname... yes
> checking for gethostname... yes
> checking for strings.h... yes
> checking for tr... /usr/local/bin/tr
> checking for sort... /usr/local/bin/sort
> checking for uniq... /usr/local/bin/uniq
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating src/Makefile
> creating src/common/Makefile
> creating src/fe-text/Makefile
> creating src/fe-gtk/Makefile
> creating intl/Makefile
> creating po/Makefile.in
> creating config.h
> 
> xchat 1.7.6
> 
> Building GTK+ Interface .... : yes 1.2.10
> Building TEXT Interface .... : yes
> 
> gnome-libs .......... : no
> gnome panel ......... : no
> zvt shell tab ....... : no
> gdk-pixbuf........... : no
> python .............. : no
> perl ................ : yes     nls/gettext ......... : yes
> plugin interface .... : yes     glib replace ........ : no
> link with socks5 .... : no      translation tables .. : yes
> openssl support ..... : no      japanese conversion . : no
> ipv6 support ........ : yes     hebrew support ...... : no
> 
> The binary will be installed in /usr/local/pkg/xchat/bin
> 
> configure complete, now type 'make' and pray.
> 
> o I had to manually edit each Makefile to remove the errant -g that is
> senselessly fed to gcc.
> 
> o During the make process, there are lots of errors of this form:
> 
> /usr/openwin/include/X11/Xlib.h:3288: warning: type defaults to `int' in
> declaration of `XPeekEvent'.  If xchat is going to ask to be compiled
> for -Wall, it should be prepared for it.
> 
> Unlike previous snapshots, 1.7.6 actually then compiled and linked,
> though as usual for configure it did so incorrectly:
> 
> gcc  -I/usr/local/pkg/glib/include/glib-1.2
> -I/usr/local/pkg/glib/lib/glib/include
> -I/usr/local/pkg/gtk/include/gtk-1.2
> -I/usr/local/pkg/perl/lib/5.00502/sun4-solaris/CORE
> -I/usr/openwin/include -O3 -Wall  -o xchat  about.o ascii.o  banlist.o
> chanlist.o dccgui.o dialog.o  editlist.o fe-gtk.o fkeys.o gtkutil.o 
> ignoregui.o maingui.o menu.o  notifygui.o palette.o pixmaps.o 
> plugingui.o rawlog.o search.o  serverlist.o settings.o textgui.o 
> usermenu.o urlgrab.o userlistgui.o  wins.o xtext.o
> ../common/libxchatmain.a -lsocket  -L/usr/local/pkg/glib/lib -lgmodule
> -lglib -ldl -L/usr/local/lib
> /usr/local/pkg/perl/lib/5.00502/sun4-solaris/auto/DynaLoader/DynaLoader.a
>  -L/usr/local/pkg/perl/lib/5.00502/sun4-solaris/CORE -lperl -lsocket
> -lnsl -ldl -lm -lcrypt  -L/usr/local/pkg/gtk/lib -L/usr/openwin/lib
> -R/usr/openwin/lib -lgtk -lgdk -L/usr/local/pkg/glib/lib -lgmodule
> -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm
> 
> should instead be
> 
> gcc -I/usr/local/pkg/glib/include/glib-1.2
> -I/usr/local/pkg/glib/lib/glib/include
> -I/usr/local/pkg/gtk/include/gtk-1.2
> -I/usr/local/pkg/perl/lib/5.00502/sun4-solaris/CORE
> -I/usr/openwin/include -O3 -Wall -o xchat about.o ascii.o banlist.o
> chanlist.o dccgui.o dialog.o editlist.o fe-gtk.o fkeys.o gtkutil.o
> ignoregui.o maingui.o menu.o notifygui.o palette.o pixmaps.o plugingui.o
> rawlog.o search.o serverlist.o settings.o textgui.o usermenu.o urlgrab.o
> userlistgui.o wins.o xtext.o ../common/libxchatmain.a -lsocket
> -L/usr/local/pkg/glib/lib -lgmodule -lglib -ldl -L/usr/local/lib -R
> /usr/local/lib:/usr/openwin/lib
> /usr/local/pkg/perl/lib/5.00502/sun4-solaris/auto/DynaLoader/DynaLoader.a
>  -L/usr/local/pkg/perl/lib/5.00502/sun4-solaris/CORE -lperl -lsocket
> -lnsl -ldl -lm -lcrypt -L/usr/local/pkg/gtk/lib -L/usr/openwin/lib
> -R/usr/openwin/lib -lgtk -lgdk -L/usr/local/pkg/glib/lib -lgmodule
> -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm
> /usr/local/pkg/perl/lib/5.00502/sun4-solaris/auto/DynaLoader/DynaLoader.a
>  -L/usr/local/pkg/perl/lib/5.00502/sun4-solaris/CORE -lperl -lsocket
> -lnsl -ldl -lm -lcrypt -L/usr/local/pkg/gtk/lib -L/usr/openwin/lib
> -R/usr/openwin/lib -lgtk -lgdk -L/usr/local/pkg/glib/lib -lgmodule
> -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm
> 
> 
> Sun's -L/-R behavior hasn't changed in years.  Why can't configure get
> this through its @#$ linux-centric head?
> 
> I'll test the resultant binary and report on which features are still
> broken.

Are you using a real gcc or is it just symlinked to Sun's compiler? Gcc
supports the -g flag since... umm 0.0.1 or something :)

As for the -R flags, they are probably from glib-config/gtk-config. 
e.g.

gtk-config --libs
glib-config --libs

are they reporting some sane linking flags?

My manpage for gcc doesn't have a -R flag, I wonder why it should be
different on another platform, it's still gcc.

-- 
Peter Zelezny. <zed@linux.com>

-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/
Posted By:     Peter Zelezny <zed@linux.com>