sid24ss / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

distcc doesn't compile from source on HP-UX 11.23 ia64 #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Answering the following questions is a big help:

1. What version of distcc are you using (e.g. "2.7.1")?  You can run "distcc 
--version" to see.  If you got distcc from a distribution package rather than 
building from source, please say which one.
Distcc 3.1
2. What platform are you running on (e.g. "Red Hat 8.0", "HP-UX 11.11")?  What 
compilare are you using ("gcc 3.3")?  Run "uname -a" and "cc --version" to see.
uname -a
HP-UX B.11.23 U ia64
gcc -v
gcc version 4.2.3
3. What were you trying to do (e.g. "install distcc", "build Mozilla")?
install distcc from source
./configure
make
4. What went wrong?  Did you get an error message, did it hang, did it build a 
program that didn't work, did it not distribute compilation to machines that 
ought to get it?
Not compile

5. If you have an example of a compiler invocation that failed, quote it, in 
full e.g.:
bash-4.0# make
        gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/distcc-3.1/etc\"" -DPKGDATADIR="\"/usr/local/distcc-3.1/share/distcc\""  -Isrc -I"./src" -I"./lzo" -I"./popt" -Werror -g -O2 -MD -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wuninitialized -D_REENTRANT -pthread -o src/backoff.o -c src/backoff.c
        gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/distcc-3.1/etc\"" -DPKGDATADIR="\"/usr/local/distcc-3.1/share/distcc\""  -Isrc -I"./src" -I"./lzo" -I"./popt" -Werror -g -O2 -MD -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wuninitialized -D_REENTRANT -pthread -o src/climasq.o -c src/climasq.c
        gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/usr/local/distcc-3.1/etc\"" -DPKGDATADIR="\"/usr/local/distcc-3.1/share/distcc\""  -Isrc -I"./src" -I"./lzo" -I"./popt" -Werror -g -O2 -MD -W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -Wuninitialized -D_REENTRANT -pthread -o src/clinet.o -c src/clinet.c
cc1: warnings being treated as errors
src/clinet.c: In function 'dcc_connect_by_addr':
src/clinet.c:131: warning: passing argument 5 of 'getsockopt' from incompatible 
pointer type
*** Error exit code 1

6. What error logging do you get?  Turn on client and server error logging.  On 
the client, set these environment variables, and try to reproduce the problem: 
=export DISTCC_VERBOSE=1 DISTCC_LOG=/tmp/distcc.log=.  Start the server with 
the --verbose option. If the problem is intermittent, leave logging enabled and 
then pull out the lines from the log file when the problem recurs.

7. If you got an error message on stderr, quote that error exactly. Find the 
lines in the log files pertaining to the compile, and include all of them in 
your report, by looking at the process ID in square brackets. If you can't work 
that out, quote the last few hundred lines leading up to the failure.

Original issue reported on code.google.com by naralov...@gmail.com on 18 Jun 2010 at 7:11

GoogleCodeExporter commented 9 years ago
First, sorry to be such a necromancer, I hope you're still interested. 
The issue seems to lie here: 
http://g4u0420c.houston.hp.com/en/B2355-90682/getsockopt.2.html . POSIX defines 
fifth getsockopt parameter as a socklen_t*. socklen_t is unsigned int, while 
HP-UX seems to use int*. 

You may try to define _XOPEN_SOURCE_EXTENDED and see if it helps.

Original comment by maciej.m...@notimplemented.org on 3 Aug 2011 at 1:59

GoogleCodeExporter commented 9 years ago
Patches welcome.
Or try configuring with '--disable-Werror'.

Original comment by fergus.h...@gmail.com on 15 Aug 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Discussion about resolving same issue in curl:
 http://curl.haxx.se/mail/lib-2009-04/0287.html

and gnulib macro:
 http://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/socklen.m4

Original comment by mand...@gmail.com on 3 Mar 2014 at 5:40