[issue265] pinentry: Compiling fails on Solaris 9

spiralvoice aegypten-issues at intevation.de
Fri Oct 15 16:47:36 CEST 2004


New submission from spiralvoice <bernd.kuhls at informatik.uni-oldenburg.de>:

Compiling fails on Solaris 9 SPARC with gcc-3.3.5.
According to
http://groups.google.de/groups?hl=de&lr=&selm=7hrnrp%243e6c%241%40www.univie.ac.at
getopt.h is not needed on Solaris, unistd.h does the job which is already used
in pinentry.c, I removed getopt.h but compiling still fails:

Making all in pinentry
make[2]: Entering directory
`/disk/sunray/sd2h/local/lude/soft/pinentry-0.7.1/src/default/sparc_sun_solaris2.9/pinentry-0.7.1/pinentry'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../assuan -I../secmem -Wall  -g -O2 -Wall
-Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry.o -MD -MP -MF
".deps/pinentry.Tpo" \
  -c -o pinentry.o `test -f 'pinentry.c' || echo './'`pinentry.c; \
then mv -f ".deps/pinentry.Tpo" ".deps/pinentry.Po"; \
else rm -f ".deps/pinentry.Tpo"; exit 1; \
fi
pinentry.c:28:20: getopt.h: No such file or directory
pinentry.c: In function `pinentry_utf8_to_local':
pinentry.c:114: warning: passing arg 2 of `libiconv' from incompatible pointer type
pinentry.c: In function `pinentry_local_to_utf8':
pinentry.c:180: warning: passing arg 2 of `libiconv' from incompatible pointer type
pinentry.c: In function `pinentry_parse_opts':
pinentry.c:289: error: elements of array `opts' have incomplete type
pinentry.c:290: warning: excess elements in struct initializer
pinentry.c:290: warning: (near initialization for `opts[0]')
pinentry.c:290: error: `no_argument' undeclared (first use in this function)
pinentry.c:290: error: (Each undeclared identifier is reported only once
pinentry.c:290: error: for each function it appears in.)
pinentry.c:290: warning: excess elements in struct initializer
pinentry.c:290: warning: (near initialization for `opts[0]')
pinentry.c:290: warning: excess elements in struct initializer
pinentry.c:290: warning: (near initialization for `opts[0]')
pinentry.c:290: warning: excess elements in struct initializer
pinentry.c:290: warning: (near initialization for `opts[0]')
pinentry.c:291: warning: excess elements in struct initializer
pinentry.c:291: warning: (near initialization for `opts[1]')
pinentry.c:291: error: `required_argument' undeclared (first use in this function)
pinentry.c:291: warning: excess elements in struct initializer
pinentry.c:291: warning: (near initialization for `opts[1]')
pinentry.c:291: warning: excess elements in struct initializer
pinentry.c:291: warning: (near initialization for `opts[1]')
pinentry.c:291: warning: excess elements in struct initializer
pinentry.c:291: warning: (near initialization for `opts[1]')
pinentry.c:292: warning: excess elements in struct initializer
pinentry.c:292: warning: (near initialization for `opts[2]')
pinentry.c:292: warning: excess elements in struct initializer
pinentry.c:292: warning: (near initialization for `opts[2]')
pinentry.c:292: warning: excess elements in struct initializer
pinentry.c:292: warning: (near initialization for `opts[2]')
pinentry.c:292: warning: excess elements in struct initializer
pinentry.c:292: warning: (near initialization for `opts[2]')
pinentry.c:293: warning: excess elements in struct initializer
pinentry.c:293: warning: (near initialization for `opts[3]')
pinentry.c:293: warning: excess elements in struct initializer
pinentry.c:293: warning: (near initialization for `opts[3]')
pinentry.c:293: warning: excess elements in struct initializer
pinentry.c:293: warning: (near initialization for `opts[3]')
pinentry.c:293: warning: excess elements in struct initializer
pinentry.c:293: warning: (near initialization for `opts[3]')
pinentry.c:294: warning: excess elements in struct initializer
pinentry.c:294: warning: (near initialization for `opts[4]')
pinentry.c:294: warning: excess elements in struct initializer
pinentry.c:294: warning: (near initialization for `opts[4]')
pinentry.c:294: warning: excess elements in struct initializer
pinentry.c:294: warning: (near initialization for `opts[4]')
pinentry.c:294: warning: excess elements in struct initializer
pinentry.c:294: warning: (near initialization for `opts[4]')
pinentry.c:295: warning: excess elements in struct initializer
pinentry.c:295: warning: (near initialization for `opts[5]')
pinentry.c:295: warning: excess elements in struct initializer
pinentry.c:295: warning: (near initialization for `opts[5]')
pinentry.c:295: warning: excess elements in struct initializer
pinentry.c:295: warning: (near initialization for `opts[5]')
pinentry.c:295: warning: excess elements in struct initializer
pinentry.c:295: warning: (near initialization for `opts[5]')
pinentry.c:296: warning: excess elements in struct initializer
pinentry.c:296: warning: (near initialization for `opts[6]')
pinentry.c:296: warning: excess elements in struct initializer
pinentry.c:296: warning: (near initialization for `opts[6]')
pinentry.c:296: warning: excess elements in struct initializer
pinentry.c:296: warning: (near initialization for `opts[6]')
pinentry.c:296: warning: excess elements in struct initializer
pinentry.c:296: warning: (near initialization for `opts[6]')
pinentry.c:297: warning: excess elements in struct initializer
pinentry.c:297: warning: (near initialization for `opts[7]')
pinentry.c:297: warning: excess elements in struct initializer
pinentry.c:297: warning: (near initialization for `opts[7]')
pinentry.c:297: warning: excess elements in struct initializer
pinentry.c:297: warning: (near initialization for `opts[7]')
pinentry.c:297: warning: excess elements in struct initializer
pinentry.c:297: warning: (near initialization for `opts[7]')
pinentry.c:298: warning: excess elements in struct initializer
pinentry.c:298: warning: (near initialization for `opts[8]')
pinentry.c:298: warning: excess elements in struct initializer
pinentry.c:298: warning: (near initialization for `opts[8]')
pinentry.c:298: warning: excess elements in struct initializer
pinentry.c:298: warning: (near initialization for `opts[8]')
pinentry.c:298: warning: excess elements in struct initializer
pinentry.c:298: warning: (near initialization for `opts[8]')
pinentry.c:299: warning: excess elements in struct initializer
pinentry.c:299: warning: (near initialization for `opts[9]')
pinentry.c:299: warning: excess elements in struct initializer
pinentry.c:299: warning: (near initialization for `opts[9]')
pinentry.c:299: warning: excess elements in struct initializer
pinentry.c:299: warning: (near initialization for `opts[9]')
pinentry.c:299: warning: excess elements in struct initializer
pinentry.c:299: warning: (near initialization for `opts[9]')
pinentry.c:300: warning: excess elements in struct initializer
pinentry.c:300: warning: (near initialization for `opts[10]')
pinentry.c:300: warning: excess elements in struct initializer
pinentry.c:300: warning: (near initialization for `opts[10]')
pinentry.c:300: warning: excess elements in struct initializer
pinentry.c:300: warning: (near initialization for `opts[10]')
pinentry.c:300: warning: excess elements in struct initializer
pinentry.c:300: warning: (near initialization for `opts[10]')
pinentry.c:301: warning: excess elements in struct initializer
pinentry.c:301: warning: (near initialization for `opts[11]')
pinentry.c:301: warning: excess elements in struct initializer
pinentry.c:301: warning: (near initialization for `opts[11]')
pinentry.c:301: warning: excess elements in struct initializer
pinentry.c:301: warning: (near initialization for `opts[11]')
pinentry.c:301: warning: excess elements in struct initializer
pinentry.c:301: warning: (near initialization for `opts[11]')
pinentry.c:289: error: array size missing in `opts'
pinentry.c:289: error: storage size of `opts' isn't known
pinentry.c:303: warning: implicit declaration of function `getopt_long'
pinentry.c:289: warning: unused variable `opts'
make[2]: *** [pinentry.o] Error 1

----------
messages: 1652
nosy: spiralvoice
priority: bug
status: unread
title: pinentry: Compiling fails on Solaris 9
______________________________________________________
Aegypten issue tracker <aegypten-issues at intevation.de>
<https://intevation.de/roundup/aegypten/issue265>
______________________________________________________



More information about the Gpa-dev mailing list