aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: gettext error in ./configure (Sol 10 sp)  (Read 10863 times)

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #15 on: May 23, 2005, 11:17:26 AM »

skolnick, i got the information from a friend who directed me to
man filesystem

quote
Quote
/usr/local

         Not part of the  SVR4-based  Solaris  distribution.  The
         /usr  directory is exclusively for software bundled with
         the Solaris operating  system.  If  needed  for  storing
         machine-local  add-on  software,  create  the  directory
         /opt/local  and  make  /usr/local  a  symbolic  link  to
         /opt/local.  The  /opt  directory  or  filesystem is for
         storing add-on software to the system.
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!

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #16 on: May 23, 2005, 12:57:51 PM »

Well, i've finally managed to get amule running on my system. I'm using Solaris 10 sparc, GNU compilers (soon to be changed to the sun suite), and wxGTK 2.6. With the current CVS, i used

./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-optimise --enable-gtk
and
--enable-gtk2

Compiling takes around 25 min... but all work fine, however,

--enable-amule-daemon
gives an error
Code: [Select]
ds   -lwx_base-2.6 -lwx_base_net-2.6  -lz  -lresolv -lnsl -lbfd -liberty -lgen
Undefined                       first referenced
 symbol                             in file
nanosleep                           amuled-AICHSyncThread.o  (symbol belongs to implicit dependency /usr/lib/librt.so.1)
ld: fatal: Symbol referencing errors. No output written to amuled
collect2: ld returned 1 exit status
make[3]: *** [amuled] Error 1
make[3]: Leaving directory `/export/home/xushi/stuff/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/xushi/stuff/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/xushi/stuff/amule-cvs'
make: *** [all] Error 2
xushi@yooniks:~/stuff/amule-cvs$
Its a new one, so i didn't have time to look for the solution, so currently i just ignore that prefix.


The previous problem,
Code: [Select]
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
               
EDIT:
======
The problem still exists here.. hmm =/ for a quick solution (and i dont think its the best one out there), just comment out this line in src/amule-gui.cpp
Code: [Select]
XParseGeometry(unicode2char(geom_string), &geometry_x, &geometry_y, &geometry_width, &geometry_height);
Most of the other 15 odd problems i had were my machine's fault in sticking libraries everywhere but the required place..

I'll keep testing, and keep you all updated. Will switch to the Sun compiler suite soon.
« Last Edit: May 23, 2005, 02:01:42 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: gettext error in ./configure (Sol 10 sp)
« Reply #17 on: May 23, 2005, 05:05:10 PM »

ohh...that filesystem info was really useful, xushi! I had no idea of such thing, but I'll correct my filesystem layout ASAP. BTW: nice to read you got amule running on your SPARC system, and I hope my advices were useful and not misleading.

Also, I thought the --enable-gtk2 was a wxGTK switch, not an amule one... ?(

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #18 on: May 23, 2005, 05:43:16 PM »

Heh, i took alot of advice from you skolnick =) Your guide was very useful. When i have the time, i'll try and contribute some errors and solutions to it if you like.

Quote
Also, I thought the --enable-gtk2 was a wxGTK switch, not an amule one... Confused
Hmm, you're quite right.. I didn't realise that, and from what i see in the configure file, there's isn't even any --enable-gtk or --enable-gtk2 ..

I think i've already compiled wxGTK with --enable-gtk2, but recompiling again will be faster than finding out if i did or not :) So more updates later on tonight..

I just want to sort out that amuled-AICHSyncThread.o issue, then i'm going to make a move to Sun's studio and compiler.

And btw skolnick, feel free to use my system for any testing you'd like to do at any time.
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: gettext error in ./configure (Sol 10 sp)
« Reply #19 on: May 23, 2005, 06:00:37 PM »

Quote
Originally posted by xushi
Heh, i took alot of advice from you skolnick =) Your guide was very useful. When i have the time, i'll try and contribute some errors and solutions to it if you like.
Glad it was useful. Of course, any suggestion or error correction you have, PM me and I'll correct the original post. Of course, all credits will go to you ;)

Quote
Originally posted by xushi
I think i've already compiled wxGTK with --enable-gtk2, but recompiling again will be faster than finding out if i did or not :) So more updates later on tonight..
you can use wx-config to know which parameters you used to compile wxGTK. Don't remember now which parameter should you give to it (--libs, maybe) but it can be done.

Quote
Originally posted by xushi
I just want to sort out that amuled-AICHSyncThread.o issue, then i'm going to make a move to Sun's studio and compiler.

And btw skolnick, feel free to use my system for any testing you'd like to do at any time.
I can't help you on this one, since I know not enough C++ to even understand the code :(

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #20 on: May 23, 2005, 06:47:07 PM »

If i can trouble you for a moment, wxGTK 2.6 is being a b*ch on solaris. It says
Code: [Select]
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.

Now i know for a fact that GTK2 is installed, along with the devl package
Code: [Select]
root@yooniks:/download/wxGTK-2.6.0# pkginfo | grep gtk
system      CSWgtk                           gtk - the Gimp ToolKit library, libgtk
application CSWgtk2                          gtk2 - GTK+, The GIMP Toolkit
application CSWgtkspell                      gtkspell - Spell checking enhancement for the GtkTextView widget

Code: [Select]
# find / -name \*gtk+-2.0.pc -print
/usr/lib/sparcv9/pkgconfig/gtk+-2.0.pc
/usr/lib/pkgconfig/gtk+-2.0.pc

Code: [Select]
# which pkg-config
/usr/bin/pkg-config

I'm using the following prefexes
./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make  

I tried adding --with-gtk-exec-prefix=/usr/bin
--with-gtk-prefix=/usr
--with-gtk-prefix=/opt/csw

and none of them solve the problem =/

EDIT: My config.log is here
http://xushi.co.uk/xushi/config.log

Edit 2: Hmm, Pho3nix spotted this on irc,
Code: [Select]
configure:24476: gcc -o conftest  -mt -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  conftest.c -mt -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 -lgthread
-2.0 -lglib-2.0    >&5
cc1: error: invalid option `t'
cc1: error: invalid option `t'

Code: [Select]
$ pkg-config --cflags gtk+-2.0
-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
heh
no mt here.
« Last Edit: May 23, 2005, 07:00:48 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: gettext error in ./configure (Sol 10 sp)
« Reply #21 on: May 23, 2005, 08:04:22 PM »

no bother for me at all, I've seen the exact same failure here, that's why my amule on solaris is linked against GTK1 only (no unicode available with GTK1 :(). If you check the config.log file, you will see that when it checks for GTK2 and fails, the reason for failing is not the absence of GTK2, is that in the compilation command of the test program, there is an "unknown option m" specified. Searching in google, I found that seems to be a thread model in some architecture/OS, but in solaris should be pthread instead of m, so that's the failure (at least on my system, YMMV) that could be a start point for your investigation on this GTK2 issue.

Regards.
Logged
Pages: 1 [2]