compiling POP servers

Attempting compile Solaris 10 Sparc of qpopper4.1

and vmpop3d-1.1.6

./configure with and without options runs with no reported errors.

Compile of both packages fails with same error as below

vm-pop3d errors

In file included from /usr/include/sys/wait.h:24,

from vm-pop3d.h:122,

from apop.c:21:

/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:292: error: parse error before '}' token

/usr/include/sys/siginfo.h:292: error: ISO C forbids data definition with no type or storage class

/usr/include/sys/siginfo.h:294: error: parse error before '}' token

/usr/include/sys/siginfo.h:294: error: ISO C forbids data definition with no type or storage class

/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'

/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'

/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'

/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'

/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'

/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'

/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'

/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'

/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'

/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'

/usr/include/sys/siginfo.h:426: error: parse error before '}' token

/usr/include/sys/siginfo.h:426: error: ISO C forbids data definition with no type or storage class

/usr/include/sys/siginfo.h:428: error: parse error before '}' token

/usr/include/sys/siginfo.h:428: error: ISO C forbids data definition with no type or storage class

/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"

/usr/include/sys/siginfo.h:437: error: parse error before '}' token

/usr/include/sys/siginfo.h:437: error: ISO C forbids data definition with no type or storage class In file included from vm-pop3d.h:122,

from apop.c:21:

/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"

apop.c: In function `pop3_apop':

apop.c:127: warning: implicit declaration of function `strdup'

apop.c:127: warning: assignment makes pointer from integer without a cast

apop.c:134: warning: assignment makes pointer from integer without a cast

apop.c:189: warning: assignment makes pointer from integer without a cast

*** Error code 1

make: Fatal error: Command failed for target `apop.o'

qpopper 4-0-5 errors

gcc -c -I.. -I.. -I. \

-I../mmangle -I../common \

-g -O2 -fpcc-struct-return -DHAVE_CONFIG_H -DSOLARIS2 -DGNU_PASS -DNO_GETLINE -DCONTENT_LENGTH=1 -DUNIX pop_xmit.c -o pop_xmit.o In file included from /usr/include/sys/wait.h:24,

from pop_xmit.c:60:

/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:292: error: parse error before '}' token

/usr/include/sys/siginfo.h:294: error: parse error before '}' token

/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'

/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'

/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'

/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'

/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'

/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'

/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'

/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'

/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'

/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'

/usr/include/sys/siginfo.h:426: error: parse error before '}' token

/usr/include/sys/siginfo.h:428: error: parse error before '}' token

/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"

/usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/sys/procset.h:24,

from /usr/include/sys/wait.h:25,

from pop_xmit.c:60:

/usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from pop_xmit.c:60:

/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"

*** Error code 1

make: Fatal error: Command failed for target `pop_xmit.o' Current working directory /home/edsrdm/qpopper4.0.5/popper

*** Error code 1

make: Fatal error: Command failed for target `popper_server'

END of SCREEN DUMP

Ideas ? I am usually on AIX so Sun knowledege and C is rusty to say the least..

I suspect header file inconsistency but not sure where to start.

[5227 byte] By [Denarius] at [2007-11-26 6:04:06]
# 1
This forum is for issues pertaining to the Sun Update Connection product. You are therefore not likely to get an answer here so please try a more appropriate forum.AH.
ForumModerator at 2007-7-6 13:29:39 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

Here is my solution , refer http://mail.nessus.org/pipermail/nessus/2005-March/msg00251.html

By any chance, are you using a Solaris 10 beta build along with GCC 3.3.2 from sunfreeware.com? If so, there likely are some conflicts between the system headers and those adapted by GCC. These conflicts aren't related to POP only, which means that you're likely to encounter them with other software you build from source too. Supposedly, the conflicts can be cleared up by running:

cd

/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools

./mkheaders

halton at 2007-7-6 13:29:39 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3
Wow, that's really worked for me. But, in my case i've tried to build postgresql 8.1.1 on Solaris 11 b27a and has the same error messages.Thanks a lot.Roman.
Rom@n at 2007-7-6 13:29:39 > top of Java-index,Administration Tools,Sun Update Connection-System...