Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

make install on suse linux 10 cannot compile nikal.c to nikal.o source & gcc ok

  1. unit PCI-GPIB Card
  2. Op system suse linux 10
  3. Have kernel sources for installed kernel
  4. Have gcc compiler installed & working
  5. kernel : 2.6.13-15-default

  1. Problem: Cannot make install

  1. Error: cannot compile nikal.c to nikal.o

Yours Ian A Peden Glasgow University
0 Kudos
Message 1 of 13
(5,067 Views)
Hi Ian,

Do you receive this error when running the INSTALL script from the NI-488.2 download?  If so, which version of NI-488.2 are you using?  SuSE Linux requires the extra step of configuring the kernel sources, have you done this?  If you have upgraded your kernel since doing this, you will need to do it again with the new kernel sources.  The steps to do this are listed at the bottom of the NI-488.2 Readme file.

If you still have problems, please send back more detail about when you receive this error.

Thanks,

Jason S.
GPIB & Serial
National Instruments
Message 2 of 13
(5,062 Views)
Hi Veteran!

Thanks for the Information.
I have tried compiling the sources as given in the GPIB Instructions.
They compile perfectly.
Unfortuately the error(s) are still evident in INSTALL.

First Error: Implicit declaration of function "usb_epnum_to_ep_desc".
This error is preceded by, and succeeded with, hundreds of warnings about impicit declarations.

Finally make gives up.

Yours Ian A Peden

0 Kudos
Message 3 of 13
(5,058 Views)
Hi Ian,
 
You did not mention which version of NI-488.2 you are installing.  Please make sure that you are using NI-488.2 Version 2.5 for Linux, as support for SuSE 10.0 was just added in the 2.5 release.
 
Thanks,
 
Jason Smith
GPIB & Serial
National Instruments
0 Kudos
Message 4 of 13
(5,054 Views)
Hi Jason

Many thanks for your help!

The GPIB Version is indeed  2.5.

I have tried the software on another machine with suse 10 with exactly the same result.

I am now building an old machine running suse 9.3 .

Hopefully, this should give me better results.

All this to get a Monochromator working!!

Yours Ian

0 Kudos
Message 5 of 13
(5,042 Views)
Hi Jason

I have built a computer with suse 9.3.

The GPIB Install now completes the Compilation.

The GPIB Install now fails with Starting NI-KAL Failed!

Should I try 9.1?

Yours Ian

0 Kudos
Message 6 of 13
(5,039 Views)
Hi Ian,
 
Are you doing this using a clean install of SuSE 10.0?  I would recommend that you try it in a clean SuSE 10.0 install.  I have 2.6.13-15.8 which is slightly newer than your 2.6.13-15-default, but I do not think that is the issue here.  We have testing this installation using default installations of SuSE 10.0 without problems.
 
I do not encounter any problems such as this on my SuSE 10.0 machine, following the order below:
 
1. Install clean version of SuSE 10.0
 
2. Log in as root
 
3. Mount the NI-488.2 version 2.5 for Linux ISO image
 
4. Configure the source packages as outlined in the README
 
5. Run ./INSTALL in the NI-488.2 folder
 
Please let me know how that works,
 
Jason S.
 
 

Message Edited by JasonS on 10-05-2006 11:55 AM

Message 7 of 13
(5,026 Views)
hi Jason

I have tried, NI Linux for GPIB with  a new copy of suse linux 10,

The install compilation failures are again pointing to the USB system.

 I have tried, NI Linux for GPIB with  a new copy of suse linux 10,1

The install compilation failures  point to

  1.  USB system
  2. nNikal100_memory_Read()
  3. nNikal100_memory_Write()
I have looked at the nikal.c source . All the failures are indeed pointing to the memory and USB sources.
The position in now:

  1. Suse 9.3 with  .NI GPIB compiles successfully, but module cannot be loaded.
  2. Suse 10  with NI GPIB fails to compile with USB complaints.
  3. Suse 10 under the latest Kernel ,with NI GPIB, fails to compile with USB source failures.
  4. Suse 10.1 with NI GPIB fails to compile with USB and Memory Function compilation Falures.
What is the  difference between your suse and mine.?

Yours Ian




0 Kudos
Message 8 of 13
(5,012 Views)
Hi Jason

I have now Installed NI GPIB on a 64 bit suse 10  machine.

The make file still fails with missing declarations , functions etc.

 Could I ask a Daft question?

Can you  supply  a precompiled  module  for  each  version of the operating system?

Is this possible?

Yours Ian A Peden
0 Kudos
Message 9 of 13
(5,007 Views)
Have you been trying on 64-bit SuSE all along?  The driver README states that the driver is for 32-bit kernels.
 
Jason S.
0 Kudos
Message 10 of 13
(4,999 Views)