We help IT Professionals succeed at work.

can't compile Net::SSLeay

tom419
tom419 asked
on
Trying to install webmin with SSL on Redhat 7.1.  I've installed webmin 100 times and I have read the docs, but I've never had this problem.  I've also tried installing the rpm version, with no luck.  I have the kernel sources and openssl-devel (along with openssl) installed.  The file limits.h is in fact in that directory and has the correct permissions.  What am I doing wrong?

Here's my output.

Thanks for your help.

Tom

Executing /usr/bin/perl Makefile.PL  && make ..
                                                                                                   
Checking for OpenSSL-0.9.6b or newer...
openssl-0.9.6a and some earlier versions have weaknesses (read CHANGES file in the openssl-0.9.6b di
stribution, www.openssl.org), upgrading to openssl-0.9.6b is recommended.
You have OpenSSL-0.9.6 installed in /usr
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSLeay::Handle
Writing Makefile for Net::SSLeay
mkdir blib
mkdir blib/lib
mkdir blib/lib/Net
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Net
mkdir blib/arch/auto/Net/SSLeay
mkdir blib/lib/auto
mkdir blib/lib/auto/Net
mkdir blib/lib/auto/Net/SSLeay
mkdir blib/man3
cp ptrtstrun.pl blib/lib/Net/ptrtstrun.pl
cp SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
 directory blib/lib/auto/Net/SSLeay:
  do_https2.al, do_https.al truncate to do_https
  ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
  ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
make[1]: Entering directory `/tmp/.webmin/Net_SSLeay.pm-1.08/Net-SSLeay-Handle-0.50'
mkdir ../blib/lib/Net/SSLeay
mkdir ../blib/arch/auto/Net/SSLeay/Handle
mkdir ../blib/lib/auto/Net/SSLeay/Handle
cp Handle.pm ../blib/lib/Net/SSLeay/Handle.pm
Manifying ../blib/man3/Net::SSLeay::Handle.3pm
make[1]: Leaving directory `/tmp/.webmin/Net_SSLeay.pm-1.08/Net-SSLeay-Handle-0.50'
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 /usr/lib/perl5/5.6.0/ExtUtils
/xsubpp  -typemap /usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && m
v SSLeay.xsc SSLeay.c
gcc -c -I/usr/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686     -DVERSION=\"1.08\" -DXS_VE
RSION=\"1.08\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE  SSLeay.c
: warning: "cpu" re-asserted
: warning: "machine" re-asserted
In file included from /usr/include/sys/param.h:22,
                 from /usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:486,
                 from SSLeay.xs:47:
/usr/include/limits.h:124:26: limits.h: No such file or directory
In file included from /usr/include/bits/socket.h:31,
                 from /usr/include/netinet/in.h:212,
                 from /usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:654,
                 from SSLeay.xs:47:
/usr/include/limits.h:124:26: limits.h: No such file or directory
In file included from /usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1084,
                 from SSLeay.xs:47:
/usr/include/limits.h:124:26: limits.h: No such file or directory
In file included from SSLeay.xs:47:
/usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1087:19: float.h: No such file or directory
/usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1094:19: float.h: No such file or directory
In file included from /usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1112,
                 from SSLeay.xs:47:
/usr/include/limits.h:124:26: limits.h: No such file or directory
In file included from SSLeay.xs:47:
/usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1115:21: float.h: No such file or directory
In file included from /usr/lib/perl5/5.6.0/i386-linux/CORE/perl.h:1206,
                 from SSLeay.xs:47:
/usr/include/limits.h:124:26: limits.h: No such file or directory
make: *** [SSLeay.o] Error 1

Comment
Watch Question

CERTIFIED EXPERT

Commented:
long ago when I installed OpenSSL ..
Did you run ./configure ?

Try to add  _GCC_LIMITS_H_  to the CFLAGS in the Makefile.

Author

Commented:
I installed openssl through an rpm, which is what I always do.  I'll try the CFLAGS idea next.

Thanks,

Tom

Author

Commented:
No Luck on the _GCC_LIMITS_H_  flag.

Thanks,

Tom
Top Expert 2005

Commented:
The way I read /usr/include/limits.h, it looks to me like you don't want _GCC_LIMITS_H_ defined unless that define is pointing to a copy of limits.h. The file it is complaining about not finding is the Gnu C version of limits.h, which would normally be found in /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/. One way that you could run into trouble would be if RedHat's 2.96 Gcc isn't installed. The system copy of Perl was built with 2.96 and a 'perl Makefile.PL' is typically going to assume that the same compiler, include, and libs used to build is available for building perl modules.
Asta CuTechnical consultant & graphic design
CERTIFIED EXPERT
Top Expert 2004

Commented:
Hopefully you've already been helped with this question, but thought you'd appreciate knowing this.

WindowsUpdate has new updates for .NET users; Details follow - Microsoft .NET Framework
The .NET Framework is a new feature of Windows. Applications built using the .NET Framework are more reliable and secure. You need to install the .NET Framework only if you have software that requires it.

For more information about the .NET Framework, see http://www.microsoft.com/net. (This site is in English.)

System Requirements
The .NET Framework can be installed on the following operating systems:
Windows 98
Windows 98 Second Edition (SE)
Windows Millennium Edition (Windows Me)
Windows NT 4.0® (Workstation or Server) with Service Pack 6.0a
Windows 2000 with the latest service pack installed (Professional, Server, Datacenter Server, or Advanced Server)
Windows XP (Home Edition and Professional)
You must be running Internet Explorer version 5.01 or later for all installations of the .NET Framework.

To install the .NET Framework, your computer must meet or exceed the following software and hardware requirements:

Software requirements for server operating systems:
MDAC 2.6
Hardware requirements:
For computers running only a .NET Framework application, Pentium 90 mHz CPU with 32 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 mHz CPU with 128 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
Recomended software:
MDAC 2.7 is recommended.
Recommended hardware: For computers running only a .NET Framework application, Pentium 90 MHz CPU with 96 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 MHz CPU with 256 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.

How to use -> Restart your computer to complete the installation. No other action is required to run .NET Framework applications. If you are developing applications using the .NET Framework, you can use the command-line compilers or you can use a development environment, such as Visual Studio .NET, that supports using the .NET Framework.

How to uninstall
To uninstall the .NET Framework: Click Start, point to Settings, and then click Control Panel (In Windows XP, click Start and then click Control Panel.).
Click Add/Remove Programs.
Click Microsoft .NET Framework (English) v1.0.3705 and then click Change/Remove.
More here  http://www.microsoft.com/net/

The .NET topic is being considered for addition to our All Topics link soon, so this may interest you as well:
http://www.experts-exchange.com/newtopics/Q.20276589.html

EXPERTS POINTS are waiting to be claimed here:  http://www.experts-exchange.com/commspt/Q.20277028.html

":0)
Asta


Top Expert 2005
Commented:
astaec,

And that relates to linux in what way?
Hi, jlevie, astaec sent me the listing of all questions she updated with this information to track for closures, and more than 100 of them resulted in Askers returning and finalizing them.  She used Power Search for keyword .net to pull the listing, and after posting to roughly 300 questions in many topic areas stopped the process.  The good news is, many have responded, since the time these questions were posted, we had site-related problems, not the least of which were missing Email notifs on comments added.  Her goal was to bring open, old items to the foreground and add value in the process, not for points to her.  The one question which resulted in points granted to her, she requested reversed.  We are grateful to the experts who have stepped in to help bring old and forgotten questions back to the foreground for closure.

Sorry for any confusion this may have caused to anyone.

Moondancer - EE Moderator
Top Expert 2005

Commented:
Right, I realized what the goal was. It just seemed a bit silly to advertise a Microsoft category in a Unix/Linx question.

And as you point out, some good did come out of it in that some stale questions got resolved.

Speaking of email... From some behaviour that I've observed I wonder if the mail system is delivering messages in a timely manner and for all notifications. In the past I had a problem with the mail server 'bursting' notifications and I'm seeing something of the same behaviour now. What happens is that there'll be nothing for a while and then I'll get a buch of notices all at once. Since I can tell that the questions were updated over a period of time it would seem that the notifications should have been distributed over that same period of time, but they frequently aren't. Perhaps someone ought to take a look at how the outgoing mail server is operating.
tom419:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
Top Expert 2006

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept jlevies's answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

pjedmond
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.