ICQ MASQ Module

ICQ MASQ Module

Post by Jame » Sun, 19 Mar 2000 04:00:00



I've compiled the module, now I'm trying to insmod it and I'm getting this:


total 109
-rw-r--r--   1 666      666          2701 Nov 27 16:55 ChangeLog
-rw-r--r--   1 666      666          1523 Nov 27 16:55 Makefile
-rw-r--r--   1 666      666          6970 Nov 27 16:55 README
-rw-r--r--   1 666      666            69 Nov 27 16:55 TODO
-rw-r--r--   1 666      666         36017 Nov 27 16:55 ip_masq_icq.c
-rw-rw-r--   1 root     root        59152 Apr 15 20:21 ip_masq_icq.o

ip_masq_icq.o: not an ELF file

Why? Please help... compiled using egcs-2.91.66.

Thanks,
James

 
 
 

ICQ MASQ Module

Post by Tom East » Mon, 20 Mar 2000 04:00:00



>I've compiled the module, now I'm trying to insmod it and I'm getting this:


>total 109
>-rw-r--r--   1 666      666          2701 Nov 27 16:55 ChangeLog
>-rw-r--r--   1 666      666          1523 Nov 27 16:55 Makefile
>-rw-r--r--   1 666      666          6970 Nov 27 16:55 README
>-rw-r--r--   1 666      666            69 Nov 27 16:55 TODO
>-rw-r--r--   1 666      666         36017 Nov 27 16:55 ip_masq_icq.c
>-rw-rw-r--   1 root     root        59152 Apr 15 20:21 ip_masq_icq.o

>ip_masq_icq.o: not an ELF file

>Why? Please help... compiled using egcs-2.91.66.

How did you compile it? I use the same compiler and I get:


-rw-r--r--   1 teastep  eastep      20568 Mar 18 11:41 ip_masq_icq.o

Since your binary is almost 3 times the size of mine, there's something
different with the way in which you are building the module. Also looks
like your system clock is just a bit skewed...

-Tom
--
Tom Eastep             \  Eastep's First Principle of Computing:
ICQ #60745924           \  "Any sane computer will tell you how it

Shoreline, Washington USA \___________________________________________

 
 
 

ICQ MASQ Module

Post by Bob Tenne » Mon, 20 Mar 2000 04:00:00


 >    
 >I've compiled the module, now I'm trying to insmod it and I'm getting this:
 >

 >total 109
 >-rw-r--r--   1 666      666          2701 Nov 27 16:55 ChangeLog
 >-rw-r--r--   1 666      666          1523 Nov 27 16:55 Makefile
 >-rw-r--r--   1 666      666          6970 Nov 27 16:55 README
 >-rw-r--r--   1 666      666            69 Nov 27 16:55 TODO
 >-rw-r--r--   1 666      666         36017 Nov 27 16:55 ip_masq_icq.c
 >-rw-rw-r--   1 root     root        59152 Apr 15 20:21 ip_masq_icq.o

 >ip_masq_icq.o: not an ELF file
 >
Why isn't there a Makefile.arch file in that directory?

Bob T.

 
 
 

ICQ MASQ Module

Post by Jame » Tue, 21 Mar 2000 04:00:00


I was having problems with the makefile, just like about everyone else it
would seem. Not being a makefile guru, I just pieced together the flags it
would've used and did a gcc command-line style. Here's what I used:

gcc ip_masq_icq.c -I
/usr/src/linux/include -Wall -Wstrict-prototypes -Winline -O2 -fomit-frame-p
ointer -fno-strict-aliasing -S -o ip_masq_icq.o

I realize that ELF is an executable format used by the more recent linux
kernels. If my understanding of this is correct, then I'm wondering why it
isn't defaulting to an ELF format executable?

Thanks for the help,

James



>  >I've compiled the module, now I'm trying to insmod it and I'm getting
this:


>  >total 109
>  >-rw-r--r--   1 666      666          2701 Nov 27 16:55 ChangeLog
>  >-rw-r--r--   1 666      666          1523 Nov 27 16:55 Makefile
>  >-rw-r--r--   1 666      666          6970 Nov 27 16:55 README
>  >-rw-r--r--   1 666      666            69 Nov 27 16:55 TODO
>  >-rw-r--r--   1 666      666         36017 Nov 27 16:55 ip_masq_icq.c
>  >-rw-rw-r--   1 root     root        59152 Apr 15 20:21 ip_masq_icq.o

>  >ip_masq_icq.o: not an ELF file

> Why isn't there a Makefile.arch file in that directory?

> Bob T.

 
 
 

ICQ MASQ Module

Post by Bob Tenne » Tue, 21 Mar 2000 04:00:00


 >I was having problems with the makefile, just like about everyone else it
 >would seem.

There are indeed bugs in the Makefile.  But I found some workarounds
at freshmeat.  I suggest deleting the directory and untarring again
(because make clean didn't seem to work).  Untar in /usr/src.
Then patch the Makefile as follows:

S=$(shell egrep ...
include Makefile.arch
S=$(shell egrep  ...
include Makefile.arch

You'll need to either compile the kernel or install the
kernel-source rpm and set up the appropriate /usr/src/linux/.config.
Then do make install.

Bob T.

 
 
 

ICQ MASQ Module

Post by Phil » Mon, 10 Apr 2000 04:00:00


Hi :  I am having a braindead moment , so I have to ask what kernel-source
rpm???? could you be a wee bit more specific??

TIA   Phil
----------------------------------------------------------------------------
-------------------------------------------------



>  >I was having problems with the makefile, just like about everyone else
it
>  >would s-----------------------------------

> > You'll need to either compile the kernel or install the
> kernel-source rpm and set up the appropriate /usr/src/linux/.config.
> Then do make install.

> Bob T.

 
 
 

ICQ MASQ Module

Post by Bob Tenne » Mon, 10 Apr 2000 04:00:00


 >Hi :  I am having a braindead moment , so I have to ask what kernel-source
 >rpm???? could you be a wee bit more specific??
 >
 >> > You'll need to either compile the kernel or install the
 >> kernel-source rpm and set up the appropriate /usr/src/linux/.config.
 >> Then do make install.
 >>

I don't remember what distribution you're using.  If you're using
RedHat, install the kernel-source rpm corresponding to your
kernel; e.g., for Redhat 6.2 it would be

rpm -U kernel-source-2.2.14-5.0.i386.rpm

In general, uname -r will tell you which kernel you're running.

Then in /usr/src/linux/configs you will find the config file that
generated that kernel, likely kernel-2.2.14-i386.config.
Copy that to /usr/src/linux/.config.  

Bob T.

 
 
 

ICQ MASQ Module

Post by Phil » Mon, 10 Apr 2000 04:00:00


I followed your directions  and it partly worked , first  I had to create a
whole slew of  files before it would even begin  BUT now ' make install '
gives me a page of  errors such as,  Kern_warning undelclared, Null
undeclared and various other black magic gobblty-gook, Is there an
alternative to this buggy mess????
              I would like to get it working but it is truely frustrating
                                                                       TIA
again

Phil



>  >> > You'll need to either compile the kernel or install the
>  >> kernel-source rpm and set up the appropriate

/usr/src/linux/.config.....
Quote:

> In general, uname -r will tell you which kernel you're

running...................
Quote:

> Then in /usr/src/linux/configs you will find the config file that.......
> > Bob T.

 
 
 

ICQ MASQ Module

Post by Bob Tenne » Tue, 11 Apr 2000 04:00:00


 >I followed your directions  and it partly worked , first  I had to create a
 >whole slew of  files before it would even begin  BUT now ' make install '
 >gives me a page of  errors such as,  Kern_warning undelclared, Null
 >undeclared and various other black magic gobblty-gook, Is there an
 >alternative to this buggy mess????
 >              I would like to get it working but it is truely frustrating
 >                                                                       TIA

The Makefile in this package is messed up.
At freshmeat there are some suggestions: put "S=" in front of
the two offending lines.  I once got this to compile but now
I can't and I don't know why.  Anybody else?

Bob T.

 
 
 

ICQ MASQ Module

Post by Bob Tenne » Tue, 11 Apr 2000 04:00:00



 >
 >The Makefile in this package is messed up.
 >At freshmeat there are some suggestions: put "S=" in front of
 >the two offending lines.  I once got this to compile but now
 >I can't and I don't know why.  Anybody else?
 >

I've gotten this working again.  Here's how to modify the Makefile:

S:=$(shell egrep  ...
include Makefile.arch
S:=$(shell egrep  ...
include Makefile.arch

ie., add a prefix S:= in lines 15 and 17.  You should then be able to
make all and make install.

Bob T.

 
 
 

1. ICQ SKIN, ICQ FRIENDS, ICQ FUN.....

This is in my opinion spam so I just reported it. If anyone else
agrees with me then please forward the original post to:

(The address spamcop.net gave me).

Sorry for being off topic,
Fyre

On Thu, 21 Sep 2000 08:48:47 +0800, "WWW.CSN23.COM"

2. Inverting lines in a file

3. IP Masq and ICQ Chat

4. PROBLEM: select() says closed socket readable

5. ICQ in IP Masq / ipautofw problem

6. Probs with Adaptec2940U2W and SuSE 6.3 Linux

7. icq and masq

8. Xfree

9. ICQ through IP Masq

10. IP Masq and ICQ (quick question)

11. IP Masq (works) and ICQ (!@#$% doesn't work)

12. ICQ and IP MASQ

13. ICQ problems with IP Masq Debian 2.2.15