aMule Forum
English => Compilation problems => Topic started by: webbonus on May 31, 2005, 11:00:26 PM
-
Compil aMule 2.0.1 on solaris 10 SPARC
I try to compile aMule on solaris 10 on Ultra 30.
I have a problem with gettext.
***************************
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... ./install-sh -c
checking for ranlib... :
checking for bison... bison -y
checking whether ln -s works... yes
checking for ranlib... (cached) :
checking for strip... no
checking for ar... no
checking for ld... no
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.1.4)
checking whether we need the GUI... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.4.2)
checking for wxbase-2.4-config... no
checking for GUI toolkit to use... -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_
CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
./configure: line 6664: test: too many arguments
checking whether to use embedded Crypto... yes
checking for bfd headers... yes
checking for autopoint... ./configure: line 7706: test: too many arguments
no (/usr/local/bin/autopoint (GNU gettext-tools) 0.14.1)
configure: error: You need to install GNU gettext/gettext-tools to compile aMule
*********************************************
gettext 0.14.1 from sunfreeware is installed in /usr/local/bin
Environnement :
EPPLC_COLLATE=fr_FR.ISO8859-15
LC_CTYPE=fr_FR.ISO8859-1
LC_MESSAGES=fr
LC_MONETARY=fr_FR.ISO8859-15
LC_NUMERIC=fr_FR.ISO8859-15
LC_TIME=fr_FR.ISO8859-15
LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
OPTIND=1
PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin:/usr/sbin
PS1=#
PS2=>
SHELL=/sbin/sh
TERM=ansi
TZ=Europe/Paris
********************************************************
I read http://www.amule.org/wiki/index.php/HowTo_compile_on_Solaris
I am sure that somebody can help me
Thanks
-
Yeah, that might be a bug. But this is the MAC forum, not the Solaris forum ;) So, moving to proper section.
-
No, Kry, it's not a bug. That comes from using SUN ld instead of GNU ld.
@webbonus:
Try using GNU ld, and put it on your PATH somewhere before the SUN ld. Or specify the ld in ./configure. More info here: http://forum.amule.org/thread.php?threadid=5383&sid=
Regards.
-
Thanks for the answer
I realy have somme difficults with solaris 10 and aMuLE 2.0.1
# pwd
/export/home/softs/aMule-2.0.1
# ld --version
GNU ld version 2.15
Copyright 2002 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de
reproduction.
# gettext --version
gettext (GNU gettext-runtime) 0.14.1
Copyright (C) 1995-1997, 2000-2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.
Maybe : when I install the system, I chose French, (because I'm French of course !).
# ./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking for ranlib... :
checking for bison... bison -y
checking whether ln -s works... yes
checking for ranlib... (cached) :
checking for strip... no
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.1.4)
checking whether we need the GUI... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.4.2)
checking for wxbase-2.4-config... no
checking for GUI toolkit to use... -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_
CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
./configure: line 6664: test: too many arguments
checking whether to use embedded Crypto... yes
checking for bfd headers... yes
checking for autopoint... ./configure: line 7706: test: too many arguments
no (/usr/local/bin/autopoint (GNU gettext-tools) 0.14.1)
configure: error: You need to install GNU gettext/gettext-tools to compile aMule
Thanks for the help
-
Today, I install gettext-0.14.5 from gettext-0.14.5.tar.gz, with good completion.
# autopoint --version
/usr/local/bin/autopoint (GNU gettext-tools) 0.14.5
Copyright (C) 2002-2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible
The compilation'problem is always alive !!.
-
My mistake, problem is not ld, is sed. Install GNU sed, instead of SUN's sed. This line is the one which shows the problem:
./configure: line 6664: test: too many arguments
that is produced because SUN sed has a different command-line options than GNU sed, and configure assumes GNU sed, so SUN's one fails.
Regards.
-
OK, fine ./configure is OK.
I have another problem with make.
It works good 15 minutes and crashes.
.o amule-Statistics.o amule-StatisticsDlg.o amule-StateMachine.o amule-StringFun
ctions.o amule-TransferWnd.o amule-UploadClient.o amule-UploadQueue.o amule-Byte
IO.o amule-DataIO.o amule-FileIO.o amule-IOException.o amule-UInt128.o amule-gso
cket.o amule-eggtrayicon.o amule-gtk2-funcs.o amule-gtkplugxembed.o amule-SysTr
ay.o amule-CryptoPP.o -L/usr/local/lib -pthreads -lwx_gtk-2.4 -lz -lresolv -ln
sl -lbfd -liberty -L/usr/sfw/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lg
dk -R/usr/sfw/lib -lgmodule -lglib -lXext -lX11 -lsocket -lnsl -lm -lgen
***********************************************************
ld: fatal : bibliothÞque -lbfd : introuvable [ Library -lbfd not found ]
************************************************************
ld: fatal : Erreurs dans le traitement des fichiers. Aucun rÚsultat n'a ÚtÚ Úcr
it dans amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/aMule-2.0.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/aMule-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/aMule-2.0.1'
make: *** [all] Error 2
Maybe you have an idea.
many thanks
regards
Jean
-
Today Y install bfd from binutils-2.9.1.tar
I will download aMule-2.0.2 and recompil from start
Wait and see
Regards
-
Today I install SFWgbin-2.15 from sun.com/software/solaris/
freeware
make[3]: Entering directory `/export/home/softs/aMule-2.0.2/src'
g++ -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-l
ength=0 -lpthread -o amule amule-AddFriend.o amule-AddFileThread.o amule-AIC
HSyncThread.o amule-amule.o amule-amule-gui.o amule-amuleDlg.o amule-BarShader.o
amule-BaseClient.o amule-ChatSelector.o amule-ChatWnd.o amule-CatDialog.o amule
-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amu
le-ClientListCtrl.o amule-ClientUDPSocket.o amule-ColorFrameCtrl.o amule-Comment
Dialog.o amule-CommentDialogLst.o amule-DataToText.o amule-DeadSourceList.o amul
e-DirectoryTreeCtrl.o amule-DownloadClient.o amule-DownloadListCtrl.o amule-Down
loadQueue.o amule-ECSocket.o amule-ECPacket.o amule-ECSpecialTags.o amule-ED2KLi
nk.o amule-EditServerListDlg.o amule-EMSocket.o amule-ExternalConn.o amule-FileD
etailDialog.o amule-FileDetailListCtrl.o amule-filefn.o amule-Format.o amule-Fri
end.o amule-FriendList.o amule-FriendListCtrl.o amule-HTTPDownload.o amule-IPFil
ter.o amule-KnownFile.o amule-KadDlg.o amule-KnownFileList.o amule-ListenSocket.
o amule-listctrl.o amule-Logger.o amule-MemFile.o amule-MD5Sum.o amule-MuleGifCt
rl.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-MuleTextCtrl.o amule-muuli_
wdr.o amule-NetworkFunctions.o amule-OScopeCtrl.o amule-OtherFunctions.o amule-P
acket.o amule-PartFile.o amule-Preferences.o amule-PrefsUnifiedDlg.o amule-Proxy
.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.o amule-SearchListCtrl.o
amule-Server.o amule-ServerConnect.o amule-ServerList.o amule-ServerListCtrl.o a
mule-ServerSocket.o amule-ServerUDPSocket.o amule-ServerWnd.o amule-SharedFileLi
st.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-SHA.o amule-SHAHashSet
.o amule-Statistics.o amule-StatisticsDlg.o amule-StateMachine.o amule-StringFun
ctions.o amule-TransferWnd.o amule-UploadClient.o amule-UploadQueue.o amule-Byte
IO.o amule-DataIO.o amule-FileIO.o amule-IOException.o amule-UInt128.o amule-gso
cket.o amule-eggtrayicon.o amule-gtk2-funcs.o amule-gtkplugxembed.o amule-SysTr
ay.o amule-CryptoPP.o -L/usr/local/lib -pthreads -lwx_gtk-2.4 -lz -lresolv -ln
sl -lbfd -liberty -L/usr/sfw/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lg
dk -R/usr/sfw/lib -lgmodule -lglib -lXext -lX11 -lsocket -lnsl -lm -lgen
ld: fatal : bibliothÞque -lbfd : introuvable ** -lbfd not found ***
ld: fatal : Erreurs dans le traitement des fichiers. Aucun rÚsultat n'a ÚtÚ Úcr
it dans amule *** no result has been wrote ***
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/aMule-2.0.2'
make: *** [all] Error 2
Does bfd and lbfd the same ?
What can I do ?
Thanks for the help
Regards
-
-lbfd means library bfd, libbfd* suaully.
-
no, Kry webbonus is right, bfd library is part of binutils (at least on solaris, no idea about linux).
@ webbonus: Try installing binutils from http://www.blastwave.org (use their pkg-get shell script, it's simply great!). That worked for me on x86...or ask xushi, he has compiled succesfully on SPARC.
Regards.
-
Thanks skolnick,
I install binutils-2.14-SunOS5.8-sparc-CSW.pkg.gz from http://www.blastwave.org
. I installed differents recommended patches,
The error is different :
mule-muuli_wdr.o amule-NetworkFunctions.o amule-OScopeCtrl.o amule-OtherFunction
s.o amule-Packet.o amule-PartFile.o amule-Preferences.o amule-PrefsUnifiedDlg.o
amule-Proxy.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.o amule-Search
ListCtrl.o amule-Server.o amule-ServerConnect.o amule-ServerList.o amule-ServerL
istCtrl.o amule-ServerSocket.o amule-ServerUDPSocket.o amule-ServerWnd.o amule-S
haredFileList.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-SHA.o amule
-SHAHashSet.o amule-Statistics.o amule-StatisticsDlg.o amule-StateMachine.o amul
e-StringFunctions.o amule-TransferWnd.o amule-UploadBandwidthThrottler.o amule-U
ploadClient.o amule-UploadQueue.o amule-UInt128.o amule-gsocket.o amule-eggtray
icon.o amule-gtk2-funcs.o amule-gtkplugxembed.o amule-SysTray.o amule-CryptoPP.
o -L/usr/local/lib -pthreads -lwx_gtk-2.4 -lz -lresolv -lnsl -lbfd -liberty -L
/usr/sfw/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -R/usr/sfw/lib -l
gmodule -lglib -lXext -lX11 -lsocket -lnsl -lm -lgen
Undefined first referenced
symbol in file
unlink_if_ordinary /usr/local/lib/libbfd.a(cache.o)
std::_Rb_tree_increment(std::_Rb_tree_node_base*)amule-BarShader.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_List_node_base::hook(std::_List_node_base*)amule-AddFileThread.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_List_node_base::unhook() amule-AddFileThread.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::basic_istream >::seekg(long long, std::_Ios_Seekdir)amule-CryptoPP.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_Rb_tree_increment(std::_Rb_tree_node_base onst*)amule-amule-gui.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)amule-PartFile.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_b
ase&)amule-BarShader.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)amule-BarShader.o (symbol belongs to implicit dependency usr/sfw/lib/libstdc++.so.6)libintl_dgettext /usr/local/lib/libbfd.a(bfd.o)
std::_Rb_tree_decrement(std::_Rb_tree_node_base*)amule-BarShader.o (symbol belongs to implicit dependency /usr/sfw/lib/libstdc++.so.6)
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/amule-cvs'
make: *** [all] Error 2
Maybe someone has an idea
Thanks for the help
Jean
-
Hmmm...this one I had never seen it before. I think it is some kind of problem with your libraries or compiler. Just to be safe, read my guide on compiling amule on solaris 10 x86. Another user (xushi) told me most of it applies to solaris 9 on SPARC, therefore should apply to solaris 10 on SPARC also. Please note that all the additional software is installed from the same source (blastwave) no Companion CD or other sources packages are used, and wxGTK is compiled with GTK1 only. All utilities used (bc, sed, grep, ld) are GNU ones, and the compiler is the one bundled with solaris 10.
Regards.
-
OK, Thanks skolnick,
Next week, I try again with a new clean server solaris 10 without companion CD and all recommendations on your compiling guide for solaris 10 x86.
Many thanks
Regards
-
I work with a clean server running Solris 10 without companion CD or anything else
.
I install pkg-get from http://www.blastwave.org/pkg-get.php
autoconf *** ok ***
automake *** ok ***
gd *** ok ***
gettext *** error ***
ERROR: gettext unrecognized
Perhaps you need to run pkg-get -U
*** But gettext is already installed by autoconf ***
gtk *** ok ***
gtk2 *** ok ***
libpng *** error ***
pkg-get -i libpng
WARNING: gpg not found
ERROR: libpng unrecognized
*** I install libpng-1.2.8-sol10-sparc-local.gz instead
binutils *** ok ***
I compil wxGTK-2.4.2 ** ok**
********* wxGTK-2.4.2 ./configure --with-gtk **********
Configured wxWindows 2.4.2 for `sparc-sun-solaris2.10'
....
....
t.o m_links.o m_list.o m_pre.o m_style.o m_tables.o winpars.o -pthreads -L/opt/csw/lib -lgtk -lgdk -lgmodule -lgthread -lglib -lthread -ldl -lXi -lXext -lX11 -lsocket -lnsl -lm -lpng -ljpeg -ltiff -lz -lposix4 -lnsl -lsocket -lm
cd ./lib \
&& ln -s libwx_gtk-2.4.so.0.1.1 libwx_gtk-2.4.so.0 \
&& ln -s libwx_gtk-2.4.so.0.1.1 libwx_gtk-2.4.so
******* make ok *******************
.......
.......
cd /usr/local/lib \
&& ln -s libwx_gtk-2.4.so.0.1.1 libwx_gtk-2.4.so.0 \
&& ln -s libwx_gtk-2.4.so.0.1.1 libwx_gtk-2.4.so
/export/home/softs/wxGTK-2.4.2/buildgtk/../install-sh -c -d /usr/local/share/aclocal
/export/home/softs/wxGTK-2.4.2/buildgtk/../install-sh -c -m 644 ../wxwin.m4 /usr/local/share/aclocal
The installation of wxWindows is finished.
I download aMuleCVS
./configure *** ok ***
I try ./configure --enable-webserver but I need libpng-devel and I can't find this library
................
.................
**** aMule Core ****
Prefix where aMule should be installed? /usr/local
Should aMule be compiled with i18n support? no
Should aMule be compiled in debug mode? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with taskbar icon support? yes
Should aMule be compiled with old GTK taskbar icon? yes
Should aMule be compiled with UTF-8 taskbar icon support? no
Should aMule be linked against patched gsocket? yes
Should aMule monolithic application be built? yes
Should aMule daemon version be built? no
Should aMule remote gui be built? (EXPERIMENTAL) no
Should aMule Kademlia code be compiled? (DOESN'T WORK) no
Crypto++ library/headers style? embedded
**** aMule TextClient ****
Should aMule Command Line Client be built? no
Should aMule GUI Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? no
Should aMule WebServer GUI be built? no
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? no
Should aMuleLinkCreator for console (alcc) be built? no
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? no
Should aMule GUI Statistics (wxCas) be built? no
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.4.2
crypto++ embedded
zlib 1.1.4
make *** error ***
from ../../src/ListenSocket.cpp:30:
/usr/include/sys/time.h:185:1: warning: this is the location of the previous definition
In file included from ../../src/ListenSocket.cpp:39:
../../src/ClientList.h:343:3: warning: #warning KAD TODO: Implement buddies for kademlia lowid support (firewalled)
../../src/ClientList.h:344:3: warning: #warning This is actually a much bigger import, the kademlia process list.
../../src/ClientList.h:345:3: warning: #warning So, check usage - they are already ported
In file included from ../../src/PartFile.h:38,
from ../../src/ListenSocket.cpp:42:
../../src/KnownFile.h:227:3: warning: #warning KAD TODO - Check usage
if g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_BFD -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT amule-listctrl.o -MD -MP -MF ".deps/amule-listctrl.Tpo" \
-c -o amule-listctrl.o `test -f 'listctrl.cpp' || echo '../../src/'`listctrl.cpp; \
then mv -f ".deps/amule-listctrl.Tpo" ".deps/amule-listctrl.Po"; \
else rm -f ".deps/amule-listctrl.Tpo"; exit 1; \
fi
In file included from ../../src/listctrl.cpp:6:
******************** error ***********************************
../../src/extern/listctrl.242.cpp:65:25: gtk/gtk.h: No such file or directory
*****************************************************************************
In file included from ../../src/extern/listctrl.242.cpp:66,
from ../../src/listctrl.cpp:6:
/usr/local/include/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory
/usr/local/include/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
/usr/local/include/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directory
/usr/local/include/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or directory
/usr/local/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory
In file included from ../../src/extern/listctrl.242.cpp:66,
from ../../src/listctrl.cpp:6:
/usr/local/include/wx/gtk/win_gtk.h:54: error: `GtkContainer' does not name a type
/usr/local/include/wx/gtk/win_gtk.h:55: error: expected `;' before '*' token
/usr/local/include/wx/gtk/win_gtk.h:66: error: `GdkVisibilityState' does not name a type
**** My setting ***
AB_CARDCATALOG=/usr/dt/share/answerbooks/en_US.ISO8859-15/ab_cardcatalog
CPPFLAGS=-I /opt/csw/include
DISPLAY=:0.0
DTAPPSEARCHPATH=//.dt/appmanager:/usr/dt/appconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
DTDATABASESEARCHPATH=//.dt/types,/usr/dt/appconfig/types/%L,/usr/dt/appconfig/types/C
DTDEVROOT=
DTHELPSEARCHPATH=//.dt/help/root-unknown-0/%H://.dt/help/root-unknown-0/%H.sdl://.dt/help/root-unknown-0/%H.hv://.dt/help/%H://.dt/help/%H.sdl://.dt/help/%H.hv:/usr/dt/appconfig/help/%L/%H:/usr/dt/appconfig/help/%L/%H.sdl:/usr/dt/appconfig/help/%L/%H.hv:/usr/dt/appconfig/help/C/%H:/usr/dt/appconfig/help/C/%H.sdl:/usr/dt/appconfig/help/C/%H.hv
DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank
DTSOURCEPROFILE=true
DTUSERSESSION=root-unknown-0
DTXSERVERLOCATION=local
EDITOR=/usr/dt/bin/dtpad
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
HOME=/
IFS=
LANG=en_US.ISO8859-15
LC_COLLATE=en_US.ISO8859-15
LC_CTYPE=en_US.ISO8859-15
LC_MESSAGES=C
LC_MONETARY=en_US.ISO8859-15
LC_NUMERIC=en_US.ISO8859-15
LC_TIME=en_US.ISO8859-15
LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
OPENWINHOME=/usr/openwin
OPTIND=1
PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
PS1=#
PS2=>
PWD=/
SESSION_SVR=unknown
SHELL=/sbin/sh
TERM=dtterm
TERMINAL_EMULATOR=dtterm
TZ=Europe/Paris
USER=root
WINDOWID=13107211
XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/lib/%T/%N%S
XMBINDDIR=/usr/dt/lib/bindings
XMICONBMSEARCHPATH=//.dt/icons/%B%M.bm://.dt/icons/%B%M.pm://.dt/icons/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B
XMICONSEARCHPATH=//.dt/icons/%B%M.pm://.dt/icons/%B%M.bm://.dt/icons/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/dt/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B
_=/usr/dt/bin/sdt_shell
dtstart_sessionlogfile=/dev/null
************************************************
I suppose that I must install something. But what ?.
Regards
-
You should install GTK (That's the error, if could not find gtk.h) in order to compile wxGTK. Besides, libpng and such utils are found in blastwave, jus the name might not be what you expect. Run this:
pkg-get -c
It will check all the packages available, their names, and which version you have/latest. There, you can check the name for libpng (maybe lib-png, or something)
Besides, wxGTK 2.4.2 is really old, 2.6.1 is current. You did not follow the step number 5 in my guide. You probably also missed the 7th one, since you seem to have installed gtk, but the installation failed to find it.
Regards.
-
Hi skolnick
gtk has been installed with pkg-get -i gtk
pkg-get -i gtk
WARNING: gpg not found
No worries... you already have version 1.2.10 of gtk
pkg-get -i gtk2
WARNING: gpg not found
No worries... you already have version 2.6.4,REV=2005.04.13 of gtk2
If you doubt this message, run 'pkg-get -U', then run
'pkg-get upgrade gtk2'
wxGTK-2.4.1 has been downloaded and installed from http://www.wxwidgets.org
I try to compil wxGTK-2.6.2 but I have an error very similar that the make in aMule.
********** wxGTK-2.6.2 ./configure --with-gtk ******************
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
**********************************************************************
#which pkg-config
/usr/bin/pkg-config
# gtk-config --libs
-L/opt/csw/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lsocket -lnsl -lm
# pkg-config gtk+-2.0 --libs
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
#gtk-config --version
1.2.10
# echo $LD_LIBRARY_PATH
/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
# echo $PATH
/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
item 7 is setted
# set
AB_CARDCATALOG=/usr/dt/share/answerbooks/en_US.ISO8859-15/ab_cardcatalog
COLORTERM=gnome-terminal
CPPFLAGS=-I /opt/csw/include
DESKTOP_STARTUP_ID=
DISPLAY=:0.0
DTAPPSEARCHPATH=//.dt/appmanager:/usr/dt/appconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
.........
..........
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/var/tmp/keyring-k3wMSQ/socket
GTK_RC_FILES=/etc/gtk/gtkrc://.gtkrc-1.2-gnome2
G_BROKEN_FILENAMES=yes
G_FILENAME_ENCODING=@locale,UTF-8
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
HOME=/
IFS=
LANG=en_US.ISO8859-15
LC_COLLATE=en_US.ISO8859-15
LC_CTYPE=en_US.ISO8859-15
LC_MESSAGES=en_US.ISO8859-15
LC_MONETARY=en_US.ISO8859-15
LC_NUMERIC=en_US.ISO8859-15
LC_TIME=en_US.ISO8859-15
LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
OPENWINHOME=/usr/openwin
OPTIND=1
PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
PS1=#
PS2=>
........
.........
dtstart_sessionlogfile=/dev/null
Regards
-
Hi!
Let's try this: compile wxGTK 2.6.2 forcing it to use GTK1. Use these switches:
--with-gtk --disable-gtk2
and try to compile again. I've seen come tproblems with the GTK2 test wxGTK does, so it fails even when GTK2 is properly installed. Try this, and please report back (either, error or success.)
Regards.
-
Hi,
We are progressing.
All is OK for wxGTK-2.6.1 with ./configure --with-gtk --disable-gtk2
I try to compil aMule-2.0.2
./configure
make crashes after 35 minutes working :
achine.o amule-StringFunctions.o amule-TransferWnd.o amule-UploadClient.o amule-UploadQueue.o amule-ByteIO.o amule-DataIO.o amule-FileIO.o amule-IOException.o amule-UInt128.o amule-MuleTrayIcon.o amule-CryptoPP.o -L/usr/local/lib -pthreads -lwx_gtk_xrc-2.6 -lwx_gtk_qa-2.6 -lwx_gtk_html-2.6 -lwx_gtk_adv-2.6 -lwx_gtk_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6 -lz -lresolv -lnsl -lbfd -liberty -lgen
Undefined first referenced
symbol in file
XParseGeometry amule-amule-gui.o (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/aMule-2.0.2'
make: *** [all] Error 2
I try to compil amule-cvs20050614
idem, crashes after 40 minutes make but the message is different.
CPreferences::SetWSIsLowUserEnabled(bool) amule-ECSpecialTags.o
CPreferences::ECUseTCPPort() amule-ExternalConn.o
CPreferences::SetTrustingEveryHash(bool) amule-ECSpecialTags.o
wxAppBase::CreateLogTarget() amule-amule.o
otherfunctions::PartFileEncoderData::PartFileEncoderData(otherfunctions::PartFileEncoderData const&)amule-ExternalConn.o
wxNotebookBase::DoGetBestSize() const amule-ChatSelector.o
wxFrame::wxFrame(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)amule-amuleDlg.o
wxFile::Write(wxString const&, wxMBConv&)amule-amule.o
CPreferences::ShowProgBar() amule-DownloadListCtrl.o
CPreferences::SetMaxGraphUploadRate(unsigned int)amule-ECSpecialTags.o
CPreferences::SetMsgOnlyFriends(bool) amule-ECSpecialTags.o
CPreferences::GetYourHostname() amule-amule.o
CPreferences::SetAddNewFilesPaused(bool) amule-ECSpecialTags.o
CPartFile::GetSrcA4AFCount() const amule-DownloadListCtrl.o
CPreferences::StartNextFileSame() amule-DownloadQueue.o
CPreferences::ShowAllNotCats() amule-DownloadListCtrl.o
CSysTray::CSysTray(wxWindow*, DesktopMode, wxString const&)amule-amuleDlg.o
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/amule-cvs/buildam/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/amule-cvs/buildam/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/amule-cvs/buildam'
make: *** [all] Error 2
I suppose an library problem
Many thanks for the help
-
The first error is a well-known one ;)
I might fix it on CVS soon, if I find the way.
-
Absolutely perfect, aMule-2.0.3 is running perfectly under Solaris10 SPARC.
** Make ** without any problem ./configure without any argument I can't find libpng-devel needed for webserver.(It's not realy a problem !).
Many thanks at aMule team
Regards
-
:) Glad to know amule worked for you at last. Pleas, if you did any strange thing, or have any contributions to my compilation guide on solaris, please feel free to contribute youur experience on its thread.
Regards.
-
Originally posted by webbonus
Absolutely perfect, aMule-2.0.3 is running perfectly under Solaris10 SPARC.
plz recompile 2.0.3 with current srcs.. the previous one has a bug and your amule will crash!
cheers & sorry for the trouble