Opened 12 years ago

Last modified 12 years ago

#36867 closed defect

openssl: 'stdlib.h' file not found — at Version 2

Reported by: tsmail05@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign@…
Port: openssl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

ts@petunia ~ 0% sudo port install wine      
--->  Computing dependencies for openssl
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/openssl
--->  Fetching distfiles for openssl
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
Error: org.macports.build for port openssl returned: command execution failed
Please see the log file for port openssl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade openssl failed

###

ts@petunia ~ 0% sudo port install wine-devel       
--->  Computing dependencies for openssl
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/openssl
--->  Attempting to fetch openssl-1.0.1c_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/openssl
--->  Fetching distfiles for openssl
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
Error: org.macports.build for port openssl returned: command execution failed
Please see the log file for port openssl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade openssl failed

###

although port install openssl itself installed just fine:

ts@petunia ~ 1% sudo port upgrade openssl
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
ts@petunia ~ 0% port list installed | grep ssl
     openssl                        @1.0.1c         devel/openssl

Change History (3)

Changed 12 years ago by tsmail05@…

Attachment: main.log added

sudo port install wine

comment:1 Changed 12 years ago by tsmail05@…

on lion osx 10.7.5 xcode 4.5.2

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: openssl added
Summary: install wine @1.4.1 and wine-devel @1.5.16 fail because of opensslopenssl: 'stdlib.h' file not found

Yes, openssl is installed, but without the universal variant. Wine requires that openssl be installed with the universal variant, which is why MacPorts is trying to rebuild openssl now.

The log you attached says:

:info:build In file included from cryptlib.c:117:
:info:build ./cryptlib.h:62:10: fatal error: 'stdlib.h' file not found
:info:build #include <stdlib.h>
:info:build          ^
:info:build 1 error generated.

stdlib.h is supposed to be in /usr/include. Are you sure you have installed the Xcode command line tools? They are required. Open Xcode.app, open its Preferences window, and check the Downloads tab.

P.S: Remember to use WikiFormatting when writing in Trac.

P.P.S: Note that port list doesn't do what you think it does.

Note: See TracTickets for help on using tickets.