Professional Web Applications Themes

Missing libraries when making c-client - FreeBSD

Greetings, I am having some trouble installing imap from source. I am building a machine for my boss who *insists* that I cannot use anything from the ports collection on the machine, so I can't use the imap port. The build is failing, and it seems as though it can't find some openssl include files, judging from the errors I am getting. This is on a stock 4.11 system. When I untar the imap-2004c1 source, I read the readme doc, and I ran make bsf since it is a FreeBSD install. It will not compile, though. Here is where it ...

  1. #1

    Default Missing libraries when making c-client



    Greetings,


    I am having some trouble installing imap from source. I am building a
    machine for my boss who *insists* that I cannot use anything from the
    ports collection on the machine, so I can't use the imap port.

    The build is failing, and it seems as though it can't find some openssl
    include files, judging from the errors I am getting.

    This is on a stock 4.11 system. When I untar the imap-2004c1 source, I
    read the readme doc, and I ran

    make bsf

    since it is a FreeBSD install. It will not compile, though. Here is where
    it is failing:

    Building with SSL and plaintext passwords disabled unless SSL/TLS
    echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >>
    linkage.c
    cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
    Building OS-dependent module
    If you get No such file error messages for files x509.h, ssl.h,
    pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
    is not installed on your system. Either install OpenSSL first
    or build with command: make bsf SSLTYPE=none
    `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
    osdep.c:138: x509.h: No such file or directory
    osdep.c:139: ssl.h: No such file or directory
    osdep.c:141: pem.h: No such file or directory
    osdep.c:142: buffer.h: No such file or directory
    osdep.c:143: bio.h: No such file or directory
    osdep.c:144: crypto.h: No such file or directory


    etc etc etc...


    In the Makefile, under the "bsf" target, we see that the path to the stock
    openssl libraries in FreeBSD is declared:

    bsf bso: an
    $(BUILD) BUILDTYPE=$ \
    SPECIALS="GSSDIR=/usr SSLDIR=/usr SSLINCLUDE=/usr/include/openssl
    SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private LOCKPGM=/usr/sbin/mlock"



    ...and an ls of /usr/include/openssl does include x509.h, ssl.h, pem.h,
    etc.

    Does anyone have any explanation for why it isn't finding those files?
    Any direction I can go from here? I would rather not build an additional
    openssl package from a source tree as I would like to just use what is on
    the system. It would make things cleaner (fewer moving parts) when
    cvsupping and building world, etc. I would prefer to use the native
    libraries.


    Thanks,

    - Jamie





    The Moon is Waning Gibbous (100% of Full)
    Jamie Guest

  2. #2

    Default Re: Missing libraries when making c-client




    Here is something higher up in the make output that looks like it may be a
    clue:

    Building with SSL
    ln -s ssl_unix.c osdepssl.c
    echo -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl
    -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\"
    -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/certs\" >> OSCFLAGS
    echo " ssl_onceonlyinit ();" >> linkage.c
    echo -L/usr/local/ssl/lib -lssl -lcrypto >> LDFLAGS


    It seems to be setting info in the files OSCFLAGS and LDFLAGS to
    /usr/local/ssl, and I don't have any /usr/local/ssl directory, and I am
    unsure how this can be corrected properly.






     

    The Moon is Waning Gibbous (100% of Full)
    Jamie Guest

  3. #3

    Default Re: Missing libraries when making c-client

    Jamie Ostrowski wrote: 

    Ahh - but did he tell you NOT to use packages?!


    --
    Best regards,
    Chris

    A physician's ability is inversely proportional
    to his availability.
    Chris Guest

Similar Threads

  1. Swatch Libraries Missing - Still
    By Paul_Tracy@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 30
    Last Post: July 20th, 05:16 AM
  2. missing swatch libraries...HELP!
    By virginia_morgan@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 3
    Last Post: June 22nd, 06:02 PM
  3. Missing Swatch Libraries!!
    By Scott_Fahy@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 11
    Last Post: February 25th, 03:43 PM
  4. making static libraries
    By Martijn in forum UNIX Programming
    Replies: 3
    Last Post: August 30th, 07:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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