Is there a file where I can specify the location of my header files??(like that of ld.so.hints)

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default Is there a file where I can specify the location of my header files??(like that of ld.so.hints)

    Hi,
    I think I did something horrible with my machine. I
    cannot complete a "make" anywhere in ports. For
    example, I'm compiling iperf and got this error.

    headers.h:82:19: errno.h: No such file or directory
    headers.h:139:24: syslog.h: No such file or directory

    I used find to search for these files and I did find
    it.

    #find / -name errno.h -print
    /usr/include/sys/errno.h
    /usr/include/sys/syslog.h

    Whenever I'm compiling a c program, I learned that I
    can pass a -I<directory> to the gcc, but I don't know
    how to do it in ports. Is there a file where in I can
    specify where my include files can be found, like that
    of the ld-elf.so.hints and ld.so.hints that contains
    the directory where my libraries can be found?









    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - You care about security. So do we.
    [url]http://promotions.yahoo.com/new_mail[/url]
    Mark Jayson Alvarez Guest

  2. Similar Questions and Discussions

    1. header('location:
      Hello in the understanding code yesyes is shown on the screen but www.nu.nl is not activated. Does anybode know why thanks Frank <?...
    2. #26092 [Opn->Bgs]: header location utf-8
      ID: 26092 Updated by: moriyoshi@php.net Reported By: a_s at seznam dot cz -Status: Open +Status: ...
    3. #26092 [NEW]: header location utf-8
      From: a_s at seznam dot cz Operating system: WinXP,Win2003Server-Web PHP version: 4.3.2 PHP Bug Type: HTTP related Bug...
    4. Re[2]: [PHP] Location referer header
      Hi, Anybody have any sugestion how to pass this data. My only idea is something like this. redir.php?url=www.somehost.com&q=test&pos=1 ...
    5. header location newbie
      Hi, I'm doing a relative URL redirect using this: <? header("Location: ../research/index.php?current=34"); ?>
  3. #2

    Default Is there a file where I can specify the location of my header files??(like that of ld.so.hints)

    Hi,
    I think I did something horrible with my machine. I
    cannot complete a "make" anywhere in ports. For
    example, I'm compiling iperf and got this error.

    headers.h:82:19: errno.h: No such file or directory
    headers.h:139:24: syslog.h: No such file or directory

    I used find to search for these files and I did find
    it.

    #find / -name errno.h -print
    /usr/include/sys/errno.h
    /usr/include/sys/syslog.h

    Whenever I'm compiling a c program, I learned that I
    can pass a -I<directory> to the gcc, but I don't know
    how to do it in ports. Is there a file where in I can
    specify where my include files can be found, like that
    of the ld-elf.so.hints and ld.so.hints that contains
    the directory where my libraries can be found?








    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - 250MB free storage. Do more. Manage less.
    [url]http://info.mail.yahoo.com/mail_250[/url]
    Mark Jayson Alvarez Guest

  4. #3

    Default Re: Is there a file where I can specify the location of my header files??(like that of ld.so.hints)

    Mark Jayson Alvarez wrote:
    > Hi,
    > I think I did something horrible with my machine. I
    > cannot complete a "make" anywhere in ports. For
    > example, I'm compiling iperf and got this error.
    >
    > headers.h:82:19: errno.h: No such file or directory
    > headers.h:139:24: syslog.h: No such file or directory
    >
    > I used find to search for these files and I did find
    > it.
    >
    > #find / -name errno.h -print
    > /usr/include/sys/errno.h
    > /usr/include/sys/syslog.h
    >
    > Whenever I'm compiling a c program, I learned that I
    > can pass a -I<directory> to the gcc, but I don't know
    > how to do it in ports. Is there a file where in I can
    > specify where my include files can be found, like that
    > of the ld-elf.so.hints and ld.so.hints that contains
    > the directory where my libraries can be found?
    Hmm, please test whether you can compile the following C program:

    #include <stdio.h>

    int main (int argc, char *argv[]) {
    printf ("Hello, Mark!\n");
    return 0;
    }

    Then compile it using: gcc -c hello.c

    If it doesn't compile, something happened to your C compiler since
    /usr/include should be searched automatically (i.e. without -I) by gcc.

    If so, have a look at /etc/make.conf and also /etc/defaults/make.conf
    (the latter one should not be modified!)

    Simon

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCHFH/Ckn+/eutqCoRAq9lAKCn6zm5P/w+kyc6fG2ISPo6/YIk0wCg/s0x
    BqCGSZU/aSQRQcCHlLkAV8M=
    =F/Mp
    -----END PGP SIGNATURE-----

    Simon Barner 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