brctl won't compile

brctl won't compile

Post by Philip Le » Sun, 26 May 2002 02:37:19



Just a little info, brctl is a program used to create the nas0 interface.
I'm trying to use it for my usb alcatel speedtouch for a pppoe connection.
However, after applying the atm patches and everything to my kernel, it
won't compile. It gives me this error:


In file included from brctl-010226.c:10:

/usr/include/linux/atmbr2684.h:44: parse error before `atm_backend_t'

/usr/include/linux/atmbr2684.h:44: warning: no semicolon at end of struct or
union

/usr/include/linux/atmbr1684.h:48: parse error before `}'

/usr/include/linux/atmbr1684.h:71: parse error before `atm_backend_t'

/usr/include/linux/atmbr1684.h:71: warning: no semicolon at end of struct or
union

/usr/include/linux/atmbr1684.h:81: parse error before `}'

brctl-010226.c: In function `create_br':

brctl-010226.c:59: storage size of `ni' isn't know

brctl-010226.c:60: `ATM_BACKEND_BR2684' undeclared (first use in this
function

brctl-010226.c:60: (Each undeclared identifier is reported only once

brctl-010226.c:60: for each funtion it appears in.)

brctl-010226.c:64: `ATM_NEWBACKENDIF' undeclared (first use in this funtion)

brctl-010226.c: In function `assign_vcc':

brctl-010226.c:87: storage size of `be' isn't known

brctl-010226.c:129: `ATM BACKEND_BR2684' undeclared (first use in this
function)

brctl-010226.c:139: `ATM_SETBACKEND' undeclared (first use in this function)

I really need this program to compile so I can get on the internet. Anyone
have suggestions or could anyone compile it for me? Thanks. Kernel version
is 2.4.3 (It's old I know but it's the only kernel I could get to accept the
patches). Distro: RedHat 7.2

 
 
 

brctl won't compile

Post by Mike » Sun, 26 May 2002 17:19:28




Quote:> Just a little info, brctl is a program used to create the nas0
> interface.  I'm trying to use it for my usb alcatel speedtouch for a
> pppoe connection.  However, after applying the atm patches and
> everything to my kernel, it won't compile. It gives me this error:

How convenient; I played this game just a few days ago, although with
bridged ethernet rather than PPPoE.


> In file included from brctl-010226.c:10:
> /usr/include/linux/atmbr2684.h:44: parse error before `atm_backend_t'

You need to get it to include your new kernel's headers, not the ones
shipped with your distro (since they're built for a different kernel,
which don't have the needed patches).  The file you need to get it to
use is /usr/src/linux/include/linux/atmbr2684.h, and this is included
as <linux/atmbr2684.h>, so what you need to do is get gcc to check in
/usr/src/linux/include before it looks in /usr/include.

When I did this, the system didn't have that file in /usr/include, so
I just got:

$ gcc -o brr2684ctl br2684ctl.c -latm
br2684ctl.c:9: linux/atmbr2684.h: No such file or directory

And I changed it to:
$ gcc -o brr2684ctl -I/usr/src/linux/include br2684ctl.c -latm

Which works; you might need to massage this a bit to get it to include
the file from /usr/src/linux instead of /usr/include.

As a last ditch, remove whatever package installed /usr/include/linux
stuff and it should be fine;  you could symlink /usr/include/linux to
your kernel's build directory, too.  To find out the package, I think
rpm -qf /usr/include/linux/atmbr2684.h should do the trick.

Quote:> I really need this program to compile so I can get on the internet.
> Anyone have suggestions or could anyone compile it for me? Thanks.
> Kernel version is 2.4.3 (It's old I know but it's the only kernel I
> could get to accept the patches). Distro: RedHat 7.2

We found a version for 2.4.17 that patches cleanly into 2.4.18, although
this was br2684 -- not sure if it's the same patch you need or not.

Have a hunt around for br2684-against2_4_17_diff.txt.
--
Mike.                                       (remove "-spam" to mail me)

 
 
 

brctl won't compile

Post by Philip Le » Mon, 27 May 2002 02:22:07


Quote:> And I changed it to:
> $ gcc -o brr2684ctl -I/usr/src/linux/include br2684ctl.c -latm

Okay, I ran that to make sure it was including the correct headers...it
still gave me the exact same error.

Quote:> We found a version for 2.4.17 that patches cleanly into 2.4.18, although
> this was br2684 -- not sure if it's the same patch you need or not.

Actually I needed the speedtouch drivers also, and they wouldn't patch
anything other than 2.4.3 on my machine...believe me, I've tried 2.4.18,
2.4.9, and 2.4.3.  Could I download the windows executable? It's posted on
the brctl page in one of the folders. I doubt it would work but it's a try.
Oh, and I tried to compile it with the 2.4.18 kernel which has the header
files already...still the same error.
 
 
 

brctl won't compile

Post by Philip Le » Mon, 27 May 2002 05:53:23


Quote:> Could I download the windows executable? It's posted on
> the brctl page in one of the folders. I doubt it would work but it's a

try.

Well, to answer my own question...the executable works in linux. It really
pisses me off that I can't compile the thing myself though.