Ticket #12 (closed defect)
Opened 6 years ago
Last modified 5 years ago
Makefile gcc line shows /usr/include -I/usr/include
| Reported by: | jimnewell | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: | jimnewell, bschell, bagder | |
| Blocked By: | Blocks: |
Description
In the makefile, the -I is missing after -O2 and
(actualy) the /usr/include is duplicated:
gcc -o channel.o channel.c -c -g -O2 /usr/include
-I/usr/include -Wall -I../incl ude/ -fPIC
Deleting the duplicated /usr/include fixes the problem.
System is: Redhat Entererprise 4
Linux localhost.localdomain 2.6.9-34.EL #1 Fri Feb 24
16:44:51 EST 2006 i686 i686 i386 GNU/Linux
Actual output from make process:
[root@localhost libssh2-0.14]# make
make[1]: Entering directory
`/home/jnewell/dev/LibSSL/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include
-I/usr/include -Wall -I../incl ude/ -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.
Change History
comment:1 Changed 6 years ago by anonymous
comment:2 Changed 6 years ago by anonymous
Logged In: NO
The same problem occurs on on FreeBSD 6.1-STABLE:
===> Building for libssh2-0.14
cc -o channel.o channel.c -c -O2 -fno-strict-aliasing -pipe
/usr/local/include -I/usr/include -Wall -I../include/ -fPIC
cc: /usr/local/include: linker input file unused because
linking not done
channel.c:1253:10: /usr/local/include: No such file or directory
* Error code 1
Stop in /usr/ports/security/libssh2/work/libssh2-0.14/src.
* Error code 1
comment:3 Changed 5 years ago by bschell
patch is not quite right.
The OPENSSL_INCLINE setting should be:
OPENSSL_INCLINE=-I$PKG_CONFIG --variable=includedir openssl
rather than:
OPENSSL_INCLINE="-L$PKG_CONFIG --variable=includedir openssl
note the '-I' instead of the the '-L'
comment:4 Changed 5 years ago by bagder
this problem is fixed in CVS

Logged In: NO
The basic cause of the problem is an error in setting
OPENSSL_INCLINE from the pkg-config output.
This patch fixes it:
--- configure
+++ configure 2006-07-30 13:03:39.000000000 +0200
@@ -3739,7 +3739,7 @@
openssl`
+ OPENSSL_INCLINE="-L`$PKG_CONFIG --variable=includedir
openssl`"
pkg-config" >&5