After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 78302 - libtool problems on HP/UX
libtool problems on HP/UX
Status: RESOLVED NOTGNOME
Product: glib
Classification: Platform
Component: general
2.0.x
Other HP-UX
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 87837 88234 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-04-10 17:34 UTC by Arnaud Charlet
Modified: 2011-02-18 15:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Hack to get glib build under HP-UX (1.19 KB, patch)
2002-06-13 09:55 UTC, Arnaud Charlet
none Details | Review

Description Arnaud Charlet 2002-04-10 17:34:36 UTC
Using GCC 3.0.1, glib configured with
--prefix=/opt/gtk-2.0 --with-libiconv, make gives:

<<<
...
/usr/ccs/bin/ld -b +h libglib-2.0.sl.0 +b /opt/gtk-2.0/lib -o
.libs/libglib-2.0.sl.0.1  garray.lo gasyncqueue.lo gbacktrace.lo
gbsearcharray.lo gcache.lo gcompletion.lo gconvert.lo gdataset.lo gdate.lo
gdir.lo gerror.lo gfileutils.lo ghash.lo ghook.lo giochannel.lo glist.lo
gmain.lo gmarkup.lo gmem.lo gmessages.lo gnode.lo gpattern.lo gprimes.lo
gqsort.lo gqueue.lo grel.lo grand.lo gscanner.lo gshell.lo gslist.lo
gstrfuncs.lo gstring.lo gthread.lo gthreadpool.lo gtimer.lo gtree.lo
guniprop.lo gutf8.lo gunibreak.lo gunicollate.lo gunidecomp.lo gutils.lo
giounix.lo gspawn.lo .libs/libglib-2.0.lax/libcharset.al/localcharset.lo  
-L/opt/gtk-2.0/lib libcharset/.libs/libcharset.al -R/opt/gtk-2.0/lib -lc
/opt/gtk-2.0/lib/libiconv.sl /opt/gtk-2.0/lib/libintl.sl -lc 
/usr/ccs/bin/ld: Invalid numeric argument for -R/opt/gtk-2.0/lib
make[3]: *** [libglib-2.0.la] Error 1
>>

It seems that libtool is adding a -R option to ld, which is wrong
under HP-UX.

Arno, for the GtkAda team
Comment 1 Arnaud Charlet 2002-04-25 15:41:12 UTC
May I suggest that you update the version of libtool.m4 used
by glib/pango/atk/gtk ? This would probably solve this problem,
as well as others (like builds under Windows, which also require
a recent version of libtool).

Arno
Comment 2 Owen Taylor 2002-05-13 22:10:04 UTC
I accidentally did 'make dist' for 2.0.1 on a machine with
an old copy of libtool. Will make sure that that doesn't
happen for 2.0.3.
Comment 3 Arnaud Charlet 2002-06-05 12:55:52 UTC
Unfortunately the same problem is still there with glib 2.0.3

Arno
Comment 4 Owen Taylor 2002-06-11 21:18:15 UTC
The libtool.m4 in glib-2.0.3 is that from libtool-1.4.2;
the latest stable release of libtool.

===
$ rpm -qf /usr/share/aclocal/libtool.m4
libtool-1.4.2-8

$ grep -C serial /usr/share/aclocal/libtool.m4
## the same distribution terms that you use for the rest of that program.

# serial 46 AC_PROG_LIBTOOL

AC_DEFUN([AC_PROG_LIBTOOL],

$ grep -C serial aclocal.m4
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-

# serial 46 AC_PROG_LIBTOOL

AC_DEFUN([AC_PROG_LIBTOOL],
===

Looking at this version of libtool.m4, I can't see how
it would add -R for HP-UX.

Maybe you could debug further?
Comment 5 Arnaud Charlet 2002-06-13 09:55:47 UTC
Created attachment 9189 [details] [review]
Hack to get glib build under HP-UX
Comment 6 Arnaud Charlet 2002-06-13 09:56:27 UTC
Well, here is the (ugly) patch that I use to build glib
(and pango, atk, gtk) under HP-UX (attachement put in bugzilla).

This patch is clearly wrong, but works for HP-UX, and shows how
-R options get passed on all platforms.

Arno
Comment 7 Owen Taylor 2002-07-25 22:42:50 UTC
*** Bug 88234 has been marked as a duplicate of this bug. ***
Comment 8 MG 2002-10-01 12:29:09 UTC
I know his bug is a duplicate of 78302.
I brought this to the attention of the libtool developers and they 
think it is a gettext problem.

I`ve test it by remove  '-R/usr/local/lib' 
from "/usr/local/lib/libintl.la".

It seems to solve the problem on hpux with glib-2.0.x
Comment 9 Owen Taylor 2002-10-14 22:20:20 UTC
*** Bug 88234 has been marked as a duplicate of this bug. ***
Comment 10 Owen Taylor 2002-11-05 18:04:40 UTC
*** Bug 87837 has been marked as a duplicate of this bug. ***
Comment 11 Matthias Clasen 2002-11-21 19:08:37 UTC
Move bugs from earlier 2.0.x milestones to 2.0.8.
Comment 12 Owen Taylor 2002-11-26 15:21:35 UTC
Can you check if this has been fixed with current versions
of gettext/libintl? If so, I think we can resolve this
NOTGNOME.

Comment 13 Owen Taylor 2002-12-04 02:06:17 UTC
Please reopen if you add more information.
Comment 14 mmokrejs 2003-02-12 23:22:25 UTC
I think now it got finally fixed in gettext cvs sources!

2003-01-03  Albert Chin  <libtool@thewrittenword.com>

        * ltmain.sh: Don't pass -R flags found in a .la's dependency_libs
        variable directly down to the linker.
        Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
Comment 15 Kjartan Maraas 2003-10-29 11:45:12 UTC
Maybe this should be closed based on the latst comment?
Comment 16 alexander.winston 2004-02-09 18:35:45 UTC
Kjartan: I do think so.
Comment 17 Sebastian Wilhelmi 2004-02-28 09:21:26 UTC
Seems to be fixed in libtool