Re: PPPD 2.2.0e: Failing to compile under linux 1.3.84

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Sun, 7 Apr 1996 23:28:06 -0500 (CDT)


> Date: Sun, 7 Apr 1996 20:37:00 -0400 (EDT)
> From: Mark Hahn <hahn@neurocog.lrdc.pitt.edu>
> To: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
> Subject: Re: PPPD 2.2.0e: Failing to compile under linux 1.3.84
>
> > gcc -g -D_linux_=1 -DHAVE_PATHS_H -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o sys-linux.o -lbsd -lc # -Wl,-M >pppd.map
> > sys-linux.o(.text+0x9cc): undefined reference to `__constant_c_and_count_memset'
> ...
> > I looked the preprocessed code and these "missing" functions where all
> > there, but the linker still keep complaining about... Maybe this inlined
> > functions only work with gcc 2.7.2?!?! any guesses??
>
> actually, the problem is that inlines only work if you compile
> with -O. in my opinion it's asinine to ship anything whose
> makefile sets -g; I even recompile gcc with -O2 rather than the
> -g -O its shipped with.
>
> regards, mark hahn.
> --
> operator may differ from spokesperson. hahn@neurocog.lrdc.pitt.edu
> http://neurocog.lrdc.pitt.edu/~hahn/

Ok, the -O instead of -g resolved the inline functions errors, now I get
a new one... ___strtok not found, if anybody resolve this error, please
share with us :-))

[]s
Arnaldo Carvalho de Melo acme@conectiva.com.br
R&D Director http://conectiva.com.br
Conectiva Internet Solutions Curitiba - Parana' - Brazil