Opened 10 days ago

Last modified 10 days ago

#63020 new defect

xephem @4.0.1: install fails with "ld: library not found for -lXp"

Reported by: vidakris Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: bigsur arm64 Cc:
Port: xephem

Description

Install fails when calling make:

$ /usr/bin/make -j1 -w MOTIF=../../libXm/osx CC=/usr/bin/clang

...

/usr/bin/clang -L../../libastro -L../../libip -L../../liblilxml -L../../libjpegd -L../../libpng -L../../libz -g -L../../libXm/osx -o xephem aavso.o annotmenu.o broadcast.o calmenu.o closemenu.o compiler.o coordsmenu.o datamenu.o db.o dbmenu.o earthmap.o earthmenu.o fallbacks.o favmenu.o formats.o fsmenu.o gallerymenu.o glance.o gsc.o gscnet.o helpmenu.o homeio.o hznmenu.o indimenu.o imregmenu.o jpeg2pm.o jupmenu.o listmenu.o mainmenu.o marsmenu.o marsmmenu.o moonmenu.o moviemenu.o msgmenu.o netmenu.o objmenu.o obslog.o patchlevel.o plot_aux.o plotmenu.o preferences.o progress.o ps.o query.o rotated.o satmenu.o saveres.o scope.o sites.o skybinary.o skyeyep.o skyfifos.o skyfiltmenu.o skyfits.o skyhist.o skyip.o skylist.o skytoolbar.o skyviewmenu.o solsysmenu.o splash.o srchmenu.o sunmenu.o time.o tips.o trailmenu.o uranusmenu.o ucac.o usno.o versionmenu.o webdbmenu.o xe2.o xe3.o xephem.o xmisc.o -lXm -lXp -lXt -lXext -lXmu -lX11 -lastro -lip -llilxml -ljpegd ../../libpng/libpng.a -lz -lm
ld: library not found for -lXp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [xephem] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_xephem/xephem/work/xephem-4.0.1/GUI/xephem'

Change History (3)

comment:1 Changed 10 days ago by jmroot (Joshua Root)

Port: xephem added

comment:2 Changed 10 days ago by jmroot (Joshua Root)

Keywords: arm64 added

Among other issues, this is using a bundled binary of libXm which is not built for arm64.

comment:3 Changed 10 days ago by vidakris

Using the openmotif port instead and linking it at compiling could be a workaround for that, but that also gives a segfault:

$ ./xephem 
Building shell
Reading X resources
Checking args
Checking colormap
Building icon
Building main window system
Connecting actions
Building main menu bar
Warning: Fatal Error: 
_XmGetDefaultDisplay cannot be used prior to VendorS.Initialize, returns NULL
Segmentation fault: 11
Note: See TracTickets for help on using tickets.