Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17728 closed defect (invalid)

openssl-0.9.8i build error

Reported by: constcast (Lothar Braun) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: openssl

Description

The openssl package does not compile properly. The error message is:

bash-3.2# port install git-core +svn--->  Fetching openssl
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/work/openssl-0.9.8i" && make all " returned error 2
Command output: making all in crypto...
( echo "#ifndef MK1MF_BUILD"; \
	echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
	echo '  #define CFLAGS "cc -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN"'; \
	echo '  #define PLATFORM "darwin-i386-cc"'; \
	echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
	echo '#endif' ) >buildinf.h
cc -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN   -c -o cryptlib.o cryptlib.c
cc -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN   -c -o mem.o mem.c
cc -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN   -c -o mem_clr.o mem_clr.c
mem_clr.c: In function 'void OPENSSL_cleanse(void*, size_t)':
mem_clr.c:66: error: invalid conversion from 'void*' to 'unsigned char*'
mem_clr.c:73: error: invalid conversion from 'void*' to 'unsigned char*'
make[1]: *** [mem_clr.o] Error 1
make: *** [build_crypto] Error 1

Error: The following dependencies failed to build: openssl p5-error perl5 perl5.8 p5-libwww-perl p5-compress-zlib p5-compress-raw-zlib p5-io-compress-base p5-io-compress-zlib p5-crypt-ssleay p5-html-parser p5-html-tagset p5-uri p5-svn-simple subversion-perlbindings apr apr-util db46 sqlite3 readline ncurses ncursesw cyrus-sasl2 gettext neon serf subversion p5-term-readkey rsync popt
Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 16 years ago by blb@…

Keywords: openssl removed
Owner: changed from macports-tickets@… to mww@…
Port: openssl added

What is the result of which cc? Sounds like it may be picking up a different one, so perhaps openssl needs to be informed of which CC to use.

comment:2 Changed 16 years ago by constcast (Lothar Braun)

Hi,

the compilers found are:

tnomrev:~ braun$ which cc /usr/bin/cc tnomrev:~ braun$ ls -alh /usr/bin/cc lrwxr-xr-x 1 root wheel 3B Nov 25 11:59 /usr/bin/cc -> c++ tnomrev:~ braun$ ls -alh /usr/bin/c++ lrwxr-xr-x 1 root wheel 7B Dec 21 15:22 /usr/bin/c++ -> c++-4.0 tnomrev:~ braun$ ls -alh /usr/bin/gcc lrwxr-xr-x 1 root wheel 7B Dec 21 15:21 /usr/bin/gcc -> gcc-4.0 tnomrev:~ braun$ ls -alh /usr/bin/g++ lrwxr-xr-x 1 root wheel 7B Dec 21 15:21 /usr/bin/g++ -> g++-4.0

Is this ok?

comment:3 Changed 16 years ago by blb@…

/usr/bin/cc pointing to c++ is odd and could be the cause (cc should be pointing to gcc-4.0). Make sure your Xcode is current for your OS version (2.5 for 10.4, 3.1.2 for 10.5).

comment:4 Changed 16 years ago by constcast (Lothar Braun)

Hmm, you are right. I changed the symlink cc -> gcc and openssl compiled just fine. Thank you

comment:5 Changed 16 years ago by blb@…

Resolution: invalid
Status: newclosed

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.