freebsd kernel 'make' failed : "undefined reference to..."

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default freebsd kernel 'make' failed : "undefined reference to..."

    Help!

    I'm a UNIX newbie trying to compile a custom kernel
    with modifications for TCP purposes. My system is
    FreeBSD 4.3 running on i386. My 'make depend' works
    fine, but when I geto to 'make', the following error
    occurs:

    tcp_usrreq.o: In function 'tcp6_connect':
    /usr/src/sys/compile/MYKERNEL/../../netinet/tcp_usrreq.c(text+0xfa5):
    undefined reference to 'tcpstat'

    The error repeats for other tcp*.o files, like
    tcp_output.o, tcp_subr.o, tcp_timer.o, and even
    in6_proto.o. There are undefined references to
    'tcp_mssopt', 'tcp_delack_enabled', 'tcp_ccgen',
    'tcb', 'tcbinfo', 'M_TSEGQ', 'tcp_mss', and
    'tcp6_input'. Most are common to the tcp*.o files.

    What should I do?? Googling gives me different answers
    for this error, answers I don't even understand.
    Anyway if you could help I would be really grateful. Thanks!



    __________________________________
    Do you Yahoo!?
    Yahoo! Sports - Sign up for Fantasy Baseball.
    [url]http://baseball.fantasysports.yahoo.com/[/url]
    Jamie Ann P. Zamodio Guest

  2. Similar Questions and Discussions

    1. #25622 [Opn->Bgs]: make failed stating: undefined reference to `gdImageCreateFromPngCtx
      ID: 25622 Updated by: sniper@php.net Reported By: cube660 at verizon dot net -Status: Open +Status: ...
    2. #25622 [Fbk->Opn]: make failed stating: undefined reference to `gdImageCreateFromPngCtx
      ID: 25622 User updated by: cube660 at verizon dot net Reported By: cube660 at verizon dot net -Status: Feedback...
    3. #25622 [Opn->Fbk]: make failed stating: undefined reference to `gdImageCreateFromPngCtx
      ID: 25622 Updated by: iliaa@php.net Reported By: cube660 at verizon dot net -Status: Open +Status: ...
    4. #25622 [Opn]: make failed stating: undefined reference to `gdImageCreateFromPngCtx
      ID: 25622 User updated by: cube660 at verizon dot net Reported By: cube660 at verizon dot net Status: Open Bug...
    5. #25622 [NEW]: make failed stating: undefined reference to `gdImageCreateFromPngCtx
      From: cube660 at verizon dot net Operating system: Windows XP PHP version: 4.3.3 PHP Bug Type: Compile Failure Bug...
  3. #2

    Default Re: freebsd kernel 'make' failed : "undefined reference to..."

    On Fri, Feb 25, 2005 at 03:52:44PM -0800, Jamie Ann P. Zamodio wrote:
    > Help!
    >
    > I'm a UNIX newbie trying to compile a custom kernel
    > with modifications for TCP purposes. My system is
    > FreeBSD 4.3 running on i386. My 'make depend' works
    > fine, but when I geto to 'make', the following error
    > occurs:
    >
    > tcp_usrreq.o: In function 'tcp6_connect':
    > /usr/src/sys/compile/MYKERNEL/../../netinet/tcp_usrreq.c(text+0xfa5):
    > undefined reference to 'tcpstat'
    The obvious answer is that you've stuffed up your kernel-config file.
    Why don't you start with a copy of the GENERIC file and *gradually*
    trim your file until you get a working version that satisfies your
    needs?

    Alternatively you can post your config-file here and hope that we can
    spot the error.
    --
    Jonathan Chen <jonc@chen.org.nz>
    ----------------------------------------------------------------------
    Experience is a hard teacher
    because she gives the test first, the lesson afterwards
    Jonathan Chen Guest

  4. #3

    Default Re: freebsd kernel 'make' failed : "undefined reference to..."

    On 02/25/05 18:52:44, Jamie Ann P. Zamodio wrote:
    > Help!
    >
    > I'm a UNIX newbie trying to compile a custom kernel
    > with modifications for TCP purposes. My system is
    > FreeBSD 4.3 running on i386. My 'make depend' works
    > fine, but when I geto to 'make', the following error
    > occurs:
    >
    > tcp_usrreq.o: In function 'tcp6_connect':
    > /usr/src/sys/compile/MYKERNEL/../../netinet/tcp_usrreq.c(text+0xfa5):
    > undefined reference to 'tcpstat'
    >
    > The error repeats for other tcp*.o files, like
    > tcp_output.o, tcp_subr.o, tcp_timer.o, and even
    > in6_proto.o. There are undefined references to
    > 'tcp_mssopt', 'tcp_delack_enabled', 'tcp_ccgen',
    > 'tcb', 'tcbinfo', 'M_TSEGQ', 'tcp_mss', and
    > 'tcp6_input'. Most are common to the tcp*.o files.
    >
    > What should I do?? Googling gives me different answers
    > for this error, answers I don't even understand.
    > Anyway if you could help I would be really grateful. Thanks!
    >
    You are not trying to add anything from a newer release to your older
    4.3 kernel conf file are you? Like pf or something?

    Jason Henson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139