Ticket #25 (closed defect)

Opened 11 years ago

Last modified 10 years ago

error compiling on RHEL x86_64

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: Version:
Keywords: Cc: edward_silicon, bagder
Blocked By: Blocks:


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'
* [all] Error 1

Change History

comment:1 Changed 10 years ago by edward_silicon

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

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:


Change the CFLAGS line in Makefile from:
CFLAGS = -c -g -O2 /usr/include -Iinclude/ -Wall
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
CFLAGS = -c -g -O2 -I/usr/include -Wall -I../include/ -fPIC

Hope that helps.


comment:2 Changed 10 years ago by edward_silicon

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....

--- 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 @@




# zlib


comment:3 Changed 10 years ago by anonymous

Logged In: NO

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

comment:4 Changed 10 years ago by bagder

fixed in CVS

Note: See TracTickets for help on using tickets.