 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
victorprosa
Joined: 14 Jan 2009 Posts: 38
|
Posted: Thu Jan 28, 2010 11:23 am Post subject: [noobish question] Problems when compiling OpenSSL |
|
|
I feel a little bit ashamed making this question, because no one seems to have this problem, but i am stuck with this for 2 days...
| Quote: | user$> gunzip < openssl-0.9.7j.tar.gz | tar xv
*Then cd over to openssl-0.9.7j
To Patch:
----------
user$> patch -p1 < ../openssl-0.9.7j.patch
To configure and compile, run:
-------------------------------
user$> ./Configure psp --prefix=$(psp-config --psp-prefix) threads zlib no-shared no-asm
Then:
user$> make
To install, as root run:
-------------------------
root$> make install
|
Unzip-> Done
cd -> Done
patch -> Done
Configure -> Done
Make -> Failed
| Code: | cversion.c: In function ‘SSLeay_version’:
cversion.c:105: erro: ‘usr’ undeclared (first use in this function)
cversion.c:105: erro: (Each undeclared identifier is reported only once
cversion.c:105: erro: for each function it appears in.)
cversion.c:105: erro: ‘local’ undeclared (first use in this function)
cversion.c:105: erro: ‘pspdev’ undeclared (first use in this function)
cversion.c:105: erro: ‘psp’ undeclared (first use in this function)
cversion.c:105: erro: ‘ssl’ undeclared (first use in this function)
cversion.c:108: erro: expected ‘;’ before string constant
make[1]: ** [cversion.o] Erro 1
|
Do you have any sugestion of what should I do?
PS: Please, don't tell me to use jojojoris' port, because my project requires raf's port... |
|
| Back to top |
|
 |
Criptych
Joined: 12 Sep 2009 Posts: 79
|
Posted: Thu Jan 28, 2010 2:13 pm Post subject: |
|
|
From the error messages, it sounds like maybe a string isn't properly quoted. What's on line 105 of cversion.c? _________________ PSP-2000 // CFW: 5.50 GEN-D2 ...and not upgrading until OFW supports homebrew!
(But I did downgrade to 1.50 with TimeMachine...)
"I want you to tell me how the machine makes you feel." |
|
| Back to top |
|
 |
victorprosa
Joined: 14 Jan 2009 Posts: 38
|
Posted: Fri Jan 29, 2010 3:39 am Post subject: |
|
|
I thought that would be better to post the entire file:
| Code: | /* crypto/cversion.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
#include <stdio.h>
#include <string.h>
#include "cryptlib.h"
#include <openssl/crypto.h>
#ifndef NO_WINDOWS_BRAINDEATH
#include "buildinf.h"
#endif
const char *SSLeay_version(int t)
{
if (t == SSLEAY_VERSION)
return OPENSSL_VERSION_TEXT;
if (t == SSLEAY_BUILT_ON)
{
#ifdef DATE
static char buf[sizeof(DATE)+11];
BIO_snprintf(buf,sizeof buf,"built on: %s",DATE);
return(buf);
#else
return("built on: date not available");
#endif
}
if (t == SSLEAY_CFLAGS)
{
#ifdef CFLAGS
static char buf[sizeof(CFLAGS)+11];
BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS);
return(buf);
#else
return("compiler: information not available");
#endif
}
if (t == SSLEAY_PLATFORM)
{
#ifdef PLATFORM
static char buf[sizeof(PLATFORM)+11];
BIO_snprintf(buf,sizeof buf,"platform: %s", PLATFORM);
return(buf);
#else
return("platform: information not available");
#endif
}
if (t == SSLEAY_DIR)
{
#ifdef OPENSSLDIR
return "OPENSSLDIR: \"" OPENSSLDIR "\"";
#else
return "OPENSSLDIR: N/A";
#endif
}
return("not available");
}
unsigned long SSLeay(void)
{
return(SSLEAY_VERSION_NUMBER);
} |
And, as you can see, line 105:
| Code: | | if (t == SSLEAY_DIR) |
By the way, thank you for taking interest =] |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Jan 29, 2010 4:17 am Post subject: |
|
|
I don't know what went wrong, but you could just replace the whole function with | Code: | const char *SSLeay_version(int t)
{
return("not available");
}
|
and it should still work. |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Fri Jan 29, 2010 7:01 am Post subject: |
|
|
I made my own port a while ago:
http://jojosoft.1free.ws/viewtopic.php?f=6&t=15
I created a simple build script _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
victorprosa
Joined: 14 Jan 2009 Posts: 38
|
Posted: Sat Jan 30, 2010 9:35 pm Post subject: |
|
|
jimparis:
Thanks for your help, interesting way to solve the problem, xD
but, as far as i explored, this change won't give major problems...
Ahn, about the problem...
Some time ago, I started studying old PSP codes, and seems that later versions of the SDK doesn't seem to be as connected as it used to be in 2006...
A great quantity of the codes are still working, but i need to include a lot of libs that used to be all interconnected, you just had to call 1 to get all the functions...
Maybe this is the problem of the OpenSSL port also...
-------------
jojojoris:
I already know your port and i admire the effort of yours =]
but as soon as i am working with old codes, they require the old port from raf's... |
|
| Back to top |
|
 |
coyotebean
Joined: 05 Dec 2009 Posts: 26
|
Posted: Sun Jan 31, 2010 5:11 am Post subject: |
|
|
My wild guess would be some problem with OPENSSLDIR
"usr" "local" "pspdev" "psp" "ssl"
looks like the path to your openssl. It is probably not being "quoted" properly. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|