Hi!

During my compilation on Solaris 9 of pcsc-lite-1.2.9-beta7 I get the 
following compilation error message:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/PCSC -I../src -I/usr/local/include 
-Wall -fno-common -g -O2 -D_REENTRANT -pthreads -MT sys_unix.lo -MD -MP 
-MF .deps/sys_unix.Tpo -c sys_unix.c  -DPIC
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
sys_unix.c:262:76: macro "Log2" requires 3 arguments, but only 2 given
sys_unix.c: In function `SYS_Daemon':
sys_unix.c:262: `Log2' undeclared (first use in this function)
sys_unix.c:262: (Each undeclared identifier is reported only once
sys_unix.c:262: for each function it appears in.)
sys_unix.c:265:76: macro "Log2" requires 3 arguments, but only 2 given
sys_unix.c:268:76: macro "Log2" requires 3 arguments, but only 2 given
sys_unix.c:272:71: macro "Log2" requires 3 arguments, but only 2 given

I fixed this according to CVS.

After this it compiles fine until pcscdaemon.c:

if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../src/PCSC -I../src  
-I/usr/local/include -Wall -fno-common -g -O2 -D_REENTRANT -pthreads 
-D_REENTRANT -pthreads -Wall -fno-common -g -O2 -D_REENTRANT -pthreads -MT 
pcscd-pcscdaemon.o -MD -MP -MF ".deps/pcscd-pcscdaemon.Tpo" -c -o 
pcscd-pcscdaemon.o `test -f 'pcscdaemon.c' || echo './'`pcscdaemon.c; \
then mv -f ".deps/pcscd-pcscdaemon.Tpo" ".deps/pcscd-pcscdaemon.Po"; else rm 
-f ".deps/pcscd-pcscdaemon.Tpo"; exit 1; fi
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
pcscdaemon.c: In function `main':
pcscdaemon.c:262: `option_index' undeclared (first use in this function)
pcscdaemon.c:262: (Each undeclared identifier is reported only once
pcscdaemon.c:262: for each function it appears in.)
pcscdaemon.c:268: `long_options' undeclared (first use in this function)

Solaris has no getopt_long inside libc. This is recognized correctly by 
configure but it is not checked by pcscdaemon.c @ lines 262/268 ...

-- 
Heiko Nardmann (Dipl.-Ing. Technische Informatik)
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to