Opened 13 years ago

Closed 7 years ago

#30046 closed defect (fixed)

swi-prolog-devel uses system ncurses rather than MacPorts

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: pmoura (Paulo Moura)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: J.Wielemaker@…
Port: swi-prolog-devel

Description

From the compilation of swi-prolog-devel 5.11.24

/Developer/usr/bin/clang -dynamiclib -current_version 5.11.24 \
			-install_name /opt/local/lib/swipl-5.11.24/lib/i386-darwin11.0.0/libswipl.dylib \
			-O2 -fno-strict-aliasing -o ../lib/i386-darwin11.0.0/libswipl.dylib \
			pl-atom.o pl-wam.o pl-arith.o pl-bag.o pl-error.o pl-comp.o pl-rc.o pl-dwim.o pl-ext.o pl-flag.o pl-funct.o pl-gc.o pl-privitf.o pl-list.o pl-load.o pl-modul.o pl-op.o pl-prims.o pl-pro.o pl-proc.o pl-prof.o pl-read.o pl-rec.o pl-rl.o pl-setup.o pl-sys.o pl-trace.o pl-util.o pl-wic.o pl-write.o pl-term.o pl-thread.o pl-xterm.o pl-prologflag.o pl-beos.o pl-attvar.o pl-gvar.o pl-btree.o pl-main.o pl-gmp.o pl-tai.o pl-segstack.o pl-hash.o pl-version.o pl-codetable.o pl-supervisor.o pl-dbref.o pl-termhash.o pl-codelist.o pl-variant.o pl-copyterm.o os/pl-buffer.o os/pl-ctype.o os/pl-file.o os/pl-files.o os/pl-glob.o os/pl-os.o os/pl-stream.o os/pl-string.o os/pl-table.o os/pl-text.o os/pl-utf8.o os/pl-fmt.o os/pl-dtoa.o os/pl-option.o os/pl-cstack.o rc/access.o rc/build.o rc/html.o rc/util.o libtai/caltime_utc.o libtai/caltime_tai.o libtai/leapsecs_sub.o libtai/leapsecs_add.o libtai/caldate_fmjd.o libtai/caldate_mjd.o libtai/leapsecs_init.o libtai/leapsecs_read.o libtai/tai_pack.o libtai/tai_unpack.o  -arch x86_64 -pthread   -lncurses -lm -lrt -ldl  /opt/local/lib/libreadline.dylib

I did not try the other swi-prolog variants, but I suspect they have the same flaw. The link line should have an -L${prefix}/lib in it

Change History (3)

comment:1 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

~/src/macports/dports/lang/swi-prolog-devel/work/pl-5.11.24/lib/i386-darwin11.0.0 $ otool -L libswipl.dylib 
libswipl.dylib:
	/opt/local/lib/swipl-5.11.24/lib/i386-darwin11.0.0/libswipl.dylib (compatibility version 0.0.0, current version 5.11.24)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
	/opt/local/lib/libreadline.6.2.dylib (compatibility version 6.0.0, current version 6.2.0)

comment:2 Changed 13 years ago by jmroot (Joshua Root)

It would normally be OK because we set CPATH and LIBRARY_PATH, but this port changes them and actually puts /usr/{include,lib} first.

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

Resolution: fixed
Status: newclosed

Linking seems to be OK in the current version.

Note: See TracTickets for help on using tickets.