All of lore.kernel.org
 help / color / mirror / Atom feed
* lex/yacc not configured properly.
@ 2015-04-16 10:22 Srinivasa Chamarthy
  2015-04-16 11:16 ` Srinivasa Chamarthy
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivasa Chamarthy @ 2015-04-16 10:22 UTC (permalink / raw)
  To: fio; +Cc: Srinivasa Chamarthy

There seems to be a small issue with configure while checking
lex/yacc. Eventhough lex/yacc is available, it fails as the library
name for lex is not what is expected.

library for lex should be "-lfl" instead of "-ll".

+ echo 'Compiling test case lex'
+ do_cc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
-lnuma -lrt -laio -lz
+ echo gcc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
-lnuma -lrt -laio -lz
+ gcc -D_GNU_SOURCE -include config-host.h -o
/tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
-lnuma -lrt -laio -lz
+ return 1
+ arith=no
+ echo 'lex/yacc for arithmetic       no'

The following fixes the issue:
------------------------
--- configure.old       2015-04-16 06:19:44.016796602 -0400
+++ configure   2015-04-16 06:19:55.272796870 -0400
@@ -1420,8 +1420,8 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-if compile_prog "" "-ll" "lex"; then
-  LIBS="-ll $LIBS"
+if compile_prog "" "-lfl" "lex"; then
+  LIBS="-lfl $LIBS"
 else
   arith="no"
 fi
-------------------

lex/yacc for arithmetic       yes

-- 
Srinivasa R Chamarthy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lex/yacc not configured properly.
  2015-04-16 10:22 lex/yacc not configured properly Srinivasa Chamarthy
@ 2015-04-16 11:16 ` Srinivasa Chamarthy
  0 siblings, 0 replies; 2+ messages in thread
From: Srinivasa Chamarthy @ 2015-04-16 11:16 UTC (permalink / raw)
  To: fio; +Cc: Srinivasa Chamarthy

This might fail for solaris. May require some conditional compilation.

On Thu, Apr 16, 2015 at 6:22 PM, Srinivasa Chamarthy
<chamarthy.raju@gmail.com> wrote:
> There seems to be a small issue with configure while checking
> lex/yacc. Eventhough lex/yacc is available, it fails as the library
> name for lex is not what is expected.
>
> library for lex should be "-lfl" instead of "-ll".
>
> + echo 'Compiling test case lex'
> + do_cc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
> -lnuma -lrt -laio -lz
> + echo gcc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
> -lnuma -lrt -laio -lz
> + gcc -D_GNU_SOURCE -include config-host.h -o
> /tmp/fio-conf-1068-8707-30378.exe /tmp/fio-conf-10872-8707-1500.c -ll
> -lnuma -lrt -laio -lz
> + return 1
> + arith=no
> + echo 'lex/yacc for arithmetic       no'
>
> The following fixes the issue:
> ------------------------
> --- configure.old       2015-04-16 06:19:44.016796602 -0400
> +++ configure   2015-04-16 06:19:55.272796870 -0400
> @@ -1420,8 +1420,8 @@ int main(int argc, char **argv)
>    return 0;
>  }
>  EOF
> -if compile_prog "" "-ll" "lex"; then
> -  LIBS="-ll $LIBS"
> +if compile_prog "" "-lfl" "lex"; then
> +  LIBS="-lfl $LIBS"
>  else
>    arith="no"
>  fi
> -------------------
>
> lex/yacc for arithmetic       yes
>
> --
> Srinivasa R Chamarthy



-- 
Srinivasa R Chamarthy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-16 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-16 10:22 lex/yacc not configured properly Srinivasa Chamarthy
2015-04-16 11:16 ` Srinivasa Chamarthy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.