unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: 白井彰 <okshirai@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: Akira Shirai <okshirai@gmail.com>, 20332@debbugs.gnu.org
Subject: bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later"
Date: Fri, 17 Apr 2015 01:42:36 +0900	[thread overview]
Message-ID: <16ED6729-0CC5-4030-AC5E-8FA593A40B75@gmail.com> (raw)
In-Reply-To: <gntwwhz2zz.fsf@fencepost.gnu.org>

Adding -Xs works.  Thanks.

$ cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
usage: cc [ options] files.  Use 'cc -flags' for details
$ cc -flags | egrep '^-E|^-Xs'
-E              Compile source through preprocessor only, output to stdout
-Xs             Compile assuming (pre-ANSI) K & R C style code

$ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E -Xs aaa_emacs-24.5.c
# 1 "aaa_emacs-24.5.c"
version 6b or later
$ echo $?
0

> 2015/04/16 2:59、Glenn Morris <rgm@gnu.org> のメール:
> 
> 
>> $ echo 'version 6b or later' > aaa_emacs-24.5.c; cc -E aaa_emacs-24.5.c
>> # 1 "aaa_emacs-24.5.c"
>> "aaa_emacs-24.5.c", line 1: invalid input token: 6b
>> version  6b or later
>> #ident "acomp: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12"
>> cc: acomp failed for aaa_emacs-24.5.c
>> $ echo $?
>> 2
> 
> Funnily enough, our own etc/PROBLEMS file used to contain a solution for
> this very issue:
> 
>    *** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc''
> 
>    The final stage of the Emacs configure process uses the C preprocessor
>    to generate the Makefiles.  Errors of this form can occur if the C
>    preprocessor inserts extra whitespace into its output.  The solution
>    is to find the switches that stop your preprocessor from inserting extra
>    whitespace, add them to CPPFLAGS, and re-run configure.  For example,
>    this error can occur on Solaris 10 when using the Sun Studio compiler
>    ``Sun C 5.8'' with its preprocessor CPP="/opt/SUNWspro/bin/cc -E".
>    The relevant switch in this case is "-Xs" (``compile assuming
>    (pre-ANSI) K & R C style code'').
> 
> And indeed adding -Xs seems to avoid the issue.
> 
> I don't think this is a real solution to this case,
> just a historical curiosity. :)






  reply	other threads:[~2015-04-16 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 16:47 bug#20332: 24.5; With jpeg-6b configure says "WARNING: libjpeg found, but not version 6b or later" 白井彰
2015-04-15 12:25 ` Petr Hracek
2015-04-15 15:36   ` Glenn Morris
2015-04-15 17:59 ` Glenn Morris
2015-04-16 16:42   ` 白井彰 [this message]
2015-04-16  1:37 ` Paul Eggert
2015-04-16 16:40   ` 白井彰

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/emacs/

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

  git send-email \
    --in-reply-to=16ED6729-0CC5-4030-AC5E-8FA593A40B75@gmail.com \
    --to=okshirai@gmail.com \
    --cc=20332@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).