FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2011
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    make Error 1

    hello
    I am trying to compile OLSRd on Fedora 15 but 'make' throws Error 1. Here is the output:

    Code:
    [x@localhost olsrd-0.6.0]$ make
    /usr/bin/ccache gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wendif-labels -Wwrite-strings -Wbad-function-cast -Wpointer-arith -Wcast-qual -Wshadow -Wformat-2 -Wsequence-point -Wpointer-arith -Wcast-align -Wnested-externs -Winline -Wdisabled-optimization -finline-functions-called-once -funit-at-a-time -fearly-inlining -finline-limit=350   -ggdb -Isrc -pthread  -DUSE_FPM -Dlinux -DLINUX_NETLINK_ROUTING -DDEBUG    -c -o src/common/autobuf.o src/common/autobuf.c
    cc1: error: unrecognized command line option ‘-Wformat-2’
    make: *** [src/common/autobuf.o] Error 1
    [kox@localhost olsrd-0.6.0]$
    any ideas?

  2. #2
    Join Date
    Aug 2008
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    -Wformat=2
    Enable -Wformat plus format checks not included in -Wformat. Currently equivalent to -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k.

    Notice the = rather than - sign?

  3. #3
    Join Date
    May 2011
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    Quote Originally Posted by jvillain
    -Wformat=2
    Enable -Wformat plus format checks not included in -Wformat. Currently equivalent to -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k.

    Notice the = rather than - sign?
    how can I do that?

  4. #4
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    Hi,
    try commenting that part and check.

  5. #5
    Join Date
    May 2011
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    Quote Originally Posted by muddi
    Hi,
    try commenting that part and check.
    Hello muddi
    I located the
    Code:
    WARNINGS += -Wformat-2
    in Makefile.inc and I commented it and it worked..
    do you know what does this warning exactly is for? I mean, by commenting this line, would I get any problems with the installed program?

  6. #6
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    good

    i don't know exactly, but these are switches used in making packages. These commands are maybe specific to some platform. As long as you are able to use, just proceed

    cheers

  7. #7
    Join Date
    May 2011
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    okays thanks for helping

  8. #8
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: make Error 1

    Welcome

Similar Threads

  1. Replies: 5
    Last Post: 23rd May 2009, 11:11 PM
  2. Replies: 12
    Last Post: 18th July 2008, 11:39 AM
  3. make error
    By raghavendra in forum Using Fedora
    Replies: 3
    Last Post: 15th July 2006, 07:36 AM
  4. VDR FC3 make error :(
    By cRuNcHiE in forum Using Fedora
    Replies: 0
    Last Post: 15th November 2004, 03:52 PM

Tags for this Thread

Posting Permissions

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