Opened 12 years ago

Closed 12 years ago

#35333 closed defect (fixed)

agrep: error: non-void function 'asearch1' should return a value

Reported by: david.s.nunn@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: clang Cc:
Port: agrep

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Newly installed Mac OSX 10.8 (Mountain Lion); newly installed XCode 4.4, with command lines downloaded;

% sudo port -f uninstall installed
% sudo port clean all

reinstalled macports from MacPorts-2.1.2-10.8-MountainLion.pkg [all good so far]

% sudo port install agrep

Installing agrep failed. From the [attached] logfile, problems in agrep.h

Attachments (1)

agrep.main.log (12.7 KB) - added by david.s.nunn@… 12 years ago.
main.log from sudo port install agrep

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by david.s.nunn@…

Attachment: agrep.main.log added

main.log from sudo port install agrep

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: clang added
Port: agrep added
Summary: port install agrep failsagrep: error: non-void function 'asearch1' should return a value

comment:2 Changed 12 years ago by david.s.nunn@…

If you're desperate (like me):

edit
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_agrep/agrep/work/agrep-2.04/Makefile 
  by adding "  -Wno-return-type" to the CFLAGS line. 
Then:
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_agrep/agrep/work/agrep-2.04;
[sudo] make;
[sudo] cp agrep /usr/local/bin/;

Resulting agrep seems to work fine

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Clang is right, the code is invalid.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.