LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2007, 03:07 AM   #1
Nahmus
LQ Newbie
 
Registered: Feb 2007
Distribution: RHES4
Posts: 11

Rep: Reputation: 0
error running rpmbuild -ta on cups source.tar.gz involving openssh? possible?


I downloaded the cups package from cups.org. when i run the following command
rpmbuild -ta cups-1.2.10-source.tar.gz

I runs for a while but then I start getting a bunch of errors like the following for pages and pages.

Quote:
In file included from /usr/include/openssl/evp.h:132,
from /usr/include/openssl/x509.h:67,
from /usr/include/openssl/ssl.h:177,
from http-private.h:79,
from globals.h:35,
from adminutil.c:47:
/usr/include/openssl/dsa.h:101: error: syntax error before "BIGNUM"
/usr/include/openssl/dsa.h:103: error: syntax error before '}' token
/usr/include/openssl/dsa.h:107: error: syntax error before "DSA_SIG"
/usr/include/openssl/dsa.h:108: error: syntax error before "BN_CTX"
/usr/include/openssl/dsa.h:111: error: syntax error before "DSA_SIG"
/usr/include/openssl/dsa.h:112: error: syntax error before "BIGNUM"
/usr/include/openssl/dsa.h:115: error: syntax error before "BIGNUM"
/usr/include/openssl/dsa.h:122: error: syntax error before '}' token
/usr/include/openssl/dsa.h:131: error: syntax error before "BIGNUM"
/usr/include/openssl/dsa.h:133: error: syntax error before '*' token
/usr/include/openssl/dsa.h:135: error: syntax error before '*' token
/usr/include/openssl/dsa.h:136: error: syntax error before '*' token
/usr/include/openssl/dsa.h:138: error: syntax error before '*' token
/usr/include/openssl/dsa.h:139: error: syntax error before '*' token
/usr/include/openssl/dsa.h:146: error: syntax error before '*' token
/usr/include/openssl/dsa.h:146: error: conflicting types for 'meth'
/usr/include/openssl/dh.h:128: error: previous declaration of 'meth' was here
/usr/include/openssl/dsa.h:149: error: syntax error before '}' token
/usr/include/openssl/dsa.h:163: error: syntax error before '*' token
/usr/include/openssl/dsa.h:164: error: syntax error before '*' token
/usr/include/openssl/dsa.h:165: error: syntax error before '*' token
and then the end looks like the following

Quote:
/usr/include/openssl/dsa.h:168: error: syntax error before '*' token
/usr/include/openssl/dsa.h:170: error: syntax error before "DSA_SIG"
/usr/include/openssl/dsa.h:172: error: syntax error before '*' token
/usr/include/openssl/dsa.h:174: error: syntax error before '*' token
/usr/include/openssl/dsa.h:175: error: syntax error before '*' token
/usr/include/openssl/dsa.h:176: error: syntax error before '*' token
/usr/include/openssl/dsa.h:185: error: syntax error before "BN_CTX"
make[1]: *** [adminutil.32.o] Error 1
make: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.77077 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.77077 (%build)
Do i need to update the openssl package? Its currently at openssh-3.9p1-8.RHEL4.17.1

I'm pretty new to RHES so any help would be greatly appreciated.

thanks
 
Old 04-12-2007, 04:31 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Is there a reason you need a newer version than is supplied with your distro?

I tried it myself. I got errors during the link stage because I didn't have libgnutls-devel-32bit installed. ( I have an AMD64 system, running SuSE 10.2). The second make attempt was successful.

/usr/src/packages/BUILD/cups-1.2.10> openssl version
OpenSSL 0.9.8d 28 Sep 2006

ssh -V
OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006

g++ --version
g++ (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)

gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)

Do you have libgnutls and libgnutls-devel installed. Look in your configure log. This is a guess, but maybe if not, ssl-devel is used instead. I grep'ed the entire cups source directory in BUILD for dsa.h and it came up empty.

If your distro is 64 bit, you may need to install the 32bit version as I had to.
 
Old 04-12-2007, 09:29 AM   #3
Nahmus
LQ Newbie
 
Registered: Feb 2007
Distribution: RHES4
Posts: 11

Original Poster
Rep: Reputation: 0
I'm running RHES4

I need to put use a manufacturer supplied PPD. Under the cups version that I have 1.1 it will not read in PPD files in /usr/share/cups/model. Yesterday while researching this problem I was lucky enough to actually talk to one of the writers of CUPS. He told me that if i upgrade to CUPS 1.2 that it will read the new PPD files from /usr/share/cups/models. He said that the version that ships with RHES is just out of date and that they have talked to redhat and have it updated in the newer releases.

I went to cups.org and downloaded [cups-1.2.10-source.tar.gz] and then FTP'd it (using binary transfer) to the RHES system. I then used the command [rpmbuild -ta cups-1.2.10-source.tar.gz] which if I'm reading it right should have created an RPM file that I can then issue the RPM -Uv command to do the upgrade of CUPS.

looking at the output of rpm -qa I have the following gnu packages
gnupg-1.2.6-8
gnutls-1.0.20-3.2.3
gnuplot-4.0.0-4


Do you think that I need to load the package you mentioned? Or maybe upgrade the ssh since the openssh package was mentioned?

Is there an errorlog for rpmbuilds that I can see the complete error and not just whats left in the scroolback buffer?



Thanks for the reply. Any additional information would be much appreciated as I'm running REALLY behind schedule on this install.
 
Old 04-12-2007, 01:27 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I need to clarify my last response. After I ran "rpmbuild -ta ..." the first time, the source directory was created in /usr/src/packages/BUILD. So after installing the 32 bit version package I did, I used "make" inside that directory instead of using rpmbuild. I later tried rpmbuild but it failed because it said it couldn't find libgcrypt.

I think what is going on generally is that the ./configure stage is examining your system and if you are missing certain libraries, another set of libraries are used instead.

Enter the cups project directory in the BUILD directory. If it doesn't exist there, then run "rpmbuild -tp rpmbuild -ta cups-1.2.10-source.tar.gz" to apply the patches and create the cups-1.2.10 directory in BUILD.

(Note: on some systems, your rpm build directory tree is rooted in /etc/src/redhat/.)

Take a look at the output of "./configure --help". Note these lines:
Code:
  --enable-ssl            turn on SSL/TLS support, default=yes
  --enable-cdsassl        use CDSA for SSL/TLS support, default=first
  --enable-gnutls         use GNU TLS for SSL/TLS support, default=second
  --enable-openssl        use OpenSSL for SSL/TLS support, default=third
I think that the configure script prefers, by default to use the cdsassl library over gnutls and openssl. In my case the gnutls library was used. Try installing the cdsassl package and devel version of the package. If the problem is with your version of OpenSSL, this may fix the problem, because the openssl libraries & headers won't be used.

However, I wonder if the problem is due to using a radically different version of gcc & g++? I posted the versions used in my system.

Also, try installing using the source instead of building an rpm package. That would be successful in my case.
 
Old 04-12-2007, 01:31 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Here are my versions of gnutls packages:
rpm -qa | grep gnutls
gnutls-devel-32bit-1.4.4-17
gnutls-32bit-1.4.4-17
gnutls-1.4.4-17
gnutls-devel-1.4.4-17

The *-32bit-* packages are due to using a 64 bit distro. Cups wanted the 32 bit versions. Note also that I needed the devel packages as well for the header files.

My versions are different than yours. You also need the gnutls-devel package.
I don't know if you need to upgrade your version of gnutls. Try installing your version of gnutls-devel, and run:
make distclean
./configure

Then check the config.log and see if it is rejected due to being an incompatible version.
The config script will use your libgnutls-config script to determine which compiler version to use. I think this is the part that is important for the crypto libraries. They may be fine tuned to the compiler version and architecture to improve performance because they deal with very large numbers. It looks to me that the wrong compiler version was used for the ssl libraries causing all those syntax errors.

Last edited by jschiwal; 04-12-2007 at 01:40 PM.
 
Old 04-13-2007, 12:29 AM   #6
Nahmus
LQ Newbie
 
Registered: Feb 2007
Distribution: RHES4
Posts: 11

Original Poster
Rep: Reputation: 0
thanks for the reply. I had to go take care of a down server. I'll be working on this over the weekend. I did a quick serch for the gnutls-devel-32bit-1.4.4-17 & gnutls-32bit-1.4.4-17 and i did not see any RPM packages for redhat. Just other distros. I will do a more indepth search tomorow.

Thanks again for the help. Its much appreciated.
 
Old 04-14-2007, 02:20 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Perhaps the library is packaged differently on RHEL. A good place to look is the http://rpm.pbone.net website.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
amarok sometimes reports gstreamer error involving esdsink.c argh Linux - Software 1 01-25-2006 02:10 PM
rpmbuild rebuild running for long time littauer99 Linux - Newbie 1 11-28-2004 04:37 PM
Can anyone tell me what I need to do when running into a tar: Unexpected EOF error? schmootsypoo Linux - Software 2 09-03-2004 07:50 AM
rpm error involving xine video xviddivxoggmp3 Red Hat 1 07-02-2004 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 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