pcsc-lite-1.8.17 on solaris system

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

pcsc-lite-1.8.17 on solaris system

Greg Barry
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg





_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Ivo Raisr

Greg,

First of all I wonder why do you build pcsc-lite on more than 10 year old OS?
Solaris 11 has been around for some quite time and it is much better in all aspects.

Now to your question:
the error is: "configfile.l:329: error: continue statement not within a loop"

What compiler and which version do you use to build? We use Solaris Studio 12
and everything compiles ok.

pcsc-lite has been successfully built for Solaris 11.3 with some additional patches.
Have a look here:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

Kind regards,
I.


On 1.8.2016 21:43, Greg Barry wrote:
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg






_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Greg Barry
Ivo,

We have been thinking of loading 11 but have not done so yet

I am using gcc compiler version 3.4.6

Thanks,
Greg




On 08/01/16 15:36, Ivo Raisr wrote:

Greg,

First of all I wonder why do you build pcsc-lite on more than 10 year old OS?
Solaris 11 has been around for some quite time and it is much better in all aspects.

Now to your question:
the error is: "configfile.l:329: error: continue statement not within a loop"

What compiler and which version do you use to build? We use Solaris Studio 12
and everything compiles ok.

pcsc-lite has been successfully built for Solaris 11.3 with some additional patches.
Have a look here:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

Kind regards,
I.


On 1.8.2016 21:43, Greg Barry wrote:
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg






_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Ivo Raisr



On 2.8.2016 00:59, Greg Barry wrote:
Ivo,

I am using gcc compiler version 3.4.6

That would be probably it. Please try gcc 4.x or Solaris Studio (they are both free).

I.



On 08/01/16 15:36, Ivo Raisr wrote:

Greg,

First of all I wonder why do you build pcsc-lite on more than 10 year old OS?
Solaris 11 has been around for some quite time and it is much better in all aspects.

Now to your question:
the error is: "configfile.l:329: error: continue statement not within a loop"

What compiler and which version do you use to build? We use Solaris Studio 12
and everything compiles ok.

pcsc-lite has been successfully built for Solaris 11.3 with some additional patches.
Have a look here:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

Kind regards,
I.


On 1.8.2016 21:43, Greg Barry wrote:
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg






_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Greg Barry
Thanks
I will try one of those compilers




On 08/01/16 16:02, Ivo Raisr wrote:



On 2.8.2016 00:59, Greg Barry wrote:
Ivo,

I am using gcc compiler version 3.4.6

That would be probably it. Please try gcc 4.x or Solaris Studio (they are both free).

I.



On 08/01/16 15:36, Ivo Raisr wrote:

Greg,

First of all I wonder why do you build pcsc-lite on more than 10 year old OS?
Solaris 11 has been around for some quite time and it is much better in all aspects.

Now to your question:
the error is: "configfile.l:329: error: continue statement not within a loop"

What compiler and which version do you use to build? We use Solaris Studio 12
and everything compiles ok.

pcsc-lite has been successfully built for Solaris 11.3 with some additional patches.
Have a look here:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

Kind regards,
I.


On 1.8.2016 21:43, Greg Barry wrote:
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg






_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Greg Barry
In reply to this post by Ivo Raisr
I downloaded and installed solarisstudio12.3
The configure again ran fine
The make failed with errors
I attached file with output

Thanks,
Greg




On 08/01/16 16:02, Ivo Raisr wrote:



On 2.8.2016 00:59, Greg Barry wrote:
Ivo,

I am using gcc compiler version 3.4.6

That would be probably it. Please try gcc 4.x or Solaris Studio (they are both free).

I.



On 08/01/16 15:36, Ivo Raisr wrote:

Greg,

First of all I wonder why do you build pcsc-lite on more than 10 year old OS?
Solaris 11 has been around for some quite time and it is much better in all aspects.

Now to your question:
the error is: "configfile.l:329: error: continue statement not within a loop"

What compiler and which version do you use to build? We use Solaris Studio 12
and everything compiles ok.

pcsc-lite has been successfully built for Solaris 11.3 with some additional patches.
Have a look here:
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

Kind regards,
I.


On 1.8.2016 21:43, Greg Barry wrote:
Trying to configure and compile pcsc-lite-1.8.17 on a Sun Sparc
system running Solaris 10 1/13. We are looking to connect an
omnikey 3021 reader to the system.

I can get the configure to work using:
    ./configure --disable-libusb

but the make fails with the errors:
configfile.l: In function `DBGetReaderListDir':
configfile.l:314: error: syntax error before "else"
configfile.l:288: warning: unused variable `r'
configfile.l:329: error: continue statement not within a loop
configfile.l:333: error: `r' undeclared (first use in this function)
configfile.l:333: error: (Each undeclared identifier is reported only once
configfile.l:333: error: for each function it appears in.)
configfile.l:333: error: `filename' undeclared (first use in this function)
configfile.l: At top level:
configfile.l:342: error: syntax error before "else"
*** Error code 1
The following command caused the error:
echo "  CC      " pcscd-configfile.o;gcc -DHAVE_CONFIG_H -I. -I..  -I../src/PCSC -I../src/PCSC   -I../src  -I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads      -DPCSCD -DSIMCLIST_NO_DUMPRESTORE -Wall -fno-common -g -O2 -MT pcscd-configfile.o -MD -MP -MF .deps/pcscd-configfile.Tpo -c -o pcscd-configfile.o `test -f 'configfile.c' || echo './'`configfile.c
make: Fatal error: Command failed for target `pcscd-configfile.o'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '2'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='spy' ;; \
  *) list='spy' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS; if {  if test -z '1'; then  false;  elif test -n ''; then  true;  elif test -n '' && test -n ''; then  true;  else  false;  fi;  }; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \       ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs   ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dED!
 m]) skip_n
ext=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src etc doc' ;; \
  *) list='src etc doc' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /sysmgr/sysbin/ccid/pcsc-lite-1.8.17
*** Error code 1
make: Fatal error: Command failed for target `all'

Hoping you might have some advice on how to build on this platform

Thanks,
Greg






_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle


_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle



_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

gmake_errs.out (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Ivo Raisr


On 2.8.2016 17:19, Greg Barry wrote:
> I downloaded and installed solarisstudio12.3
> The configure again ran fine
> The make failed with errors
> I attached file with output
>

So the error after all seems to be because direntry->d_type is not
present on Solaris.
You probably need this patch:
https://java.net/projects/solaris-userland/sources/gate/content/components/pcsc-lite/patches/02-configfile.c.patch

Have a look at this directory if there are any other patches you'd need
(probably yes):
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Greg Barry
The 02-configfile.c.patch worked
I was able to compile and install pcsc-lite .. thanks

Now trying to compile and install ccid-1.4.24
the ./configure is erroring with:

.
.
.
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCSC... no
configure: error: use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure




On 08/02/16 08:56, Ivo Raisr wrote:


On 2.8.2016 17:19, Greg Barry wrote:
I downloaded and installed solarisstudio12.3
The configure again ran fine
The make failed with errors
I attached file with output


So the error after all seems to be because direntry->d_type is not present on Solaris.
You probably need this patch:
https://java.net/projects/solaris-userland/sources/gate/content/components/pcsc-lite/patches/02-configfile.c.patch

Have a look at this directory if there are any other patches you'd need (probably yes):
https://java.net/projects/solaris-userland/sources/gate/show/components/pcsc-lite

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Ivo Raisr


On 2.8.2016 19:03, Greg Barry wrote:

> The 02-configfile.c.patch worked
> I was able to compile and install pcsc-lite .. thanks
>
> Now trying to compile and install ccid-1.4.24
> the ./configure is erroring with:
>
> .
> .
> .
> checking for pkg-config... /bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for PCSC... no

Well, that's obvious - check for PCSC fails.
You need to install pcsc in a well known location or instruct
ccid's configure to look where you installed pcsc.
I assume README/INSTALL for ccid covers that.

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Greg Barry
Ivo, thank you so much for your help

I should explain, that our management is requiring that we figure
out how to authenticate using card reader or they are going to
remove our sun systems .. so I am a little desperate

I was able to get ccid to compile and install with these commands:
export CC=/opt/solarisstudio12.3/bin/cc
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

./configure --disable-libusb --prefix=/usr/local
make
make install
but nothing appeared to get installed into /usr/local


I apologize for my lack of knowlege on this .. but I'm not
sure what my next step is?

When I connect the omnikey 3120 reader to the system
I get these messages

usba: [ID 912658 kern.info] USB 2.0 device (usb76b,3021) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, usb_mid1 at bus address 2
usba: [ID 349649 kern.info]      OMNIKEY AG Smart Card Reader USB
genunix: [ID 936769 kern.info] usb_mid1 is /pci@1e,600000/usb@b/device@2
genunix: [ID 408114 kern.info] /pci@1e,600000/usb@b/device@2 (usb_mid1) online
usba: [ID 723738 kern.info] /pci@1e,600000/usb@b/device@2 (usb_mid1): no driver found for interface 0 (nodename: 'interface') of OMNIKEY AG Smart Card Reader USB

Running the pscd daemon in debug mode produces:
 /usr/local/sbin/pcscd --debug -f
00000000 pcscdaemon.c:351:() pcscd set to foreground with debug send to stdout
00001345 configfile.l:341:() Parsing conf file: /usr/local/etc/reader.conf.d
00000067 pcscdaemon.c:672:() pcsc-lite 1.8.17 daemon ready.

but it does not seem to be aware of any of the usb device ports



    


On 08/02/16 10:08, Ivo Raisr wrote:


On 2.8.2016 19:03, Greg Barry wrote:
The 02-configfile.c.patch worked
I was able to compile and install pcsc-lite .. thanks

Now trying to compile and install ccid-1.4.24
the ./configure is erroring with:

.
.
.
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCSC... no

Well, that's obvious - check for PCSC fails.
You need to install pcsc in a well known location or instruct
ccid's configure to look where you installed pcsc.
I assume README/INSTALL for ccid covers that.

I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: pcsc-lite-1.8.17 on solaris system

Ivo Raisr



On 2.8.2016 22:40, Greg Barry wrote:
I apologize for my lack of knowlege on this .. but I'm not
sure what my next step is?

When I connect the omnikey 3120 reader to the system
I get these messages

usba: [ID 912658 kern.info] USB 2.0 device (usb76b,3021) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, usb_mid1 at bus address 2
usba: [ID 349649 kern.info]      OMNIKEY AG Smart Card Reader USB
genunix: [ID 936769 kern.info] usb_mid1 is /pci@1e,600000/usb@b/device@2
genunix: [ID 408114 kern.info] /pci@1e,600000/usb@b/device@2 (usb_mid1) online
usba: [ID 723738 kern.info] /pci@1e,600000/usb@b/device@2 (usb_mid1): no driver found for interface 0 (nodename: 'interface') of OMNIKEY AG Smart Card Reader USB

Running the pscd daemon in debug mode produces:
 /usr/local/sbin/pcscd --debug -f
00000000 pcscdaemon.c:351:() pcscd set to foreground with debug send to stdout
00001345 configfile.l:341:() Parsing conf file: /usr/local/etc/reader.conf.d
00000067 pcscdaemon.c:672:() pcsc-lite 1.8.17 daemon ready.

but it does not seem to be aware of any of the usb device ports

Is your smart card reader USB one? If yes,
then you also need a decent usb library, such as:
https://java.net/projects/solaris-userland/sources/gate/show/components/libusb-1
and you need to have pcsc-lite and libccid build against it.

I suggest to follow steps in Makefiles and examine patches for all the
components you need in your 2FA smart card stack:
libusb-1, pcsc-lite, ccid, [also libpki and openca-ocspd should you need to utilize OCSP]
https://java.net/projects/solaris-userland/sources/gate/show/components

Examine contents of *.p5m files which will guide you where to put
stuff so that the components work together.

In particular, libcccid.so gets used from a location such as:
/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
But that depends on how did you configure pcsc-lite.

Kind regards,
I.

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle