1825667 Members
4528 Online
109686 Solutions
New Discussion

compile error

 
Edward Alfert_1
Occasional Advisor

compile error

I have tried to compile qpopper and/or teapop on on hpux 11 system. everything seems to work until it gets to socket.h

I get the following:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"

any ideas?

I'm using gcc 3.0 (since i found out 2.95.3 isn't supported on hpux 11) and binutils 2.11

I have search itrc, usenet, and web but haven't found a solution.
Do what you love and you will never work a day in your life. - Confucious
2 REPLIES 2
Adam Weinrich
New Member

Re: compile error

I believe this problem is caused because of a defect in using the 11.00 precompiled binary gcc on 11.i machines. It seems that there is a hardcode reference to 11.00 types file which contains reference to a definition that was removed in 11.i. If you have 11.11 you cant use the 11.20 files so you will have to build your own gcc by downloading the sourcecode I guess if you use 11.11.

There are a number of posts referencing these same errors but I dont think anyone has acknowledged this issue.

Note the differences between /usr/include/sys/types.h and

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h
Hartmut Lang
Trusted Contributor

Re: compile error