Re: pcsc-lite-1.8.17 on solaris system
Greg Barry <[email protected]> Tue, 02 Aug 2016 08:19:28 -0700
| Newsgroups | gmane.comp.lib.muscle |
|---|---|
| Organization | Lockheed Martin Information Technology |
| Message-ID | <[email protected]> |
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
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
gmake_errs.out
(text/plain, 7.6 KB)
# /opt/sfw/bin/gmake
/opt/sfw/bin/gmake all-recursive
gmake[1]: Entering directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17'
Making all in src
gmake[2]: Entering directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src'
Making all in spy
gmake[3]: Entering directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src/spy'
CC libpcscspy.lo
"libpcscspy.c", line 368: warning: operands have incompatible pointer types: op "=="
"libpcscspy.c", line 374: warning: assignment type mismatch:
pointer to function(unsigned long, pointer to const void, pointer to const void, pointer to long) returning long "=" pointer to void
"libpcscspy.c", line 375: warning: assignment type mismatch:
pointer to function(long) returning long "=" pointer to void
"libpcscspy.c", line 376: warning: assignment type mismatch:
pointer to function(long) returning long "=" pointer to void
"libpcscspy.c", line 377: warning: assignment type mismatch:
pointer to function(long, pointer to const char, unsigned long, unsigned long, pointer to long, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 378: warning: assignment type mismatch:
pointer to function(long, unsigned long, unsigned long, unsigned long, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 379: warning: assignment type mismatch:
pointer to function(long, unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 380: warning: assignment type mismatch:
pointer to function(long) returning long "=" pointer to void
"libpcscspy.c", line 381: warning: assignment type mismatch:
pointer to function(long, unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 382: warning: assignment type mismatch:
pointer to function(long, pointer to char, pointer to unsigned long, pointer to unsigned long, pointer to unsigned long, pointer to unsigned char, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 383: warning: assignment type mismatch:
pointer to function(long, unsigned long, pointer to struct {pointer to const char szReader, pointer to void pvUserData, unsigned long dwCurrentState, unsigned long dwEventState, unsigned long cbAtr, array[33] of unsigned char rgbAtr}, unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 384: warning: assignment type mismatch:
pointer to function(long, unsigned long, pointer to const void, unsigned long, pointer to void, unsigned long, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 385: warning: assignment type mismatch:
pointer to function(long, pointer to const struct {unsigned long dwProtocol, unsigned long cbPciLength}, pointer to const unsigned char, unsigned long, pointer to struct {unsigned long dwProtocol, unsigned long cbPciLength}, pointer to unsigned char, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 386: warning: assignment type mismatch:
pointer to function(long, pointer to char, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 387: warning: assignment type mismatch:
pointer to function(long, pointer to const char, pointer to char, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 390: warning: assignment type mismatch:
pointer to function(long, pointer to const void) returning long "=" pointer to void
"libpcscspy.c", line 391: warning: assignment type mismatch:
pointer to function(long) returning long "=" pointer to void
"libpcscspy.c", line 392: warning: assignment type mismatch:
pointer to function(long, unsigned long, pointer to unsigned char, pointer to unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 393: warning: assignment type mismatch:
pointer to function(long, unsigned long, pointer to const unsigned char, unsigned long) returning long "=" pointer to void
"libpcscspy.c", line 394: warning: assignment type mismatch:
pointer to function(const long) returning pointer to char "=" pointer to void
CCLD libpcscspy.la
pod2man \
--center="PC/SC lite" \
--release="pcsc-lite 1.8.17" \
./pcsc-spy.pod > pcsc-spy.1
gmake[3]: Leaving directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src/spy'
gmake[3]: Entering directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src'
CC libpcsclite_la-debug.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-error.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-winscard_clnt.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-simclist.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-sys_unix.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-utils.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC libpcsclite_la-winscard_msg.lo
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CCLD libpcsclite.la
CC testpcsc.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
"../src/PCSC/reader.h", line 198: warning: zero or negative subscript
"../src/PCSC/reader.h", line 237: warning: zero or negative subscript
CCLD testpcsc
CC pcsc-wirecheck-gen.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CCLD pcsc-wirecheck-gen
touch pcsc-wirecheck-dist.c
CC pcsc-wirecheck-dist.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC pcsc-wirecheck-main.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CCLD pcsc-wirecheck
CC pcscd-auth.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC pcscd-atrhandler.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
CC pcscd-configfile.o
cc: Warning: Option -fvisibility=hidden passed to ld, if ld is invoked, ignored otherwise
"configfile.l", line 314: syntax error before or at: else
"configfile.l", line 329: "continue" outside loop
"configfile.l", line 333: undefined symbol: r
"configfile.l", line 333: undefined symbol: filename
"configfile.l", line 333: warning: improper pointer/integer combination: arg #1
"configfile.l", line 342: syntax error before or at: else
"configfile.l", line 344: warning: old-style declaration or incorrect type for: ret
"configfile.l", line 344: undefined symbol: readerconf_dir
"configfile.l", line 344: undefined symbol: caller_reader_list
"configfile.l", line 344: warning: improper pointer/integer combination: arg #1
"configfile.l", line 344: warning: improper pointer/integer combination: arg #2
"configfile.l", line 344: non-constant initializer: op "CALL"
"configfile.l", line 346: syntax error before or at: return
"configfile.l", line 346: warning: old-style declaration or incorrect type for: ret
cc: acomp failed for configfile.c
gmake[3]: *** [pcscd-configfile.o] Error 2
gmake[3]: Leaving directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/sysmgr/sysbin/ccid/pcsc-lite-1.8.17'
gmake: *** [all] Error 2