From: "Retallack, Mark (Siemens)" <mark.retallack@siemens.com>
To: "'ecos-discuss@sources.redhat.com'" <ecos-discuss@sources.redhat.com>
Subject: [ECOS] FW: PPP Stack
Date: Fri, 14 Nov 2003 09:01:00 -0000 [thread overview]
Message-ID: <F5AFBF4F39DBDD488C5B9B41D48145CC1F9496@plestcl0112.stcl.siemens.co.uk> (raw)
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
reply other threads:[~2003-11-14 9:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F5AFBF4F39DBDD488C5B9B41D48145CC1F9496@plestcl0112.stcl.siemens.co.uk \
--to=mark.retallack@siemens.com \
--cc=ecos-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).