New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13387 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

BUG: swi-prolog 5.6.47 won't compile on Leopard

Reported by: darren.bane@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: wielemak@…,pmoura@…
Port:

Description

swi-prolog-5.6.47

!snip!

gcc -c -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_swi-prolog/work/pl-5.6.47/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_swi-prolog/work/pl-5.6.47/src/rc -Wall -O3 -fno-strict-aliasing -O2 -no-cpp-precomp -fno-common pl-rl.c -o pl-rl.o
pl-rl.c: In function 'rl_sighandler':
pl-rl.c:322: warning: implicit declaration of function 'rl_reset_after_signal'
pl-rl.c: In function 'event_hook':
pl-rl.c:356: warning: implicit declaration of function 'rl_forced_update_display'
pl-rl.c: In function 'Sread_readline':
pl-rl.c:456: warning: implicit declaration of function 'rl_discard_argument'
pl-rl.c: In function 'prolog_complete':
pl-rl.c:511: warning: implicit declaration of function 'rl_delete'
pl-rl.c: In function 'PL_install_readline':
pl-rl.c:558: error: 'rl_catch_signals' undeclared (first use in this function)
pl-rl.c:558: error: (Each undeclared identifier is reported only once
pl-rl.c:558: error: for each function it appears in.)
pl-rl.c:566: warning: passing argument 2 of 'rl_add_defun' from incompatible pointer type
make[1]: *** [pl-rl.o] Error 1
make: *** [lite] Error 2

Error: Status 1 encountered during processing.

Installing readline from MacPorts fixed the problem, so I'd recommend replacing lib:libreadline:readline entry in depends_lib with port:readline.

Attachments

Portfile (2.9 KB) - added by pmoura@… 6 years ago.

Change History

Changed 6 years ago by pmoura@…

comment:1 Changed 6 years ago by pmoura@…

The new attached portfile includes the patch suggested above and some fixes for building meta-packages.

comment:2 Changed 5 years ago by ryandesign@…

  • Owner changed from macports-dev@… to ryandesign@…

comment:3 Changed 5 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

The lib:libreadline:readline dependency was changed to port:readline as part of r31733 in #13461.

Paulo, in the future, please either provide portfile diffs, or if you must provide complete portfiles, then please leave the $Id$ tag at the top intact so I'll know what revision of the portfile the changes are based on.

comment:4 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.