From: SourceForge.net <no...@so...> - 2007-02-25 21:20:04
|
Bugs item #1666851, was opened at 2007-02-23 03:30 Message generated for change (Comment added) made by sds You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1666851&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: build problems Status: Open Resolution: None Priority: 5 Private: No Submitted By: Laurent Vaucher (laurentvaucher) Assigned to: Bruno Haible (haible) Summary: [AIX 5.3] Problem finding connect and libsigsegv Initial Comment: When building clisp on AIX 5.3, ./configure reports that it can't find connect() on the system. The function is defined in /usr/include/sys/socket.h. The complete prototype is: int connect(int, const struct sockaddr *, socklen_t); As Sam asked by e-mail, the definition of socklen_t also lies in the same file: /usr/include/sys/socket.h:typedef __ulong32_t socklen_t; --- Another problem encountered by the configure script, is that it could not find libsigsegv. At least, that's what it tells me at the end (see below). I have just successfully installed libsigsegv-2.4 in /usr/local. The config.log is attached (zipped because it was > 250k). Configure findings: FFI: yes (user requested: default) readline: (user requested: ) libsigsegv: ./configure: libsigsegv was not detected, thus some features, such as generational garbage collection and stack overflow detection in interpreted Lisp code cannot be provided. Please do this: mkdir tools; cd tools; prefix=`pwd`/powerpc-ibm-aix5.3.0.0 wget http://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-2.4.tar.gz tar xfz libsigsegv-2.4.tar.gz cd libsigsegv-2.4 ./configure --prefix=${prefix} && make && make check && make install cd ../.. ./configure --with-libsigsegv-prefix=${prefix} If you insist on building without libsigsegv, please pass --ignore-absence-of-libsigsegv to this script: ./configure --ignore-absence-of-libsigsegv ---------------------------------------------------------------------- >Comment By: Sam Steingold (sds) Date: 2007-02-25 16:20 Message: Logged In: YES user_id=5735 Originator: NO try this: $ /bin/sh $ . config.cache this should generate some errors. all configure scripts must use the same shell flavor. look at config.status rerun line to see which shell is being used there. check your $CONFIG_SHELL may be the easiest way out is CONFIG_SHELL=/bin/bash; export CONFIG_SHELL SHELL=/bin/bash; export SHELL ${SHELL} ./configure --build build-dir ---------------------------------------------------------------------- Comment By: Laurent Vaucher (laurentvaucher) Date: 2007-02-25 15:21 Message: Logged In: YES user_id=1055817 Originator: YES Regarding DOS EOL in the file, I guess it's only the ftp transfer between AIX and my Windows PC that must have chosen ASCII-mode. Bash is definitely installed on the system. I use it as my main shell. But it is not installed as /bin/sh. Is there a way I can cell whether configure uses it? (Rest of answers tomorrow, when I'm back at work with an AIX machine available). ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-02-23 13:55 Message: Logged In: YES user_id=5735 Originator: NO why does you config.log have DOS line endings? note that it says "cl_cv_lib_sigsegv=yes", so sigsegv is successfully detected. apparently config.cache cannot be sourced in the top-level configure (I think there was an error right before the "Configure findings:" message). this may be caused by different shell flavors. do you have bash installed? is it used by configure? ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-02-23 11:35 Message: Logged In: YES user_id=5735 Originator: NO the connect problems: /usr/include/sys/socket.h:374: error: syntax error before 'socklen_t' /usr/include/sys/socket.h:378: error: syntax error before 'msg_controllen' /usr/include/sys/socket.h:380: error: syntax error before '}' token /usr/include/sys/socket.h:404: error: syntax error before 'socklen_t' /usr/include/sys/socket.h:408: error: syntax error before '}' token ... this means that before including sys/socket.h, something else must be included. we do this: #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> how does your system documentation prescribe including of <sys/socket.h>? ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-02-23 11:26 Message: Logged In: YES user_id=5735 Originator: NO could you please also attach config.cache? thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1666851&group_id=1355 |