www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under solaris 8

Re: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under solaris 8

From: Dave McCaldon <davem_at_intersystems.com>
Date: Tue, 9 Feb 2010 18:45:17 -0500

On Feb 9, 2010, at 5:25 PM, SourceForge.net wrote:

> Bugs item #2948737, was opened at 2010-02-09 23:22
> Message generated for change (Settings changed) made by bagder
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852
>
> 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: misc
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Private: No
> Submitted By: Nobody/Anonymous (nobody)
>> Assigned to: Daniel Stenberg (bagder)
> Summary: libssh2 1.2.3 compile failure under solaris 8
>
> Initial Comment:
> libssh2 1.2.3 no longer compiles cleanly on one of my solaris 8 hosts. version 1.2.2 compiles without complaint.
>
> host:/tmp > gtar -zxpf libssh2-1.2.3.tar.gz
> host:/tmp > cd libssh2-1.2.3
> host:/tmp/libssh2-1.2.3 > ./configure --with-libssl-prefix=/usr/local/openssl >& /dev/null && echo $status
> 0
> host:/tmp/libssh2-1.2.3 > gmake >& /dev/null ; echo $status
> 2
> host:/tmp/libssh2-1.2.3 > gmake
> Making all in src
> gmake[1]: Entering directory `/tmp/libssh2-1.2.3/src'
> gmake all-am
> gmake[2]: Entering directory `/tmp/libssh2-1.2.3/src'
> source='agent.c' object='agent.lo' libtool=yes \
> DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c -o agent.lo agent.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c agent.c -Wp,-MD,.deps/agent.TPlo -fPIC -DPIC -o .libs/agent.o
> agent.c: In function `agent_connect_unix':
> agent.c:145: parse error before `1'
> agent.c:157: request for member `sun_family' in something not a structure or union
> agent.c:158: request for member `sun_path' in something not a structure or union
> agent.c:158: request for member `sun_path' in something not a structure or union
> agent.c:159: invalid lvalue in unary `&'
> gmake[2]: *** [agent.lo] Error 1
> gmake[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
> gmake: *** [all-recursive] Error 1
> host:/tmp/libssh2-1.2.3 >
>
> ----------------------------------------------------------------------
>
>> Comment By: Daniel Stenberg (bagder)
> Date: 2010-02-09 23:25
>
> Message:
> Can you please the current git or tomorrow's daily snapshot and see if the
> bug is still there? There have been fixes applied that might've corrected
> the problem.

FYI:

This is definitely the same problem resolved by my patch the other day:

---
[PATCH] Resolve compile issues on Solaris x64 and UltraSPARC
Solaris builds of libssh2-1.2.3 failed on both x64 and UltraSPARC platforms because of two problems:
    1) src/agent.c:145  sun is a reserved word when using the SUNWspro compiler
    2) example/direct_tcpip.c:84  INADDR_NONE is not defined
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-10

the libssh2 team