Koozali.org: home of the SME Server

Repeated nrequest for compiling a module PLEASE!

guestHH

Repeated nrequest for compiling a module PLEASE!
« on: February 06, 2002, 02:34:31 AM »
Hi (i'm impatient/eager to get it done),

I'm in the middle of something to try. I lack a compiling sever for SME so here's my request: Please compile a module for me, details can be found here:

http://forums.contribs.org/index.php?topic=12711.msg47764#msg47764

Please can you do this for me (us)?

Thanks,

guestHH

robert

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #1 on: February 06, 2002, 03:33:19 AM »
Hi,

If you want to do the kind of development you're doing (and I'm keeping an eye on it as you post in these forums, looks very interesting), it's probably easier to be self-sufficient as far as compiling goes. Please take a look at the faq and the contributed howto about compiling kernel modules to see which packages you need to install. It's actually only a few packages. Make sure the 'devel' pacakage versions correspond to the packages you've already got installed, like glib-devel should be same version as glib, same goes for glibc-devel, etc. If you have any problems with dependencies while installing the compiler packages, please post again. As for the actual compiling, most tarballs include instructions for this.
Good luck

P.S. I would compile it for you, but I only have a compiler on my Alpha, not on my x86.

guestHH

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #2 on: February 06, 2002, 01:17:17 PM »
Hi Robert,

Thanks for your reply and suggestions. And you're right about that. But I have difficulties compiling the module.
I installed glib, glibc and devel packages all from the same versions as per directions int the official FAQ. But no luck so far.

When i try to 'make' I get the output below.

Since i did not compile before, I don;t know what to do from here.

Can anybody help?

Thanks,

RequestedDeletion


make output:
-----------------------------------
make[1]: Entering directory /usr/install/drbd/user'
gcc -c -Wall -g -DDBG -DVERSION=\"0.5.8.1\" -DMOD_VERSION=58 drbdsetup.c
In file included from /usr/include/sys/ioctl.h:27,
                 from drbdsetup.c:30:
/usr/include/bits/ioctls.h:24:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:30,
                 from drbdsetup.c:30:
/usr/include/bits/ioctl-types.h:25:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:130,
                 from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:11,
                 from /usr/include/bits/socket.h:31,
                 from /usr/include/sys/socket.h:35,
                 from drbdsetup.c:31:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from drbdsetup.c:31:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
In file included from drbdsetup.c:38:
../drbd/drbd.h:25:23: asm/types.h: No such file or directory
In file included from /usr/include/signal.h:307,
                 from /usr/include/sys/wait.h:30,
                 from ../drbd/drbd.h:33,
                 from drbdsetup.c:38:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
In file included from /usr/include/errno.h:36,
                 from drbdsetup.c:42:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
make[1]: *** [drbdsetup.o] Error 1
make[1]: Leaving directory /usr/install/drbd/user'
make: *** [all] Error 2
------------------------------------------

Filippo Carletti

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #3 on: February 06, 2002, 01:38:12 PM »
kernel-headers are missing.
You can safely install kernel-headers-2.4.2-2.i386.rpm from a RedHat CD.

guestHH

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #4 on: February 06, 2002, 01:56:40 PM »
Hi Filippo,

I installed the kernel-headers from Darell. Are they not appropriate  with 5.1.2 ?

And your suggestion: kernel-headers-2.4.2-2.i386.rpm is this alright with the current 2.2.19 kernel ?

Thanks,

guestHH

robert

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #5 on: February 06, 2002, 03:12:57 PM »
I use 2.4 kernel-headers on my 2.2 kernel system with no problems. It's safe to install them. To prevent dependency issues, you may want to go with the kernel-headers from the redhat release that your version of e-smith is based on.
By the way, you may run into some more missing files, usually headers from devel packages. Make is pretty verbose, so you know what to look for. When you type the missing file in the search box at rpmfind.net you usually are pointed in the direction of the devel package that you need to install. Or do a search on Google.
Good luck,
Robert

guestHH

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #6 on: February 06, 2002, 03:17:22 PM »
Hi Robert, thanks for your reply.

Just had a reply from Filippo with the same suggestion, so I installed 2.2.4 headers. It worked.

One thing though, I get the message below after giving 'make install'. drbd.o and megaide.o have just been made, so there may be something wrong with these, but ipsec.o is a default SME512 module...

Don't know what the effect of 'unresolved symbols' will be.

Any idea ?

Thanks, (grazzi)

RequestedDeletion

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

make[1]: Entering directory /usr/install/drbd/user'
install drbdsetup /usr/sbin/
make[1]: Leaving directory /usr/install/drbd/user'
make[1]: Entering directory /usr/install/drbd/drbd'
install -d /lib/modules/2.2.19-7.0.8/block/
install drbd.o /lib/modules/2.2.19-7.0.8/block/
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.2.19-7.0.8/block/drbd.o                               <------------------------
depmod: *** Unresolved symbols in /lib/modules/2.2.19-7.0.8/misc/ipsec.o                              <------------------------
depmod: *** Unresolved symbols in /lib/modules/2.2.19-7.0.8/scsi/megaide.o                           <------------------------
make[1]: Leaving directory /usr/install/drbd/drbd'
make[1]: Entering directory /usr/install/drbd/scripts'
mkdir -p /etc/ha.d/resource.d
install drbd /etc/rc.d/init.d/
ln -f /etc/rc.d/init.d/drbd /etc/ha.d/resource.d/datadisk

Don't forget to run update-rc.d or chkconfig
make[1]: Leaving directory /usr/install/drbd/scripts'
make[1]: Entering directory /usr/install/drbd/benchmark'
make[1]: Nothing to be done for install'.
make[1]: Leaving directory /usr/install/drbd/benchmark'
make[1]: Entering directory /usr/install/drbd/documentation'
install drbdsetup.8 /usr/share/man/man8
install drbd.conf.5 /usr/share/man/man5
make[1]: Leaving directory /usr/install/drbd/documentation'
-----------------------------------

robert

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #7 on: February 07, 2002, 01:14:10 AM »
Be prepared for some ugliness and hope Filippo has some pointers. Sorry and good luck, Robert.

guestHH

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #8 on: February 07, 2002, 01:29:16 AM »
It's ugly alright, Filippo gave it a swing end ended up with th same results.

BUT, we will not give up! ....:-)

Thanks,
guestHH

guestHH

Re: Repeated nrequest for compiling a module PLEASE!
« Reply #9 on: February 08, 2002, 01:21:55 AM »
Hi,

FYI

This thread is not dead, i'm working on it.

Regards,
guestHH