EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Making linux-gpib
From: "Szalata, Zenon M." <[email protected]>
To: "EPICS tech-talk" <[email protected]>
Date: Wed, 29 Aug 2007 16:22:26 -0700
I am having trouble building linux-gpibon on a RedHat enterpise linux 3 computer with kernel 2.4.21-51.EL.  The version of linux-gpib is 3.1.101.
These are the steps I took:
1. installed kernel sourses from a RPM in a standard location, that is
   in /usr/src.
2. cp /boot/config-2.4.21-51.EL /usr/src/linux-2.4.21-51.EL/.config
3. cd /usr/src/linux-2.4.21-51.EL
4. make oldconfig
5. make dep
6. cd <linux-gpib>
7. ./configure
These seven steps were done as root.  Next step is the one which fails and is done as a workstation user:
8. cd <linux-gpib>
9. make
The make fails, here is some of the output it generates:

--- skipping successful output ----
....

gmake[5]: Entering directory `/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver/cb7210'
gcc -I/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101 -I/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver/include -I/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/include -D__KERNEL__ -I/usr/src/linux-2.4.21-51.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common  -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.21-51.EL/include/linux/modversions.h  -nostdinc -iwithprefix include -DKBUILD_BASENAME=cb7210_init  -c -o cb7210_init.o cb7210_init.c
In file included from /afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver/include/nec7210.h:23,
                 from cb7210.h:22,
                 from cb7210_init.c:21:
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:15: invalid suffix on integer constant
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:15: syntax error before numeric constant
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:15: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:16: invalid suffix on integer constant
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:16: syntax error before numeric constant
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:16: `strpbrk_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:16: warning: function declaration isn't a prototype
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:17: `strtok_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.21-51.EL/include/linux/string.h:17: warning: parameter names (without types) in function declaration

....
Many more warning messages and finally an error:

cb7210_init.c: In function `cb7210_init':
cb7210_init.c:329: warning: implicit declaration of function `printk_R1b7d4074'
cb7210_init.c: In function `cb_pci_attach':
cb7210_init.c:375: warning: implicit declaration of function `request_irq_R0c60f2e0'
cb7210_init.c: In function `cb_pci_detach':
cb7210_init.c:405: warning: implicit declaration of function `free_irq_Rf20dabd8'
cb7210_init.c: In function `cb_isa_attach':
cb7210_init.c:427: warning: implicit declaration of function `__request_region_R1a1a4f09'
cb7210_init.c:427: `ioport_resource_R865ebccd' undeclared (first use in this function)
cb7210_init.c: In function `cb_isa_detach':
cb7210_init.c:467: warning: implicit declaration of function `__release_region_Rd49501d4'
cb7210_init.c:467: `ioport_resource_R865ebccd' undeclared (first use in this function)
gmake[5]: *** [cb7210_init.o] Error 1
gmake[5]: Leaving directory `/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver/cb7210'
gmake[4]: *** [_mod_/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver/cb7210] Error 2
gmake[4]: Leaving directory `/usr/src/linux-2.4.21-51.EL'
gmake[3]: *** [all-local] Error 2
gmake[3]: Leaving directory `/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101/driver'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/afs/slac.stanford.edu/g/esa/esalib/app/epics/support/linux-gpib-3.1.101'
gmake: *** [all] Error 2
zms@esaux1 $ exit
--- end of transcript --------

Does anyone have an idea what am I doing wrong?  What's missing?  Suggestions?  Should I try an earlier version of linux gpib?
Thanks in advance.

Zen


Navigate by Date:
Prev: RE: Frame grabber and image analysis Emmanuel Mayssat
Next: RE: Heidenhain Absolute Multiturn Rotary Encoder Rarback, Harvey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Heidenhain Absolute Multiturn Rotary Encoder Elder Matias
Next: EPICS - COMEDI Heinrich du Toit
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·