[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] automake & configure (m4-1.4.1)



You need to either install the debug mintlib libraries or make sure
CFLAGS doesn't have -g in it.

Alan.

On Fri, 2010-08-13 at 20:12 +0100, Matt Waller wrote:
> Hi,
> I'm trying to do a few simple things to check my system is set up &
> build some confidence..
> I thought I'd try and get m4-1.4.1 to compile from source [because
> there's already one in sparemint, and I'd guess m4 is a fairly basic
> gnu utility]
> Anyway, I try ./configure and it generates a config.h file, and then
> when I make, I get lots of redefined symbols,
> I could manually mess with config.h so it gets closer to compiling.
> But I'd rather figure out the reasons for configure not doing its job
> correctly.
> 
> 
> Here are some lines from configure that don't seem right:
> checking for library containing strerror... no
> checking for tmpfile... no
> 
> 
> and config.log suggests its looking for c_g?
> Any obvious things I should check? Any obvious libraries I don't have?
> 
> 
> thanks,
> Matt.
> 
> 
> configure:2796: checking for library containing strerror
> configure:2826: gcc -o conftest -g -O2   conftest.c  >&5
> /usr/bin/ld: cannot find -lc_g
> collect2: ld returned 1 exit status
> configure:2832: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | 
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PRODUCT "m4"
> | #define VERSION "1.4.1"
> | /* end confdefs.h.  */
> | 
> | /* Override any gcc2 internal prototype to avoid an error.  */
> | #ifdef __cplusplus
> | extern "C"
> | #endif
> | /* We use char because int might match the return type of a gcc2
> |    builtin and then its argument prototype would still apply.  */
> | char strerror ();
> | int
> | main ()
> | {
> | strerror ();
> |   ;
> |   return 0;
> | }
> 
>