ComposersDesktop / CDP8

New version of CDP software
GNU Lesser General Public License v2.1
90 stars 3 forks source link

Cannot finish configure script while trying to compile libaaio #6

Open poliana-girl opened 4 months ago

poliana-girl commented 4 months ago

While trying to run the configure script I get a weird error on my system. I'm on Fedora 40.

$ ./configure --prefix=/usr/local
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Here is my config.log file as well:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:731: checking for a BSD compatible install
configure:784: checking whether build environment is sane
configure:841: checking whether make sets ${MAKE}
configure:887: checking for working aclocal-1.4
configure:900: checking for working autoconf
configure:913: checking for working automake-1.4
configure:926: checking for working autoheader
configure:939: checking for working makeinfo
configure:957: checking for gcc
configure:1070: checking whether the C compiler (gcc  ) works
configure:1086: gcc -o conftest    conftest.c  1>&5
configure:1083:1: error: return type defaults to 'int' [-Wimplicit-int]
 1083 | main(){return(0);}
      | ^~~~
configure: failed program was:

#line 1081 "configure"
#include "confdefs.h"

main(){return(0);}

Anyone have any idea why this might be happening? Thank you.

yamzee commented 4 months ago

Experiencing the same issue when running configure for libaaio with gcc (GCC) 14.1.1 20240507 on kernel 6.8.9-arch1-2.

defaultxr commented 4 months ago

For me, commenting lines 1107-1109 of the configure script bypasses the check and seems to allow ./configure to complete.

richarddobson commented 4 months ago

Probably the best fix is to add the missing int type declaration to the test C program in line 1083 (see also line 1195 etc). This isn't CDP code, so modifying the config file feels like somewthing we should consider carefully, though I have seen no evidence of it being maintained/updated by the author since 2005. RD.

On 27/05/2024 07:11, modula t. wrote:

For me, commenting lines 1107-1109 of the |configure| script bypasses the check and seems to allow |./configure| to complete.

— Reply to this email directly, view it on GitHub https://github.com/ComposersDesktop/CDP8/issues/6#issuecomment-2132713399, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNHS4XCS7GMVCXQUWXGI33ZELFCDAVCNFSM6AAAAABIKBS7CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSG4YTGMZZHE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sonofred commented 4 months ago

I did this in libaaio src dir: export CFLAGS='-std-c89' and then ./configure --prefix=/usr/local

It compiles fine - but still having problems with the portaudio (paplay etc.) when trying to compile cdp itself.

syltensylten commented 8 hours ago

Hello, im having trouble with the same error message. After running

sudo ./configure --prefix=/usr/local
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

I have reinstalled base-devel and tried to comment out lines 1107-1109 per defaultxr's suggestion. However im still stuck. I tried to compile a simple .c program with GCC and it worked. I have aclocal-1.17 installed.

richarddobson commented 7 hours ago

Is this not the same problem reported earlier - edit the configure file to add "int " before "main" (there are/were two instances where this was omitted by accident: around lines 1083 and 1195). I have just tested it again on my Ubuntu setup, and it all passes. Maybe I should simply rezip libaaio with the corrected configure file? I will need to know that that edit fixes things. RD.

On 06/10/2024 13:51, syltensylten wrote:

Hello, im having trouble with the same error message. After running

|sudo ./configure --prefix=/usr/local |

|creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. |

I have reinstalled base-devel and tried to comment out lines 1107-1109 per defaultxr's suggestion. However im still stuck. I tried to compile a simple .c program with GCC and it worked. I have aclocal-1.17 installed.

— Reply to this email directly, view it on GitHub <https://github.com/ ComposersDesktop/CDP8/issues/6#issuecomment-2395429327>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ ABNHS4WFF3OTNIKSQMES3LDZ2EW6TAVCNFSM6AAAAABIKBS7CSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQZDSMZSG4>. You are receiving this because you commented.Message ID: @.***>