Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14961 closed defect (worksforme)

fortune fails to build

Reported by: michael.james.barber@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: fortune build fails Cc: afb@…
Port:

Description

The fortune port fails to build on Mac OS X Leopard, v. 10.5.2, 2.4 GHz MacBook.

[~ 501] sudo port install fortune Password: ---> Fetching fortune ---> Attempting to fetch fortune-6.2.0-RELEASE.tar.bz2 from http://svn.macports.org/repository/macports/distfiles/fortune ---> Verifying checksum(s) for fortune ---> Extracting fortune ---> Applying patches to fortune ---> Configuring fortune ---> Building fortune with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune" && bsdmake all " returned error 1 Command output: ===> fortune (all) Warning: Object directory not changed from original /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/fortune cc -Os -pipe -DDEBUG -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/fortune/../strfile -DFBSDID=RCSID -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c fortune.c cc -Os -pipe -DDEBUG -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/fortune/../strfile -DFBSDID=RCSID -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -o fortune fortune.o gzip -cn fortune.6 > fortune.6.gz ===> strfile (all) Warning: Object directory not changed from original /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/strfile cc -Os -pipe -DFBSDID=RCSID -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c strfile.c cc -Os -pipe -DFBSDID=RCSID -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -o strfile strfile.o gzip -cn strfile.8 > strfile.8.gz ===> datfiles (all) PATH=$PATH:/usr/games:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/datfiles/../strfile strfile -Cs fortunes fortunes.dat strfile: illegal option -- C strfile [-iorsx] [-c char] sourcefile [datafile] * Error code 1

Stop in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune/datfiles. * Error code 1

Stop in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_fortune/work/fortune.

Error: Status 1 encountered during processing. [~ 502]

Change History (4)

comment:1 Changed 17 years ago by afb@…

I guess that error could happen, if you had an old strfile in the PATH...

Patching the Makefile to add $PATH at the end instead of at the start, sounds like it could be a workaround. Are you able to verify that ?

PATH=${.OBJDIR}/../strfile:/usr/games:$$PATH \

comment:2 Changed 17 years ago by michael.james.barber@…

I did have an old strfile in the PATH at /usr/bin/strfile, from the fortune program at http://www.vushta.com/fortune/ -- wasn't happy how it worked. Not sure which Makefile to change, so I got rid of the strfile, and fortune now builds successfully.

comment:3 Changed 17 years ago by afb@…

Resolution: worksforme
Status: newclosed

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.