Subject: [libssh2] [ libssh2-Bugs-1633267 ] error compiling on RHEL x86_64

[libssh2] [ libssh2-Bugs-1633267 ] error compiling on RHEL x86_64

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 06 Jun 2007 12:53:49 -0700

Bugs item #1633267, was opened at 2007-01-11 16:01
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1633267&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: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: error compiling on RHEL x86_64

Initial Comment:
error compiling on RHEL x86_64:

make[1]: Entering directory `/root/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: /usr/include: linker input file unused because linking not done
channel.c:1253:10: /usr/include: No such file or directory
channel.c:71: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [channel.o] Error 1
make[1]: Leaving directory `/root/libssh2-0.14/src'
make: *** [all] Error 1

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-06-06 21:53

Message:
Logged In: YES
user_id=1110
Originator: NO

fixed in CVS

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-03-06 03:53

Message:
Logged In: NO

This patch is necessary to compile on 32-bit x86 RHEL4 as well.

----------------------------------------------------------------------

Comment By: edward_silicon (edward_silicon)
Date: 2007-02-16 20:47

Message:
Logged In: YES
user_id=1721308
Originator: NO

I made a patch for the changes that I made to the "configure" script to
fix the problem. Not sure if this the way to submit this....

------- Begin Patch ---------

--- old/libssh2-0.14/configure 2006-06-22 18:48:41.000000000 +0000
+++ new/libssh2-0.14/configure 2007-02-16 19:42:18.000000000 +0000
@@ -3792,8 +3792,8 @@
   fi
 fi

-CFLAGS="$CFLAGS $OPENSSL_INCLINE"
-LDFLAGS="$LDFLAGS $OPENSSL_LIBLINE"
+CFLAGS="$CFLAGS -I$OPENSSL_INCLINE"
+LDFLAGS="$LDFLAGS -L$OPENSSL_LIBLINE"

 #
 # zlib

------- End Patch ---------

Sam

----------------------------------------------------------------------

Comment By: edward_silicon (edward_silicon)
Date: 2007-02-16 20:26

Message:
Logged In: YES
user_id=1721308
Originator: NO

I experienced the same problem on RHEL x86_64. I saw the same errors when
I ran the following:

./configure
make all install

It appears that there is something wrong with the Automake process. I
don't know much about automake, but I was able to fix the problem by adding
"-I" to the "/usr/include" path in the following files:

Makefile
src/Makefile

Change the CFLAGS line in Makefile from:
CFLAGS = -c -g -O2 /usr/include -Iinclude/ -Wall
to
CFLAGS = -c -g -O2 -I/usr/include -Iinclude/ -Wall

And change the CFLAGS line in src/Makefile from:
CFLAGS = -c -g -O2 /usr/include -Wall -I../include/ -fPIC
to
CFLAGS = -c -g -O2 -I/usr/include -Wall -I../include/ -fPIC

Hope that helps.

Sam

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1633267&group_id=125852

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-06-11