[Dev] gcc "fix" causing failure of m2crypto build on linux

Mark Jaffe markie at osafoundation.org
Tue Jun 8 17:52:02 PDT 2004


I am encountering this frustrating problem on linux only; OSX and 
Windows work OK. When building the m2crypto extension, we need to 
specify our own openssl headers. But gcc seems to want to reorder the 
includes, and issues a warning, then ignores our include path:

gcc -pthread -fno-strict-aliasing -g -Wall -Wstrict-prototypes -fPIC -g 
-Dnostdinc=1 -I/home/markie/work/internal/m2crypto/SWIG -I/usr/include 
-I/home/markie/work/external/debug/include 
-I/home/markie/work/external/debug/include/python2.3 -c 
SWIG/_m2crypto.c -o build_debug/temp.linux-i686-2.3/SWIG/_m2crypto.o 
-DTHREADING
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system 
directory
In file included from /usr/include/openssl/err.h:71,
                  from SWIG/_m2crypto.c:732:
/usr/include/openssl/lhash.h:90: warning: function declaration isn't a 
prototype

I wonder if anyone can think of a fix for this?

mark
-- 
Mark Jaffe               | (415) 946-3028 (work)
Release Engineer         | (408) 807-2093 (cell)
OSAF                     | (415) 946-3001 (FAX)
markie at osafoundation.org | http://www.osafoundation.org/
PGP Fingerprint: 3435 EB88 6424 F5DF F2CA EF16 2DBF DFEF 143C 1ADE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1341 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/dev/attachments/20040608/c59113b5/attachment.bin


More information about the Dev mailing list