FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 05-24-2008, 05:32 PM
Antonio Olivares
 
Default 'make CONFIG_DEBUG_SECTION_MISMATCH=y', linux/ioctl32.h: No such file or directory

Dear all,

I am trying to install martian drivers for a supported
agere winmodem. The procedure has worked before
countless times, but this time, I have a new 64 bit
machine in which I installed Fedora 9 x86_64 on it.
Aside from selinux avcs that are not major, Dan has
helped me fixed them along with some updates, I cannot
access the internet from home. I installed the
updates while at school with higher speed internet.
At home I have dialup and have a supported chipset
with winmodem drivers.

The first problem I encountered was


/home/olivares/Download/temp/martian/kmodule/martian.c:54:29:
error:
linux/ioctl32.h: No such file or directory

[olivares@localhost martian]$ make -C kmodule/ modules
make: Entering directory
`/home/olivares/Download/temp/martian/kmodule'
make -C /lib/modules/2.6.25.3-18.fc9.x86_64/build
M="/home/olivares/Download/temp/martian/kmodule"
modules
make[1]: Entering directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
CC [M]
/home/olivares/Download/temp/martian/kmodule/martian.o
/home/olivares/Download/temp/martian/kmodule/martian.c:54:29:
error: linux/ioctl32.h: No such file or directory
/home/olivares/Download/temp/martian/kmodule/martian.c:
In function ‘martian_isr’:
/home/olivares/Download/temp/martian/kmodule/martian.c:160:
warning: value computed is not used
/home/olivares/Download/temp/martian/kmodule/martian.c:
In function ‘martian_add’:
/home/olivares/Download/temp/martian/kmodule/martian.c:662:
warning: passing argument 2 of
‘request_irq’ from incompatible pointer
type
make[2]: ***
[/home/olivares/Download/temp/martian/kmodule/martian.o]
Error 1
make[1]: ***
[_module_/home/olivares/Download/temp/martian/kmodule]
Error 2
make[1]: Leaving directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
make: *** [modules] Error 2
make: Leaving directory
`/home/olivares/Download/temp/martian/kmodule'
[olivares@localhost martian]$

I overcame that problem by commenting out the
linux/ioctl32.h

// #include<linux/ioctl32.h


Everything compiled however I got a mismatch

WARNING: modpost: Found 1 section mismatch(es).

egin{quote}
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
end{quote}

Could it be that the machine is 64 bit. I have tried
to do as the
INSTALL says to do

x86_64 platform.
----------------

martian_modem is a 32-bit application. It can be
built on x86_64 the
way prescribed, but you need 32-bit development
environment for that.
Second option is to use binary built on i386.

To compile and install module only do
$ make -C kmodule/ modules
$ su
# make -C kmodule/ install

[olivares@localhost martian]$ make -C kmodule/
modules
make: Entering directory
`/home/olivares/Download/temp/martian/kmodule'
make -C /lib/modules/2.6.25.3-18.fc9.x86_64/build
M="/home/olivares/Download/temp/martian/kmodule"
modules
make[1]: Entering directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
CC [M]
/home/olivares/Download/temp/martian/kmodule/martian.o

/home/olivares/Download/temp/martian/kmodule/martian.c:
In function
€˜martian_isr€™:

/home/olivares/Download/temp/martian/kmodule/martian.c:160:
warning:
value computed is not used

/home/olivares/Download/temp/martian/kmodule/martian.c:
In function
€˜martian_add€™:

/home/olivares/Download/temp/martian/kmodule/martian.c:662:
warning:
passing argument 2 of
€˜request_irq€™ from
incompatible pointer type
CC [M]
/home/olivares/Download/temp/martian/kmodule/marsio.o
CC [M]
/home/olivares/Download/temp/martian/kmodule/mfifo.o
LD [M]
/home/olivares/Download/temp/martian/kmodule/martian_dev.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
CC
/home/olivares/Download/temp/martian/kmodule/martian_dev.mod.o
LD [M]
/home/olivares/Download/temp/martian/kmodule/martian_dev.ko
make[1]: Leaving directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
make: Leaving directory
`/home/olivares/Download/temp/martian/kmodule'
[olivares@localhost martian]$ su -c 'make -C kmodule/
install'
Password:
make: Entering directory
`/home/olivares/Download/temp/martian/kmodule'
make -C /lib/modules/2.6.25.3-18.fc9.x86_64/build
M="/home/olivares/Download/temp/martian/kmodule"
modules_install
make[1]: Entering directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
INSTALL
/home/olivares/Download/temp/martian/kmodule/martian_dev.ko
DEPMOD 2.6.25.3-18.fc9.x86_64
make[1]: Leaving directory
`/usr/src/kernels/2.6.25.3-18.fc9.x86_64'
if ! /sbin/modprobe -nq martian_dev ; then
/sbin/depmod -a; fi
make: Leaving directory
`/home/olivares/Download/temp/martian/kmodule'
[olivares@localhost martian]$ su -
Password:
[root@localhost ~]# lsmod | grepm martian
-bash: grepm: command not found
[root@localhost ~]# lsmod | grep martian
martian_dev 26904 0
[root@localhost ~]# modprobe -r martian_dev
[root@localhost ~]# lsmod | grep martian
[root@localhost ~]# modprobe martian_dev
[root@localhost ~]# martian_dev
-bash: martian_dev: command not found
[root@localhost ~]# martian_modem
martian: error: Common area unrecognized, no
terminating signature
[root@localhost ~]#

I sent the above to LinModems Modem discussion and
Marv sent me following:

**** start of Marv's mail ****
Concerning the ioctl32.h issue. It gets seated in
/usr/include/
and is part of the package:

Package: libuclibc-dev
Priority: optional
Section: universe/libdevel
Installed-Size: 11044
Maintainer: David Schleef <ds@schleef.org>
Architecture: i386
Source: uclibc
Version: 0.9.26-cvs20040816-5.1
Depends: libuclibc0 (= 0.9.26-cvs20040816-5.1)
Filename:
pool/universe/u/uclibc/libuclibc-dev_0.9.26-cvs20040816-5.1_i386.deb
Size: 2169300
Description: A small implementation of the C library
uClibc is an implementation of the standard C
library that is
much smaller than glibc, which makes it useful for
embedded
systems. This package includes header files and
development
libraries necessary to compile applications that use
uClibc.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
-------------
might have a different name on RPM systems.
But I suspect that ioctl32 is two basic to leave out.

MarvS
**** end of Marv's mail ******

1) Is the package ioctl32 available for Fedora, where
can I get it if is very important for this function
2) Should I compile my own kernel with the option
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
3) Do I need special packages to compile 32 bit
applications? ie., yum install **name of 32 bit
development drivers ***

I can access the internet via Slax Live CD,

root@slax:~# cat /etc/slax-version
Slax 6.0.7
root@slax:~# uname -iprm
2.6.24.5 i686 AMD Athlon(tm) Processor LE-1600
AuthenticAMD
root@slax:~#

but I also want to be able to use Fedora if possible.
I do not want to install Fedora in 32 bit, as I want
to take test the 64 bit processor. I have not had a
computer like this and I am like a kid playing with a
new toy

-------------------------- System information
----------------------------
CPU=x86_64, Fedora release 9 (Sulphur)
Kernel
Linux version 2.6.25.3-18.fc9.x86_64 (mockbuild@) (gcc
version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1
SMP Tue May 13 04:54:47 EDT 2008
scanModem update of: 2008_05_02

Thank you in Advance,


Antonio





--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 12:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org