aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Failed compilation on solaris 10  (Read 3598 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Failed compilation on solaris 10
« on: April 14, 2005, 04:29:11 AM »

Hi!

Got this while compiling CVS FRom 2005-04-13:

Code: [Select]
.....
CryptoPP.cpp:1712:3: warning: #warning "You do not have GCC 3.3 or later, or did  not specify -msse2 compiler option, so use of SSE2 intrinsics will be disabled. "
CryptoPP.cpp: In static member function `static CryptoPP::word CryptoPP::Pentium Optimized::Add(CryptoPP::word*, const CryptoPP::word*, const CryptoPP::word*, un signed int)':
CryptoPP.cpp:2761: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static CryptoPP::word CryptoPP::Pentium Optimized::Subtract(CryptoPP::word*, const CryptoPP::word*, const CryptoPP::word *, unsigned int)':
CryptoPP.cpp:2802: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static CryptoPP::word CryptoPP::P4Optim ized::Add(CryptoPP::word*, const CryptoPP::word*, const CryptoPP::word*, unsigne d int)':
CryptoPP.cpp:2854: warning: control reaches end of non-void function
CryptoPP.cpp: In static member function `static CryptoPP::word CryptoPP::P4Optim ized::Subtract(CryptoPP::word*, const CryptoPP::word*, const CryptoPP::word*, un signed int)':
CryptoPP.cpp:2904: warning: control reaches end of non-void function
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- MuleTrayIcon.o amule-CryptoPP.o -L/usr/local/lib -pthreads   -lwx_gtk_xrc-2.5 -l wx_gtk_html-2.5 -lwx_gtk_adv-2.5 -lwx_gtk_core-2.5 -lwx_base_xml-2.5 -lwx_base_n et-2.5 -lwx_base-2.5  -lz -L/opt/csw/lib/i386 -lcurl -L/opt/csw/lib -L/opt/csw/l ib -lidn -lssl -lcrypto -ldl -lsocket -lnsl -lz  -lresolv -lnsl  -lgen
Undefined                       first referenced
 symbol                             in file
XParseGeometry                      amule-amule-gui.o  (symbol belongs to implic it dependency /usr/lib/libX11.so.4)
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[4]: *** [amule] Error 1
make[4]: Leaving directory `/export/home/autizt/amule-CVS-20050413/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/export/home/autizt/amule-CVS-20050413/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/home/autizt/amule-CVS-20050413/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/autizt/amule-CVS-20050413'
make: *** [all] Error 2
[autizt@neptune amule-CVS-20050413]$
Any idea how to go on with the compilation?

Thanks.
Logged

lfroen

  • Guest
Re: Failed compilation on solaris 10
« Reply #1 on: April 15, 2005, 05:13:21 AM »

Is that something recently appears ? Pls check linker flags (post looks trunkated) to include X libs. Does solaris have XParseGeometry ? IMHO it's standard thing.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Failed compilation on solaris 10
« Reply #2 on: April 15, 2005, 12:42:31 PM »

Lfroen: The post isn't truncated, you just have to scroll vertically. ;)
Quote
-lpthread -L/usr/local/lib -pthreads   -lwx_gtk_xrc-2.5 -l wx_gtk_html-2.5 -lwx_gtk_adv-2.5 -lwx_gtk_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5  -lz -L/opt/csw/lib/i386 -lcurl -L/opt/csw/lib -L/opt/csw/l ib -lidn -lssl -lcrypto -ldl -lsocket -lnsl -lz  -lresolv -lnsl  -lgen

Doesn't look like the X11 libs is there though.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Failed compilation on solaris 10
« Reply #3 on: April 15, 2005, 06:51:17 PM »

No idea, I had compiled several versions before, and I have currently running CVS from 2005-03-26 (I wrote the guide to compile aMule on solaris :P) but this one just failed. Since I'm no developer on C++, I can't understand the problem, maybe the wxGTK 2.5.4 fails with current CVSs? will try upgrading to 2.5.5 and see if it works.

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: Failed compilation on solaris 10
« Reply #4 on: May 17, 2005, 08:17:38 PM »

I'm getting this error at the moment too with wxwindows 2.6.0. I'll look into it and see if i can figure it out.

Quote
I am nerdier than 95% of all people. Are you nerdier? Click here to find out!

Damn.. So close... :D
94% " Supreme Nerd. Apply for a professorship at MIT now!!!."

Best question was the reason for doing it.. lol


EDIT
===========
If it helps, here are my error and config.log
http://xushi.co.uk/xushi/sv/error.txt
http://xushi.co.uk/xushi/sv/config.log
« Last Edit: May 17, 2005, 08:55:25 PM by xushi »
Logged
--
Avtomat KaXushnikova
\/ushi - xushi.co.uk
/\          - socialprotest.com

I am nerdier than 94% of all people. Are you nerdier? Click here to find out!

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Failed compilation on solaris 10
« Reply #5 on: May 18, 2005, 03:15:38 AM »

I have not checked this on detail, but I will right now. I'll report back with any solution (if I find one, that is).

Regards.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Failed compilation on solaris 10
« Reply #6 on: May 19, 2005, 02:33:38 PM »

the problem is (IMHO) aMule is missing the -lX11 (or something like that) in the final linking stage, so it's failing to find the X11 libraries (which of course exist on my system). I remember that exact problem, but with another library (-lnsl) happened while making amule solaris-compatible (two months ago) and Kry solved it in about 5 minutes.

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: Failed compilation on solaris 10
« Reply #7 on: May 21, 2005, 11:06:34 PM »

I know this isn't the right thing to do, but if you edit src/amule-gui.cpp, and comment out this line, recompile, it should work.

XParseGeometry(unicode2char(geom_string), &geometry_x, &geometry_y, &geometry_width, &geometry_height);
Logged
--
Avtomat KaXushnikova
\/ushi - xushi.co.uk
/\          - socialprotest.com

I am nerdier than 94% of all people. Are you nerdier? Click here to find out!