[ Next-in-Thread ]  [ Next Message ] 

Question: Unresolved symbols 

Forum: PCMCIA Installation and Configuration Issues
Date: 1999, Nov 01
From: Joseph Turian Turian

I installed the PCMCIA modules from 3.1.3, but when I start my computer they fail to load. When I run /etc/init.d/pcmcia start, I get the following error messages:

Starting PCMCIA services: modules/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strcat
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol inb
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol ioremap
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol __constant_memcpy
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol __constant_c_memset
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol ffs
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strcmp
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strcpy
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol __memcpy
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strlen
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol signal_pending
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol __constant_c_and_count_memset
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strncpy
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strncmp
/lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol __memset_generic

etc.
Any ideas?

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ All ]  Outline: [ 1 ]  [ 2 ]  [ All ] 

Bad CFLAGS during compilation

Re: Question: Unresolved symbols (Joseph Turian)
Date: 1999, Nov 01
From: David Hinds <dhinds@pcmcia.sourceforge.org>

On Sun, Oct 31, 1999 at 11:56:44PM -0800, Joseph Turian wrote:
> 
> I installed the PCMCIA modules from 3.1.3, but when I start my
> computer they fail to load. When I run /etc/init.d/pcmcia start, I get
> the following error messages: 
> 
> Starting PCMCIA services: modules
> /lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol strcat
> /lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol inb
> /lib/modules/2.2.13/pcmcia/pcmcia_core.o: unresolved symbol ioremap

This most likely means that you've set CFLAGS in your environment,
which is overriding the setting in the PCMCIA Makefile... and your
CFLAGS does not specify optimization.  These missing symbols are all
inline functions, that only get inlined properly if compiled with
optimization.

So, the quick workaround is to unset the CFLAGS variable before
building PCMCIA.  I'm fixing the Makefiles for 3.1.4 to not allow
CFLAGS overrides from the environment.  It was meant to be a feature,
but I've never really used it, and it confuses people.

-- Dave
Unresolved symbols


[ Add Message ]  to: "Unresolved symbols"

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]