unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Christian Jullien" <eligis@orange.fr>
To: "'Andy Wingo'" <wingo@pobox.com>
Cc: 24681@debbugs.gnu.org
Subject: bug#24681: undefined reference to `mktime_internal' on solaris sparc
Date: Thu, 2 Mar 2017 06:19:58 +0100	[thread overview]
Message-ID: <003a01d29314$a37bbc30$ea733490$@orange.fr> (raw)
In-Reply-To: <871suhi2r2.fsf@pobox.com>

Thank you Andy,

By stable-2.0 branch, if you mean guile-2.0.14.tar.gz, I'm afraid this issue is still there.

[jullien@pastre]~$ cd guile-2.0.14

[jullien@pastre]guile-2.0.14$ uname -a
SunOS pastre 5.10 Generic_147147-26 sun4u sparc SUNW,Ultra-5_10 Solaris

[jullien@pastre]guile-2.0.14$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc-sun-solaris2.10/6.2.0/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ../configure --with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld --enable-shared --disable-lto --disable-nls --enable-languages=c,c++
Thread model: posix
gcc version 6.2.0 (GCC)

[jullien@pastre]PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure; time make
...
make[2]: Entering directory '/export/home/jullien/guile-2.0.14/libguile'
make  all-am
make[3]: Entering directory '/export/home/jullien/guile-2.0.14/libguile'
  CCLD     guile
./.libs/libguile-2.0.so: undefined reference to `mktime_internal'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:2327: guile] Error 1
make[3]: Leaving directory '/export/home/jullien/guile-2.0.14/libguile'
make[2]: *** [Makefile:2186: all] Error 2
make[2]: Leaving directory '/export/home/jullien/guile-2.0.14/libguile'
make[1]: *** [Makefile:1841: all-recursive] Error 1
make[1]: Leaving directory '/export/home/jullien/guile-2.0.14'
make: *** [Makefile:1727: all] Error 2

I'll be glad to help you and to make more tests (Btw I'm also a lisp compiler writer https://en.wikipedia.org/wiki/OpenLisp)

-----Original Message-----
From: Andy Wingo [mailto:wingo@pobox.com] 
Sent: mercredi 1 mars 2017 13:46
To: Christian Jullien
Cc: 24681@debbugs.gnu.org
Subject: Re: bug#24681: undefined reference to `mktime_internal' on solaris sparc

Hi Christian,

On Thu 13 Oct 2016 08:03, "Christian Jullien" <eligis@orange.fr> writes:

> Trying to compile guile on solaris sparcs (I’m using gcc 6.2) I get:
>
> CC guile-guile.o
>
> CCLD guile
>
> ./.libs/libguile-2.0.so: undefined reference to `mktime_internal'
>
> collect2: error: ld returned 1 exit status

This appears to be a Gnulib problem of some kind.  See:

  https://lists.gnu.org/archive/html/guile-devel/2016-07/msg00012.html

I believe that after updating gnulib, one of the modules we pulled in added this mktime-internal dependency.  It should be built on platforms that require it, and not otherwise.  It appears that your platform requires it but is not building it; irritating!  

I just updated Gnulib again today; I wonder if it fixes this problem.
Are you able to build from git?  If so can you try the stable-2.0 branch?

Andy






  reply	other threads:[~2017-03-02  5:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13  6:03 bug#24681: undefined reference to `mktime_internal' on solaris sparc Christian Jullien
2017-03-01 12:46 ` Andy Wingo
2017-03-02  5:19   ` Christian Jullien [this message]
2017-03-02  7:38     ` Andy Wingo
2017-03-16  5:33   ` Christian Jullien
2017-03-02  8:04 ` bug#24681: RE : " Christian JULLIEN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003a01d29314$a37bbc30$ea733490$@orange.fr' \
    --to=eligis@orange.fr \
    --cc=24681@debbugs.gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).