[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: useful bug reports
From: |
Harald Dunkel |
Subject: |
Re: useful bug reports |
Date: |
Tue, 15 Nov 2005 17:12:33 +0100 |
User-agent: |
Debian Thunderbird 1.0.7 (X11/20051019) |
Hi Ralf,
Ralf Wildenhues wrote:
>
> Harald, please consider *providing more and useful information* if you
> want help. I for one can't read your mind, and almost every first post
> of yours leaves me wanting for a crystal ball as to what has gone wrong.
> This makes me for one be less and less enthusiastic about replying.
> With newbies, or people where I do not know whether they are newbies or
> not, one cannot expect more, at least the first couple of times they
> post. But you bee given hints before. This is no service hotline.
> I heartily recommend reading this (available in several languages):
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
>
> We have now again wasted 5 messages without getting to the point of the
> problem you encounter: I still have no clue what's going wrong on your
> side, and I bet you aren't happy about the situation either.
>
Sorry for not being more precise.
Here is a sample.
#configure.ac:
AC_INIT(package,version)
AC_CONFIG_AUX_DIR([.])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign subdir-objects no-define])
AC_PROG_CC
AC_PROG_CPP
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_PROG_INSTALL
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_RANLIB
AC_HEADER_STDC
AM_PROG_CC_C_O
AM_PROG_LEX
AC_PROG_YACC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
#Makefile.am:
noinst_PROGRAMS = hello
hello_SOURCES = hello.cxx
Autoconf is 2.59, plus Stepan's patch for c.m4, see attachment
Automake is 1.9.6
platform is Linux
build platform is Windows, using MSVC 7.1.
The patch provided by Stepan some months ago fixes
AM_PROG_CC_C_O for Windows and MSVC, i.e. configure recognizes
that -c -o doesn't work as expected for Bill Gates' compiler.
Looking into the generated Makefile I see
CC = /somedir/compile cl.exe
The compile script is necessary for both C and C++ code. But
it is not copied by Automake. Nor does it set CXX accordingly.
in the Makefile.
The patch I had sent was an attempt to workaround the problem,
but it is not sufficient. Any help would be highly appreciated.
Regards
Harri
--- Begin Message ---
Subject: |
Re: AC_PROG_CC_C_O doesn't work with VC++ |
Date: |
Fri, 1 Jul 2005 12:58:16 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Fri, Jul 01, 2005 at 10:14:28AM +0200, Harald Dunkel wrote:
> It seems that AC_PROG_CC_C_O does not work with Microsoft's
> Visual C++ 13.10.3077.
[...]
> cl -c -o somedir/conftest.obj conftest.c
> or
> cl -c -o xyz.obj conftest.c
>
> do not work as expected. cl silently ignores the -o
> option if there is a -c.
the patch attached to this mail (relative to current autoconf CVS)
should fix it.
OK to commit?
> How can I tell autoconf to not use -c and -o together,
> regardless what the test said?
Do I guess correctly that you in fact use AM_PROG_CC_C?
Then the following hack should work:
AC_PROG_CC_C_O
eval ac_cv_prog_cc_${ac_cc}_c_o=no
AM_PROG_CC_C_O
(The configure output still says that -c -o works, and NO_MINUS_C_MINUS_O
is not defined in your config.h, but it doesn't matter.)
Have a nice day,
Stepan
autoconf-20050701-cc-c-o.patch
Description: Text document
--- End Message ---
- compile not copied? Why?, Harald Dunkel, 2005/11/07
- Re: compile not copied? Why?, Tom Tromey, 2005/11/12
- [Patch] Re: compile not copied? Why?, Harald Dunkel, 2005/11/13
- Re: [Patch] Re: compile not copied? Why?, Ralf Wildenhues, 2005/11/13
- Re: [Patch] Re: compile not copied? Why?, Harald Dunkel, 2005/11/13
- Re: compile not copied? Why?, n.g., 2005/11/14
- useful bug reports (was: [Patch] Re: compile not copied? Why?), Ralf Wildenhues, 2005/11/14
- Re: useful bug reports,
Harald Dunkel <=
- Re: useful bug reports, Harald Dunkel, 2005/11/15
- Re: useful bug reports, Ralf Wildenhues, 2005/11/15
- Re: useful bug reports, Ralf Wildenhues, 2005/11/15
- Re: useful bug reports, Harald Dunkel, 2005/11/16
- autotools support for msvc (was: useful bug reports), Ralf Wildenhues, 2005/11/16
- Re: autotools support for msvc, Harald Dunkel, 2005/11/18