Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#71108 closed defect (fixed)

lv @4.51: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

Reported by: kazu-yamamoto (Kazu Yamamoto) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: sequoia Cc:
Port: lv

Description

"lv" cannot be installed because its "configure" cannot find GCC:

% sudo port install lv
...
--->  Configuring lv
Error: Failed to configure lv: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/work/lv451/build/config.log
Error: Failed to configure lv: configure failure: command execution failed
% tail 30 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/main.log
tail: 30: No such file or directory
==> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/main.log <==
:info:configure configure: error: installation or configuration problem: C compiler cannot create executables.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/work/lv451/build" && ../src/configure --prefix=/opt/local 
:info:configure Exit code: 1
:error:configure Failed to configure lv: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/work/lv451/build/config.log
:error:configure Failed to configure lv: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/main.log for details.
% cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_lv/lv/work/lv451/build" 
% sudo ../src/configure --prefix=/opt/local 
loading cache ./config.cache
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

After "autoreconf -i", I was able to install "lv".

Attachments (1)

config.log (1.2 KB) - added by kazu-yamamoto (Kazu Yamamoto) 3 weeks ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 3 weeks ago by kazu-yamamoto (Kazu Yamamoto)

Port: lv added
Version: 2.10.2

comment:2 Changed 3 weeks ago by jmroot (Joshua Root)

Can you please attach the config.log?

Changed 3 weeks ago by kazu-yamamoto (Kazu Yamamoto)

Attachment: config.log added

comment:3 Changed 3 weeks ago by kazu-yamamoto (Kazu Yamamoto)

OK. Attached.

comment:4 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia added
Summary: lv @4.51 cannot be installed on Sequoialv @4.51: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]

It says the problem was:

configure:678:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  678 | main(){return(0);}
      | ^
      | int
1 error generated.

This could be fixed by patching instead of running autoreconf. Or are there other reasons why we need to run autoreconf?

comment:5 Changed 3 weeks ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 882ff8470a01810e330633275b55a2943fd020bd/macports-ports (master):

lv: fix implicit int errors

Closes: #71108

comment:6 Changed 3 weeks ago by kazu-yamamoto (Kazu Yamamoto)

No reason to run autoconf. I just wanted to tell that configure is suspicious.

comment:7 Changed 3 weeks ago by kazu-yamamoto (Kazu Yamamoto)

I confirmed that this issue has been fixed. Thank you!

Note: See TracTickets for help on using tickets.