pppd: Rebuild error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, please, someone help me...

I must rebuild pppd whit pppoatm.so support on FC1, and I get this
error:

....
In file included from pppoe.c:21:
pppoe.h:119: error: initializer element is not constant
pppoe.h:119: error: (near initialization for `tag_map[0]')
pppoe.h:120: error: initializer element is not constant
pppoe.h:120: error: (near initialization for `tag_map[1]')
pppoe.h:121: error: initializer element is not constant
pppoe.h:121: error: (near initialization for `tag_map[2]')
pppoe.h:122: error: initializer element is not constant
pppoe.h:122: error: (near initialization for `tag_map[3]')
pppoe.h:123: error: initializer element is not constant
pppoe.h:123: error: (near initialization for `tag_map[4]')
pppoe.h:124: error: initializer element is not constant
pppoe.h:124: error: (near initialization for `tag_map[5]')
pppoe.h:125: error: initializer element is not constant
pppoe.h:125: error: (near initialization for `tag_map[6]')
pppoe.h:126: error: initializer element is not constant
pppoe.h:126: error: (near initialization for `tag_map[7]')
pppoe.h:127: error: initializer element is not constant
pppoe.h:127: error: (near initialization for `tag_map[8]')
pppoe.h:129: error: initializer element is not constant
pppoe.h:129: error: (near initialization for `tag_map[9]')
....

from BUILD/ppp-2.4.1/pppd/plugins/pppoe/pppoe.h:
     54
     55 #include <linux/if_pppox.h>
     56
........
    119 static int tag_map[] = { PTT_SRV_NAME,
    120                          PTT_AC_NAME,
    121                          PTT_HOST_UNIQ,
    122                          PTT_AC_COOKIE,
    123                          PTT_VENDOR,
    124                          PTT_RELAY_SID,
    125                          PTT_SRV_ERR,
    126                          PTT_SYS_ERR,
    127                          PTT_GEN_ERR,
    128                          PTT_EOL
    129 };
......

On RedHat 9 (igloo) the rebuild is OK, the difference is in this file:
[lesca@igloo work]$ grep PTT_SRV_NAME /usr/include/ -r
/usr/include/linux/if_pppox.h:#define PTT_SRV_NAME
						__constant_htons(0x0101)
[lesca@igloo work]$ rpm -qf /usr/include/linux/if_pppox.h
glibc-kernheaders-2.4-8.10

On Fedora Core 1 (ciao) the file is different (__constant_ is missing)

[lesca@ciao work]$ grep PTT_SRV_NAME /usr/include/ -r
/usr/include/linux/if_pppox.h:#define PTT_SRV_NAME      htons(0x0101) 

[lesca@ciao work]$ rpm -qf /usr/include/linux/if_pppox.h
glibc-kernheaders-2.4-8.36 

How to resolv the error? pleas, I not a 'C' expert, someone point me on
rhigt direction!

Thanks for help ...

-- 
Dario Lesca <d.lesca@xxxxxxxxxx>




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux