gnome2.ORBit2: fix the build on aarch64-darwin (#462192)

This commit is contained in:
Silvan Mosberger
2025-11-16 11:51:10 +00:00
committed by GitHub
2 changed files with 124 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
patches = [ ./implicit-int.patch ];
# Processing file orbit-interface.idl # Processing file orbit-interface.idl
# sh: gcc: not found # sh: gcc: not found
# output does not contain binaries for build # output does not contain binaries for build

View File

@@ -0,0 +1,122 @@
Fix:
error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
--- a/configure 2024-09-30 16:47:50.000000000 -0500
+++ b/configure 2024-09-30 16:53:58.000000000 -0500
@@ -12346,7 +12346,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
- main ()
+ int main(void)
{
return 0;
}
@@ -12387,7 +12387,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_octet s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12434,7 +12434,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_boolean s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12481,7 +12481,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_char s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12528,7 +12528,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_wchar s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12575,7 +12575,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_short s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12622,7 +12622,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_long s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12669,7 +12669,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_long_long s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12716,7 +12716,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_float s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12763,7 +12763,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_double s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12810,7 +12810,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_long_double s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12857,7 +12857,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_struct s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -12904,7 +12904,7 @@
typedef struct {char s1;} CORBA_struct;
typedef void *CORBA_pointer;
struct test {char s1; CORBA_pointer s2;};
- main()
+ int main(void)
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);