Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 10-25-2009, 06:38 PM   #1
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 148

Rep: Reputation: 18
"ld: fatal:" Error 1 running make on libiconv 1.13.1

I am trying to compile and install the latest libiconv 1.13.1 (downloaded directly from the official GNU site) on my installation of i386 OpenSolaris 2009.06.

1. ./configure --prefix=/usr/gnu --enable-shared --with-pic

2. make ends with this error:

libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl, -o .libs/ .libs/iconv.o .libs/localcharset.o .libs/relocatable.o -lsec -lc
Text relocation remains referenced
against symbol offset in file
aliases_lookup 0x129a6 .libs/iconv.o
aliases_lookup 0x12ee4 .libs/iconv.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[1]: *** [] Error 1
make[1]: Leaving directory `/src/libiconv-1.13.1/lib'
make: *** [all] Error 2

I have the latest binutils installed (2.20) and GCC 4.3.2 from Package Manager.
Also, the following configure options have been unsuccessfully atttempted:

./configure --prefix=/usr/gnu --enable-shared
./configure --prefix=/usr/gnu --with-pic
./configure --prefix=/usr/gnu

Any help would be appreciated! Thanks.
Old 10-25-2009, 09:49 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I'm confused about the ".libs" thing - I don't recall "iconv" creating a ".libs" directory.

Anyway - I'd suggest:

1. run "make clean"
<= Delete any binaries you might have created since your "./configure"

2. find . -name ".o" -print
<= Make *sure* you've deleted all your object binaries

3. make
<= Re-run "make" ... and hopefully you *won't* get the same error this time
Old 10-26-2009, 01:57 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
' libiconv-1.13.1/lib/ ' exists, when you unpack the tarball.

The hidden directory
' libiconv-1.13.1/lib/.libs/ ' is a created one ...
.. may be a new thing by this version .. ?


Last edited by knudfl; 10-26-2009 at 01:59 AM.


error, make, relocation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFLAGS vs EXTRA_CFLAGS, Ubuntu server 9.04 error while running "make install" Invisible-Man Linux - General 21 07-14-2009 06:31 AM
FATAL error: "Thermal" and "Fan" ibex Linux - Hardware 1 06-22-2006 06:31 AM
General question while running make "make[2]: *** [main.o] Error 1" matazar42 Linux - Software 3 08-15-2005 12:39 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
error running "make" and "arkollonrc"... Toro Linux - Software 1 04-19-2004 12:24 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration