Opened 2 years ago

Last modified 2 years ago

#66116 new defect

pcsc-tools fails when building with gcc-4.2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Boolean’

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: pcsc-tools

Description

pcsc_scan.c:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Boolean’
pcsc_scan.c: In function ‘should_exit’:
pcsc_scan.c:200: error: ‘Interrupted’ undeclared (first use in this function)
pcsc_scan.c:200: error: (Each undeclared identifier is reported only once
pcsc_scan.c:200: error: for each function it appears in.)
pcsc_scan.c: At top level:
pcsc_scan.c:213: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SpinState_t’
pcsc_scan.c: In function ‘spin_start’:
pcsc_scan.c:217: error: ‘spin_state’ undeclared (first use in this function)
pcsc_scan.c: In function ‘spin_stop’:
pcsc_scan.c:222: error: ‘spin_state’ undeclared (first use in this function)
pcsc_scan.c: In function ‘spin_update’:
pcsc_scan.c:244: error: ‘spin_state’ undeclared (first use in this function)
pcsc_scan.c: In function ‘user_interrupt_signal_handler’:
pcsc_scan.c:281: error: ‘Interrupted’ undeclared (first use in this function)
pcsc_scan.c: In function ‘stress’:
pcsc_scan.c:437: error: ‘Interrupted’ undeclared (first use in this function)
pcsc_scan.c: In function ‘main’:
pcsc_scan.c:802: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘uint32_t’
make[1]: *** [pcsc_scan-pcsc_scan.o] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_pcsc-tools/pcsc-tools/work/pcsc-tools-1.6.0'
make: *** [all] Error 2

Change History (3)

comment:1 Changed 2 years ago by kencu (Ken)

this looks like a gcc-4.2 error.

and indeed the 10.6.8 binaries are sitting right there:

https://packages.macports.org/pcsc-tools/pcsc-tools-1.6.0_0+perl5_34.darwin_10.i386.tbz2

so it’s not a standard problem with building this on 10.6.8.

please add your build configuration to nonstandard builds, and the log.

Last edited 2 years ago by kencu (Ken) (previous) (diff)

comment:2 Changed 2 years ago by kencu (Ken)

Summary: pcsc-tools fails on 10.6.8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Boolean’pcsc-tools fails when building with gcc-4.2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Boolean’

comment:3 Changed 2 years ago by kencu (Ken)

Keywords: snowleopard removed
Note: See TracTickets for help on using tickets.