/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" Error code 1

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" Error code 1

    Hi,
    if I try to build the tac_plus-4.4beta2 Tacacs Server from [url]http://www.networkforums.net/[/url]
    on my FreeBSD 5.3-RELEASE-p5 I get this Error message


    bash-2.05b# make tac_plus
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c acct.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c authen.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c author.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c config.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c choose_authen.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c default_fn.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c default_v0_fn.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c do_acct.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c do_author.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c dump.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c enable.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c encrypt.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c expire.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c hash.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c tac_plus.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c md5.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c packet.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c parse.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c programs.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c pw.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c pwlib.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c report.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c sendauth.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c sendpass.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c time_limit.c
    time_limit.c: In function `process':
    time_limit.c:154: warning: passing arg 1 of `localtime' from incompatible pointer type
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c utils.c
    In file included from utils.c:28:
    /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
    *** Error code 1

    Stop in /home/mib/tac_plus-4.4beta2.
    bash-2.05b# pwd
    /home/mib/tac_plus-4.4beta2
    bash-2.05b#

    Is there any way to fix this problem ???


    best regards


    Michael
    Michael Bohn Guest

  2. Similar Questions and Discussions

    1. #36441 [NoF->Bgs]: php exits script (without error) when finds code like "function xxx(); {}"
      ID: 36441 Updated by: bjori@php.net Reported By: michal dot hantl at gmail dot com -Status: No Feedback...
    2. Template problem: "making this change would require changing code that is locked..." error.
      Hi all, I have read past postings, checked syntax and code (to the best of my somewhat humble abilities) and tried all sorts of solutions short of...
    3. (REPOST & CROSS-POST) - "simple(ish) code error"
      Ok, I've got a slight problem that is proving to be a little irritating. I have a sales interface that is used by various members of staff to...
    4. recvfrom returns with an error code of 14, EFAULT "Bad Address"
      I'll post the code at the bottom of the post. Whenever I try to retreive a udp packet sent via broadcast I get the errorcode EFAULT(bad address)....
    5. Getting error "Unable to generate code for a value of type"
      I have created a server control for asp.net using C#. Everything works fine in Visual Studio, but when I attempt to look at the page I get an error....
  3. #2

    Default Re: /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" Error code 1

    On Fri, Feb 25, 2005 at 10:51:01PM +0100, Michael Bohn wrote:

    [...]
    > In file included from utils.c:28:
    > /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
    > *** Error code 1
    >
    > Stop in /home/mib/tac_plus-4.4beta2.
    > bash-2.05b# pwd
    > /home/mib/tac_plus-4.4beta2
    > bash-2.05b#
    >
    > Is there any way to fix this problem ???
    Yes. Do what the error message says. Replace malloc.h in the source
    with stdlib.h.
    --
    Jonathan Chen <jonc@chen.org.nz>
    ----------------------------------------------------------------------
    Jesus saves.
    Allah forgives.
    Cthulu thinks you'd make a nice sandwich.
    Jonathan Chen 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