public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FW: PPP Stack
@ 2003-11-14  9:01 Retallack, Mark (Siemens)
  0 siblings, 0 replies; only message in thread
From: Retallack, Mark (Siemens) @ 2003-11-14  9:01 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-14  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-14  9:01 [ECOS] FW: PPP Stack Retallack, Mark (Siemens)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).