[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNUnet-developers] GNUnet-0.5.4 on Solaris 9
From: |
Kenneth Stailey |
Subject: |
Re: [GNUnet-developers] GNUnet-0.5.4 on Solaris 9 |
Date: |
Thu, 5 Jun 2003 18:34:44 -0700 (PDT) |
The same problem with -R happened with glib but it's so messy. The problem is
that "glib-config -libs" does not spit out the -R option even though it is a
requirement.
$ glib-config --cflags
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
$ glib-config --libs
-L/usr/local/lib -lglib
One of those options should cause "-R/usr/local/lib" to be emitted.
$ glib-config --spit-out-what-it-takes-to-really-link-something
-L/usr/local/lib -lglib -R/usr/local/lib
--- Kenneth Stailey <address@hidden> wrote:
>
> --- Kenneth Stailey <address@hidden> wrote:
> > I'm trying to build GNUnet-0.5.4 on Solaris 9.
> >
> > The first problem I ran into is that there is a ld option needed to find
> the
> > libstdc++.so.5 library. That option is the RPATH option -R. It must be
> set
> > so
> > that it includes /usr/local/lib since that's where the libstdc++.so.5
> library
> > is.
> >
> > There is probably a better way to do what the following patch does but it
> > works. Without it ./configure fails trying to test the C++ compiler output.
> >
> > $ rcsdiff -u -r1.1 -r1.2 configure.ac
> > ===================================================================
> > RCS file: RCS/configure.ac,v
> > retrieving revision 1.1
> > retrieving revision 1.2
> > diff -u -r1.1 -r1.2
> > --- /tmp/T0dSaq0e Thu Jun 5 20:50:43 2003
> > +++ /tmp/T1eSaq0e Thu Jun 5 20:50:43 2003
> > @@ -1,4 +1,4 @@
> > -# $Id: configure.ac,v 1.1 2003/06/05 23:52:35 kstailey Exp $
> > +# $Id: configure.ac,v 1.2 2003/06/06 00:44:30 kstailey Exp $
> > # This file is part of GNUnet.
> > # (C) 2001, 2002, 2003 Christian Grothoff (and other contributing authors)
> > #
> > @@ -31,6 +31,14 @@
> > AM_INIT_AUTOMAKE([GNUnet], [0.5.4])
> > AM_CONFIG_HEADER([src/include/autodefs.h])
> >
> > +if test -x /bin/uname ; then
> > + case "`/bin/uname`" in
> > + SunOS)
> > + CXXFLAGS="$CXXFLAGS -Xlinker -R/usr/local/lib:/usr/lib:/usr/sfw/lib"
> > + ;;
> > + esac
> > +fi
> > +
> > # Checks for programs.
> > AC_PROG_CXX
> > AC_PROG_AWK
>
> It bombed out further into ./configure for a similar reason. I'm using the
> SunFreeware packages for OpenSSL. I think Sun offers their own package. I
> am
> using an RPATH that includes both the SunFreeware and the Sun library
> directories.
>
> I'll hold off on posting configure.ac patches until it runs all the way
> through.
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com