I am working on creating a new port that uses its own config.h. See attached.
The project compiles and builds just in clang outside of Macports but when it
is built via Macports, a number of macro redefined warnings are generated:
e.g.
./config.h:29:9: warning: 'HAVE_STDINT_H' macro redefined
Please provide a full log file for the build in Macports, and also one
for exactly what commands you run and output you get when built outside ?
On 04/08/2022 2:36 pm, Robert Kennedy wrote:
I am working on creating a new port that uses its own *config.h*. See
attached. The project compiles
On 2022-8-4 23:36 , Robert Kennedy wrote:
I am working on creating a new port that uses its own *config.h*. See
attached. The project compiles and builds just in clang outside of
Macports but when it is built via Macports, a number of macro redefined
warnings are generated:
e.g.
.*/con
On Aug 4, 2022, at 08:36, Robert Kennedy wrote:
> e.g.
> ./config.h:29:9: warning: 'HAVE_STDINT_H' macro redefined
> #define HAVE_STDINT_H
> ^
> ./config.h:42:9: note: previous definition is here
> #define HAVE_STDINT_H 1
The config.h file clearly does define HAVE_STDINT_H (empty) on
Early in config.h it says:
#ifndef LINUX
#if defined(__ppc__) || defined(__ppc64__)
#define ARCH_PPC
#elif defined(__i386__)
#define ARCH_X86
#endif
#else
#define ARCH_X86
#endif
So, on non-Linux systems, it sets ARCH_PPC when building for
rom: Ryan Schmidt
Sent: August 5, 2022 4:38 PM
To: Robert Kennedy
Cc: MacPorts Developers
Subject: Re: Issues with config.h
Early in config.h it says:
#ifndef LINUX
#if defined(__ppc__) || defined(__ppc64__)
#define ARCH_PPC
#elif defined(__i386__)
: Issues with config.h
On Aug 4, 2022, at 08:36, Robert Kennedy wrote:
> e.g.
> ./config.h:29:9: warning: 'HAVE_STDINT_H' macro redefined
> #define HAVE_STDINT_H
> ^
> ./config.h:42:9: note: previous definition is here
> #define HAVE_STDINT_H 1
The confi
On Aug 5, 2022, at 16:43, Robert Kennedy wrote:
>
> I have also patched config.h to address the ARCH issue. It now reads:
>
> #ifndef LINUX
> #if defined(__ppc__) || defined(__ppc64__)
> #define ARCH_PPC
> #elif defined(__i386__)
> #define ARCH
used in the code since as you
pointed out Intel Macs are little little-endian.
Rob
From: Ryan Schmidt
Sent: August 5, 2022 8:33 PM
To: Robert Kennedy
Cc: MacPorts Developers
Subject: Re: Issues with config.h
On Aug 5, 2022, at 16:43, Robert Kennedy wrote:
>