This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
FW: PPP Stack
- From: "Retallack, Mark (Siemens)" <mark dot retallack at siemens dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 14 Nov 2003 09:00:02 -0000
- Subject: [ECOS] FW: PPP Stack
I have setup a bug tracker to collect all the faults for the PPPStack that I
ported. (you just need to sign up for an account):
www.retallack.org.uk/mantis
The new problem is that in my kernel I don't have the getpid function. The
temporary solution is to change the magic_init function from:
void
magic_init()
{
long seed;
struct timeval t;
gettimeofday(&t, NULL);
seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid();
srand48(seed);
}
to:
void
magic_init()
{
long seed;
struct timeval t;
gettimeofday(&t, NULL);
#ifndef __ECOS
seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec ^ getpid();
#else
seed = get_host_seed() ^ t.tv_sec ^ t.tv_usec;
#endif // __ECOS
srand48(seed);
}
Note for mailing list: gettimeofday is supplied from the SNMP package, so
should be replaced with cyg_current_time.
-----Original Message-----
From: Carlos Perilla [mailto:carlos@phaber.com]
Sent: Friday 14 November 2003 03:45 AM
To: Retallack, Mark (Siemens)
Subject: PPP Stack
Excuze me to keep bothering you, I got another error during compiling
the stack.
This is the output, thanx for your help, I may write a file with my
experience and try to post it, to try to help you from recieving mails
like this.
i386-elf-gcc -c -o direct_connect.o
-I/home/deepspawn/ecos/i386_test/i386_kernel_net/install//include -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions -fvtable-gc -finit-priority direct_connect.c
i386-elf-gcc -nostartfiles
-L/home/deepspawn/ecos/i386_test/i386_kernel_net/install//lib
-Ttarget.ld -g -nostdlib -Wl,--gc-sections -Wl,-static -o
direct_connect.elf direct_connect.o
/home/deepspawn/ecos/i386_test/i386_kernel_net/install//lib/libtarget.a(net_
ppp_pppmain.o):
In function `pr_log':
/home/deepspawn/ecos/ecoscvs/packages/net/ppp/current/src/pppmain.c:1675:
multiple definition of `getpid'
/home/deepspawn/ecos/i386_test/i386_kernel_net/install//lib/libtarget.a(comp
at_posix_misc.o):/home/deepspawn/ecos/ecoscvs/packages/compat/posix/current/
src/misc.cxx:372:
first defined here
/home/deepspawn/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../
../../../i386-elf/bin/ld:
Warning: size of symbol `getpid' changed from 10 to 7 in
/home/deepspawn/ecos/i386_test/i386_kernel_net/install//lib/libtarget.a(net_
ppp_pppmain.o)
collect2: ld returned 1 exit status
make: *** [direct_connect] Error 1
Siemens Traffic Controls is a division of Siemens plc. Registered No.
727817, England.
Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ.
This communication contains information which is confidential and
may also be privileged. It is for the exclusive use of the addressee.
If you are not the addressee please note that any distribution,
reproduction, copying, publication or use of this communication
or the information in it is prohibited. If you have received this
communication in error, please contact us immediately and also
delete the communication from your computer.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss