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 10854 times)

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
gettext error in ./configure (Sol 10 sp)
« on: May 19, 2005, 08:31:44 AM »

Hi all,

This is a weird issue that only started with 2.0.1, and the latest CVS snapshots on my solaris machine..

./configure no longer works properly. It reaches gettext, sees it, even prints the version of autopoint, but insists that i don't have it installed  ?(

Code: [Select]
checking for libpng version >= 1.2.0... yes (version 1.2.5)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure:
        WARNING: libpng-devel >= 1.2.0 is needed for amuleweb

checking whether we need the GUI... yes
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.0)
configure: WARNING: wxWidgets >=2.5.0: Using wx-config --libs base,net
checking for GUI toolkit to use... -I/usr/lib/wx/include/gtk-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
./configure: line 6451: test: too many arguments
checking whether to use embedded Crypto... yes
checking for bfd headers... yes
checking for autopoint... ./configure: line 7468: test: too many arguments
no (/usr/bin/autopoint (GNU gettext-tools) 0.14.1)
configure: error: You need to install GNU gettext/gettext-tools to compile aMule
root@yooniks:/download/amule-cvs#    
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 #1 on: May 19, 2005, 02:08:31 PM »

make sure you are using GNU sed instead of SUN sed. For that, symlink gsed to sed somewhere in your path, and try the ./configure again. Same for autopoint, symlinkg gautopoint to autopoint

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #2 on: May 19, 2005, 04:02:39 PM »

Doh,

I've simlinked all of them, but sed was the only one the machine insisted on using Sun's version and not the GNU one.. :)

/me double checks all simlinks again..

Anyway, i'll keep you updated on the other make problem, and i'll see about Sun's compiler too.
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!

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Re: gettext error in ./configure (Sol 10 sp)
« Reply #3 on: May 19, 2005, 04:37:23 PM »

Solved the configure problem by installing the latest gettext from pkgsrc to get autopoint. Using NetBSD 2.0 and the system gettext don't seem contain it.
« Last Edit: May 19, 2005, 05:11:18 PM by Nodsu »
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: gettext error in ./configure (Sol 10 sp)
« Reply #4 on: May 19, 2005, 07:32:34 PM »

Thanks, xushi it would be nice trying to compile using the SUN compilers. Also, it would be nice if aMule would compile using the SUN tools, not only with the GNU ones (especially sed, grep and gettext)

Regards.
Logged

]andi[

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • http://andi4life.de
Re: gettext error in ./configure (Sol 10 sp)
« Reply #5 on: May 19, 2005, 09:05:23 PM »

Hi,
at least it already works with the Solaris make :) Does anyone of you two have the SUN C Compiler? Where can I get it?

Greets,
André
Logged

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Re: gettext error in ./configure (Sol 10 sp)
« Reply #6 on: May 20, 2005, 07:54:58 AM »

I believe you can find it on your Solaris CD if not installed already.
Logged

xushi

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

The thing is, i'm trying to get atleast one successful compile on the sun with the GNU tools. It just wont work. I keep getting a new error every day.

Currently, in make, i get
ld: fatal: library -lbfd: not found
Code: [Select]
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
ld: fatal: library -lbfd: not found
ld: fatal: File processing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/xushi/stuff/aMule-2.0.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/xushi/stuff/aMule-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/xushi/stuff/aMule-2.0.1'
make: *** [all] Error 2
xushi@yooniks:~/stuff/aMule-2.0.1$

Same with the CVS. If i can get this all to work, then i can move to the SUN Tools, and the Studio 10.
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 #8 on: May 20, 2005, 06:28:21 PM »

bfd library comes in binutils. Install it, either from blastwave or from Companion CD.

Regards.
Logged

xushi

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

Hmm, I've installed all of SUNWbinutils, SUNWbinutilsS from solaric CDs, and binutils from blastwave. I still get the make error, and searching for the library yields no results.. =/

# find / -name \*lbfd\* -print

EDIT:
The closest i can find is
Code: [Select]
/opt/csw/lib/libbfd.a
/opt/csw/lib/libbfd.la
/opt/csw/include/bfd.h
/opt/csw/include/bfdlink.h

EDIT 2:
in ./configure output
Code: [Select]
checking for bfd headers... yesSo it can see it.. bah.. why  ?(
« Last Edit: May 20, 2005, 11:53:51 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!

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Re: gettext error in ./configure (Sol 10 sp)
« Reply #10 on: May 21, 2005, 11:48:26 AM »

Maybe it has /opt/csw/include in the include dirs but no /opt/csw/lib in the libdirs.

Try adding -L/opt/csw/lib to the LDFLAGS environment variable?
Logged

xushi

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

Quote
Originally posted by Nodsu
Maybe it has /opt/csw/include in the include dirs but no /opt/csw/lib in the libdirs.

Try adding -L/opt/csw/lib to the LDFLAGS environment variable?

Do you mean adding it to the Makefile?
Code: [Select]
LDFLAGS =   -lpthread -L/opt/csw/lib
If yes, that didn't do anything =/


EDIT:
======
I think using
./configure --with-this --with-that  LDFLAGS=-L/usr/local/lib && make  
did the job, but i'm working on another error at the moment (yes folks, 7th error now.. it never ends).. =)

Will keep you updated.
« Last Edit: May 21, 2005, 09:52:39 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 #12 on: May 22, 2005, 01:42:04 AM »

if you read my guide, yiou will notice this:

7.  Set these two environment wariables:
CPPFLAGS='-I /opt/csw/include'
LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib

LD_LIBRARY_PATH does the trick for you.

Regards.
Logged

xushi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • http://xushi.co.uk
Re: gettext error in ./configure (Sol 10 sp)
« Reply #13 on: May 22, 2005, 09:47:53 AM »

It never did.. that's the problem. =)

I eventually had to do
./configure LDFLAGS=-L/usr/local/lib

But the problem in the end turnd out to be that the bfd library was in /usr/local/lib, and sun doesn't like that directory for libraries..
Code: [Select]
 Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
I had to create simlinks of the libraries to /usr/lib for now.

I know in linux i use ld.so.conf to configure the library paths, but from what i can see that's not the same in Solaris. And running crle told me default configuration file not found... And asking around, i was told to stay away from /usr/local/bin and /usr/local/lib
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 #14 on: May 22, 2005, 06:18:03 PM »

Hmm...strange...I have never read anything about staying away from /usr/local...no idea why they could tell that. Have you asked on a solaris mail list or forums? because I would be very interested in knowing the reasons why they tell that...and I have found that the solution to the missing ldconfig in solaris, is something like adding "-R/your/library/path" to the compilation (or linking) stage, but I have never done such thing, therefore I always need to declare LD_LIBRARY_PATH before launching my amule (in fact, I made an script which declares that only for amule ;))

Regards.
Logged
Pages: [1] 2