Results 1 to 1 of 1

Thread: OpenLDAP and Ldap2radius Compile problem

  1. #1
    Join Date
    Sep 2013
    Beans
    2

    Unhappy OpenLDAP and Ldap2radius Compile problem

    As this Instructions of ldap2radius for openldap from this url: LDAp2Radius
    with this instructions:
    1 Building and installing
    =========================

    Build dependencies:
    - Flex http://www.gnu.org/software/flex/
    - Bison http://www.gnu.org/software/bison/bison.html
    - libradius http://portal-to-web.de/tacacs
    - OpenLDAP http://www.openldap.org

    To build and install, just run
    ./configure && make && make installI get this error in last step exactly when make:
    cc -g -O2 -DCF_FILE=\"/usr/local/etc/ldap2radius.conf\" -c -o ldap2radius.o ldap2radius.c
    ldap2radius.c: In function main:
    ldap2radius.c:94: warning: assignment makes pointer from integer without a cast
    ldap2radius.c: In function ldif_parse:
    ldap2radius.c:259: warning: assignment makes pointer from integer without a cast
    ldap2radius.c: In function parse_line:
    ldap2radius.c:324: warning: return makes integer from pointer without a cast
    ldap2radius.c:334: warning: return makes integer from pointer without a cast
    cc -g -O2 -DCF_FILE=\"/usr/local/etc/ldap2radius.conf\" -c -o cf.o cf.c
    bison -y cfparser.y
    mv y.tab.c cfparser.c
    flex -ocflexer.c cflexer.l
    cc -g -O2 -DCF_FILE=\"/usr/local/etc/ldap2radius.conf\" -c -o cfparser.o cfparser.c
    cc -o ldap2radius -lradius
    /usr/lib/gcc/i686-redhat-linux/4.4.7/../../../crt1.o: In function `_start':
    (.text+0x18): undefined reference to `main'
    collect2: ld returned 1 exit status
    make: *** [ldap2radius] Error 1


    please help
    how can I make this?
    Last edited by mehrdad4; September 28th, 2013 at 08:55 PM. Reason: Text Edit

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
  •