When I try to emerge XEphem 3.6.4 I get this error: skyviewmenu.c: In function `svtb_flip_cb': skyviewmenu.c:837: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_scale_cb': skyviewmenu.c:4768: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_faving_cb': skyviewmenu.c:4968: warning: cast to pointer from integer of different size skyviewmenu.c: In function `sv_fav_cb': skyviewmenu.c:4991: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_create_zoomcascade': skyviewmenu.c:6214: warning: cast to pointer from integer of different size skyviewmenu.c: In function `sv_pu_activate_cb': skyviewmenu.c:6270: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_pu_zoom_cb': skyviewmenu.c:6356: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_pu_label_cb': skyviewmenu.c:6411: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_fovsc_cb': skyviewmenu.c:9602: warning: cast from pointer to integer of different size skyviewmenu.c: In function `sv_altdecsc_cb': skyviewmenu.c:9636: warning: cast from pointer to integer of different size gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o uranusmenu.o uranusmenu.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o ucac.o ucac.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o usno.o usno.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o versionmenu.o versionmenu.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o webdbmenu.o webdbmenu.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o xe2.o xe2.c gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o xephem.o xephem.c webdbmenu.c: In function `getURL': webdbmenu.c:439: warning: field precision is not type int (arg 3) webdbmenu.c:453: warning: field precision is not type int (arg 4) gcc -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -Wall -I/usr/X11R6/include -I/usr/X11R6/include -march=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -c -o xmisc.o xmisc.c xephem.c: In function `m_activate_cb': xephem.c:878: warning: cast from pointer to integer of different size nroff -man xephem.man > xephem.1 gcc -L../../libastro -L../../libip -L../../liblilxml -L../../libjpegd -L/usr/X11R6/lib -L/usr/X11R6/lib -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 jpeg2pm.o jupmenu.o listmenu.o mainmenu.o marsmenu.o marsmmenu.o moonmenu.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 setiathome.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 xephem.o xmisc.o -lXm -lXp -lXt -lXext -lSM -lICE -lXmu -lX11 -lastro -lip -llilxml -ljpegd -lm /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lXm collect2: ld returned 1 exit status make: *** [xephem] Error 1 make: *** Waiting for unfinished jobs.... Reproducible: Always Steps to Reproduce: 1. Try to emerge xephem Actual Results: Compile fails. Expected Results: It should compile without a problem.
I cannot reproduce this. Xephem compiles fine on my systems. Xm is the motif library, which has caused many problems lately with the introduction of motif-config and such. Please try to uninstall openmotif and motif-config from your system, reinstall them and try again.
I unmerged both of them and reemerged openmotif 2.2.3-r6 and motif-config 0.8 but I still get the same error.
For me it works fine without having motif-config installed at all. What's the output of equery files openmotif | grep libXm on your system? Please also run ldconfig -p | grep libXm.so I guess there's some faulty link set by motif-config.
# equery files openmotif | grep libXm /usr/lib64/openmotif-2.2/libXm.a /usr/lib64/openmotif-2.2/libXm.la /usr/lib64/openmotif-2.2/libXm.so -> libXm.so.3.0.2 /usr/lib64/openmotif-2.2/libXm.so.3 -> libXm.so.3.0.2 /usr/lib64/openmotif-2.2/libXm.so.3.0.2 # ldconfig -p | grep libXm.so libXm.so.3 (libc6,x86-64) => /usr/lib/openmotif-2.2/libXm.so.3 libXm.so (libc6,x86-64) => /usr/lib/openmotif-2.2/libXm.so
Since I don't have an amd64 system it would be nice if the arch maintainers could have a look at this one.
this is what i have in my /usr/lib64 (/usr/lib is a link to lib64): # ls -l libXm* lrwxrwxrwx 1 root root 32 Apr 26 09:50 libXm.a -> /usr/lib64/openmotif-2.2/libXm.a lrwxrwxrwx 1 root root 33 Apr 26 09:50 libXm.la -> /usr/lib64/openmotif-2.2/libXm.la lrwxrwxrwx 1 root root 33 Apr 26 09:50 libXm.so -> /usr/lib64/openmotif-2.2/libXm.so lrwxrwxrwx 1 root root 35 Apr 26 09:50 libXm.so.3 -> /usr/lib64/openmotif-2.2/libXm.so.3 lrwxrwxrwx 1 root root 39 Apr 26 09:50 libXm.so.3.0.2 -> /usr/lib64/openmotif-2.2/libXm.so.3.0.2 -rw-r--r-- 1 root root 752420 Apr 24 18:06 libXmu.a lrwxrwxrwx 1 root root 13 Apr 24 18:06 libXmu.so -> libXmu.so.6.2 lrwxrwxrwx 1 root root 13 Apr 24 18:06 libXmu.so.6 -> libXmu.so.6.2 -rwxr-xr-x 1 root root 458343 Apr 24 18:06 libXmu.so.6.2 -rw-r--r-- 1 root root 79408 Apr 24 18:06 libXmuu.a lrwxrwxrwx 1 root root 14 Apr 24 18:06 libXmuu.so -> libXmuu.so.1.0 lrwxrwxrwx 1 root root 14 Apr 24 18:06 libXmuu.so.1 -> libXmuu.so.1.0 -rwxr-xr-x 1 root root 55969 Apr 24 18:06 libXmuu.so.1.0 but I don't really think that it's the Xm which makes problems, it's just the first argument for the linker. I miss the -L/usr/lib64 in the same line... It works here, because -L/usr/X11R6/lib is uses which is a symlink to /usr/X11R6/lib64 which is a symlink to /usr/lib64, but that wasn't ever so. Looks like you're using an older version of X which didn't make these changes yet, that's why it fails for you. That package really should be linked with an -L/usr/$(get_libdir) option.
Well I have run motif-config and selected the only profile available and now it compiles. But shouldn't this be set automaticaly to the latest version, especialy if it is the only one.
Looks like a request to the motif-config maintainer. Re-assigning.
it should be set automatically now