¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

x86-64 compilig


 

Hi, I encounter a problem in trying to compile xepehm in my SL5.4 (64 bit) system.
On executing

make MOTIF=../../libXm/linux86

I get a lot of messages. First, many like
make[1]: `libastro.a' is up to date.

Then many lines like
/usr/bin/ld: warning: i386 architecture of input file `../../libXm/linux86/libXm.a(ArrowB.o)' is incompatible with i386:x86-64 output

The binary xephem is created, but trying to execute ./xephem I get "segmentation fault".

Can someone help me?
Thx
--
----------------------------------
Elio Fabri
c/o Dip. di Fisica - Univ. di Pisa
----------------------------------


 

The cause of the problem is, the static libXm included in the xephem package is for 32-bit apps only.
Try built the xephem by just typing 'make' . If you already installed Motif's dev's package, xephem able to be compiled without any problem.


Thank you.

On Tue, Jun 7, 2011 at 4:57 PM, Elio Fabri <fabri@...> wrote:
Hi, I encounter a problem in trying to compile xepehm in my SL5.4 (64
bit) system.
On executing

make MOTIF=../../libXm/linux86

I get a lot of messages. First, many like
make[1]: `libastro.a' is up to date.

Then many lines like
/usr/bin/ld: warning: i386 architecture of input file
`../../libXm/linux86/libXm.a(ArrowB.o)' is incompatible with i386:x86-64
output

The binary xephem is created, but trying to execute ./xephem I get
"segmentation fault".

Can someone help me?
Thx
--
----------------------------------
Elio Fabri
c/o Dip. di Fisica - Univ. di Pisa
----------------------------------


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
? ?

<*> Your email settings:
? ?Individual Email | Traditional

<*> To change settings online go to:
? ?
? ?(Yahoo! ID required)

<*> To change settings via email:
? ?xephem-digest@...
? ?xephem-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
? ?xephem-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
? ?



 

I followed your suggestion, and the compiler says
gcc: /usr/X11R6/lib/libXm.a: No such file or directory
Actually there is no libXm.a, neither in /usr/X11R6 nor elsewhere
--
----------------------------------
Elio Fabri
c/o Dip. di Fisica - Univ. di Pisa
----------------------------------


 

If your Motif's include is in /usr/include and library in /usr/lib64 then try

$ make MOTIFI=/usr/include MOTIFL=/usr/lib64

Good Luck


On Wed, Jun 8, 2011 at 4:32 PM, Elio Fabri <fabri@...> wrote:
I followed your suggestion, and the compiler says
gcc: /usr/X11R6/lib/libXm.a: No such file or directory
Actually there is no libXm.a, neither in /usr/X11R6 nor elsewhere
--
----------------------------------
Elio Fabri
c/o Dip. di Fisica - Univ. di Pisa
----------------------------------


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
? ?

<*> Your email settings:
? ?Individual Email | Traditional

<*> To change settings online go to:
? ?
? ?(Yahoo! ID required)

<*> To change settings via email:
? ?xephem-digest@...
? ?xephem-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
? ?xephem-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
? ?



 

On Wed, 8 Jun 2011, Elio Fabri wrote:

I followed your suggestion, and the compiler says
gcc: /usr/X11R6/lib/libXm.a: No such file or directory
Actually there is no libXm.a, neither in /usr/X11R6 nor elsewhere
Hi,

you have to install openmotif-devel, it contains libXm.a. However, the libraries are in /usr/lib now, not in /usr/X11R6/lib anymore.

Saluti,

Michael



P.S.: funny, our offices are in the same building, about 30 meters apart


 

The library might be in /usr/lib64. You do need Motif or Lesstif in your libraries. I can't give advice on the best way to update your libraries because I'm not familiar with your particular linux distribution.

Bud

On 06/08/2011 03:32 AM, Elio Fabri wrote:
I followed your suggestion, and the compiler says
gcc: /usr/X11R6/lib/libXm.a: No such file or directory
Actually there is no libXm.a, neither in /usr/X11R6 nor elsewhere


 

These directions work on Debian 6.0.1 with gcc-4.6.0, except that "MOTIFL=/usr/lib". (No quotes, of course.)

Thanks for the advice.

--- In xephem@..., Mohammad Bahathir Hashim <bahathir@...> wrote:

If your Motif's include is in /usr/include and library in /usr/lib64 then
try

$ make MOTIFI=/usr/include MOTIFL=/usr/lib64

Good Luck