"Undefined Reference" Error Recompiling Kernel

"Undefined Reference" Error Recompiling Kernel

Post by cwil.. » Tue, 26 Mar 1996 04:00:00



I am trying to recompile Slackware Linux kernel to add bus mouse support.
I have downloaded and installed the A, D, K, and X disks. I run the make
config part with no problems except I get an error message at the end
about Hostname, but the process continues and tells me I have a good
config file. I then run make dep and make clean and everything goes well.
But when I run make zdisk, it compiles OK for quite a while then when it
tries to link I get error messages stating "Undefined Reference to' and
several call including "kfree_skb", "verify_iovec", "Sock_setsockopt" and
more! It then stops and does not create my boot disk. What am I doing
wrong? Do I need to install more disks? I am not that swift when it comes
to compiling the kernel, so I could use as much help as possible. I
hate to recompile, but I need bus mouse support.

Any help would be greatly appreciated.

 
 
 

1. Plz help- "undefined reference" error in short sample c++ program

When I compile the following program (taken directly from the C++ FAQ
book), I get undefined reference errors for an element in the
program's defined class.
I'd read that uninstalling/reinstalling c++ libs fixes the problem.
However, I've done this (and have the latest version of gcc and libs),
to no effect.  Currently using RedHat 7.1.

Can anyone help?

Thanks,
Joe

cc recycle.cpp
/tmp/cco69TPH.o: In function `Fred::create(void)':
/tmp/cco69TPH.o(.text+0x69): undefined reference to
`Fred::headRecycled_'
/tmp/cco69TPH.o(.text+0xb9): undefined reference to
`Fred::headRecycled_'
/tmp/cco69TPH.o(.text+0xc1): undefined reference to
`Fred::headRecycled_'
/tmp/cco69TPH.o(.text+0xc8): undefined reference to
`Fred::headRecycled_'
/tmp/cco69TPH.o: In function `Fred::discard(void)':
/tmp/cco69TPH.o(.text+0x14e): undefined reference to
`Fred::headRecycled_'
/tmp/cco69TPH.o(.text+0x156): more undefined references to
`Fred::headRecycled_' follow
collect2: ld returned 1 exit status

==========================================
#include <new>
using namespace std;

class Fred {
public:
  static Fred* create() throw(bad_alloc);
  virtual void discard() throw();
  static bool flushPool() throw();
private:
  Fred() throw();
  ~Fred() throw();
  static Fred* headRecycled_;
  void init() throw();
  Fred* nextRecycled_;

void Fred::init() throw()
{
  //
  nextRecycled_ = NULL;

Fred::Fred() throw()
{ init(); }

Fred::~Fred() throw()
{ }

Fred* Fred::create() throw(bad_alloc)
{
  if (Fred::headRecycled_ == NULL)
    return new Fred();
  Fred* p = Fred::headRecycled_;
  Fred::headRecycled_ = Fred::headRecycled_->nextRecycled_;
  p->init();
  return p;

void Fred::discard() throw()
{
  nextRecycled_ = headRecycled_;
  headRecycled_  = this;

bool Fred::flushPool() throw()
{
  bool stuffGotDeleted = (headRecycled_ != NULL);
  while (headRecycled_ != NULL)
    delete create();
  return stuffGotDeleted;

void flushAllPools() throw(bad_alloc)
{
  unsigned n = 0;
  n += Fred::flushPool();

  if (n == 0)
    throw bad_alloc();

int main()
{
  set_new_handler(flushAllPools);
========================================

2. Intel 815 Motherboard w/ Onboard Video

3. Error compiling kdelibs-2.0.*: "undefined reference to mainParse in kio/.libs/libksycoca.so"

4. BSD gdb upgrade going away for romp

5. Which JDK is supported for Reliant UNIX (SINIX)

6. Strange "undefined reference" compiler errors

7. need linux newbie books

8. GETSERVBYNAME()????????????????????"""""""""""""

9. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

10. Recompiled kernel wont boot - "Error 0x00"

11. "Internal compiler error" during kernel recompiling

12. xwave linking problems "undefined reference"