LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2002, 03:19 AM   #1
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
RPM compilation error


Dear firends

I am trying to compile an openssl rpm from caldera on redhat and i am getting the following error
****************************************************************
error: parser error in expression
error: /usr/src/redhat/SPECS/openssl.spec:73: perseExpressionBoolean returns -1
****************************************************************
the spec file is as follows
 
Old 08-16-2002, 03:31 AM   #2
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Original Poster
Rep: Reputation: 30
%define openssldir /etc/ssl
# provide well-know certificates? (1=yes, 0=no)
%define CERTS 1
# package them in a dedicated sub-package? (1=yes, 0=no)
%define CERTS-pkg 0

Name : openssl
Version : 0.9.6
Release : 17
Group : System/Library

Summary : Secure Sockets Layer communications libs & utils.
SSL (Secure Sockets Layer).
Copyright : BSD-style
Packager : Stephan Seyboth <sps@caldera.de>
URL : http://www.openssl.org/
#Requires : /usr/lib/OpenLinux/install/finish.sh
BuildRoot : /tmp/%{Name}-%{Version}

Source0: openssl-%{Version}-pruned-1.3.tar.gz
Source1: openssl-prune-1.3
Source2: openssl-ca.cnf
Source3: openssl-default_certs.sh
Source4: http://www.modssl.org/.../mod_ssl-2...._ca-bundle.crt

Patch0: openssl-0.9.6-make.patch
Patch1: openssl-0.9.6-ca.patch
Patch2: openssl-0.9.6-tmp.patch
Patch3: openssl-0.9.6-getenv.patch
Patch4: openssl-0.9.6-ia64.patch
Patch5: openssl096a-prng.patch
Patch6: openssl096a-prng-2.patch
%Package devel
Group : Programming/Library
Requires : %{Name} = %{Version}

Summary : Static SSL libraries, header files, and utilities.

%Package devel-static
Group : Programming/Library
Requires : %{Name}-devel = %{Version}

Summary : OpenSSL static development libraries.
# %%%%%% LINE 73 %%%%%% #
%if %{CERTS-pkg}
%Package certs
Group : System/Data
Requires : %{Name}

Summary : Well-known certificates.
%endif

%Description
This package installs the OpenSSL certificate management tool and the shared libraries that provide various encryption and decryption algorithms and protocols, including DES, RC4, RSA and SSL.


%Description devel
The static libraries and include files needed to compile apps
with support for various cryptographic algorithms and protocols,
including DES, RC4, RSA and SSL.

%Description devel-static
This package contains the OpenSSL static development libraries.

%Description -l de devel-static
Dieses Paket enthält die statischen Entwicklerbibliotheken für OpenSSL.

%Description -l es devel-static
Este paquete contiene las librerías estáticas de desarrollo de OpenSSL.

%Description -l fr devel-static
Ce paquetage contient les bibliothčques statiques de développement de
OpenSSL.

%Description -l it devel-static
Questo pacchetto contiene le librerie per lo sviluppo statico con OpenSSL.

%Description -l pt devel-static
Este pacote contém as bibliotecas estáticas de desenvolvimento do OpenSSL.

%Description -l pt_BR devel-static
Este pacote contem as bibliotecas estáticas de desenvolvimento do OpenSSL.

%if %{CERTS-pkg}
%Description certs
This package contains certificates from well-known CAs for use with
OpenSSL.

%endif


%Prep
%setup -q
%patch0 -p1 -b .make
%patch1 -p1 -b .ca
%patch2 -p1 -b .tmp
%patch3 -p1 -b .getenv
%patch4 -p1 -b .ia64
pushd crypto/rand
%patch5 -p0 -b .prng
popd
pushd doc/crypto
%patch6 -p0 -b .prng2
popd


%Build
# FIXME: rpm_opt_flags
./config \
--prefix=/usr \
--openssldir=%{openssldir} \
no-idea \
no-rc5 \
no-mdc2 \
no-md2 \
shared \
-fPIC

# set the correct perl path
perl util/perlpath.pl /usr/bin

# needed if algorithms have been pruned
make depend
make

%{NoBuildCheck} || LD_LIBRARY_PATH=`pwd` make test


%Install
%{mkDESTDIR}

make INSTALL_PREFIX="$DESTDIR" MANDIR="/usr/man" LIBS="lib*" install
chmod 0700 $DESTDIR/%{openssldir}/private

# install structure for CA stuff
mkdir -p $DESTDIR%{openssldir}/ca/{certs,crl,newcerts,private}
install -m 0644 %{SOURCE2} $DESTDIR%{openssldir}/ca/default-ca.cnf
install -m 0755 %{SOURCE3} $DESTDIR%{openssldir}/misc/default_certs.sh
for i in $DESTDIR%{openssldir}/misc/{CA.*,default_certs.sh} ; do
%{fixUP} -T $i -e 's:\@OPENSSLDIR\@:%{openssldir}:';
done

%if %{CERTS}
#mkdir $DESTDIR%{openssldir}/trusted
install -p -o 0 -g 0 -m 0444 %{SOURCE4} $DESTDIR%{openssldir}/ca-bundle.crt
%endif

# remove man-page conflicts and compress them
MD="$DESTDIR/usr/man"
mv $MD/man1/passwd.1 $MD/man1/passwd-ssl.1
mv $MD/man3/rand.3 $MD/man3/rand-ssl.3
%{fixManPages}

# install remaining docs
DocD="$DESTDIR%{_defaultdocdir}/%{Name}-%{Version}"; mkdir -p $DocD/doc
cp -a CHANGES CHANGES.SSLeay FAQ LICENSE NEWS README $DocD
cp -a doc/{*.txt,openssl_button.gif,openssl_button.html} $DocD/doc

# generate file lists
%{mkLists} -c %{Name}
%{mkLists} -d %{Name} <<'EOF'
%if %{CERTS-pkg}
%{openssldir}/trusted certs
%endif
* default
EOF
%{mkLists} -a -f %{Name} <<'EOF'
/etc * prefix(%%config)
%if %{CERTS-pkg}
%{openssldir}/trusted/.*\.(pem|crl)$ certs
%{openssldir}/ca-bundle.crt certs
%endif
%{openssldir}/openssl.cnf base #refix(%%config)
* default
EOF

%Clean
%{rmDESTDIR}


%Post
: %OL-lizard-finish
/sbin/ldconfig

%{openssldir}/misc/default_certs.sh
/usr/bin/c_rehash %{openssldir}/certs


%if %{CERTS-pkg}
%Post certs
%endif
%if %{CERTS}
[ ! -d %{openssldir}/trusted ] || /usr/bin/c_rehash %{openssldir}/trusted
%endif


%PostUn
/sbin/ldconfig

[ ! -x /usr/bin/c_rehash ] || /usr/bin/c_rehash %{openssldir}/certs


%if %{CERTS-pkg}
%PostUn certs
%endif
%if %{CERTS}
[ ! -x /usr/bin/c_rehash -o ! -d %{openssldir}/trusted ] ||
/usr/bin/c_rehash %{openssldir}/trusted
%endif


%Files -f files-%{Name}-base
%defattr(-,root,root)


%Files devel -f files-%{Name}-devel
%defattr(-,root,root)


%Files devel-static -f files-%{Name}-devel-static
%defattr(-,root,root)


%if %{CERTS-pkg}
%Files certs -f files-%{Name}-certs
%defattr(-,root,root)
%endif


%ChangeLog
* Mon Jan 01 1998 ...
Template Version: 1.31

$Id: openssl.spec,v 1.17 2001/11/07 15:19:32 ray Exp $

_________________________________________
Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
ALSA RPM rebuild fails, other compilation problems abro Linux - Software 3 12-09-2003 07:34 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
Kernel compilation (make rpm) Thetargos Red Hat 0 08-31-2003 03:35 PM
cyrus-imapd rpm compilation mayankjohri Programming 3 08-13-2002 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration