forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Libraries autogen error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
SpaceForce



Joined: 15 Dec 2008
Posts: 12

PostPosted: Sat Sep 26, 2009 2:23 am    Post subject: Libraries autogen error Reply with quote

I had just updated the toolchain to the latest from SVN, then compiled it

Everything works well in my previous projects, I successfully recompiled them.

But when I try to recompile some libraries using autogen.sh, such as libTremor, SDL, libogg etc, the autogen.sh evil produced all the same error:
Code:

configure: error: in `/opt/SVN/libTremor':
configure: error: C compiler cannot create executables


And their error logs are the same:
Code:

configure:3115: $? = 0
configure:3104: psp-gcc -v >&5
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/opt/PSPDEV --target=psp --enable-languages=c,c++ --with-newlib --with-gmp --with-mpfr --enable-cxx-flags=-G0
Thread model: single
gcc version 4.3.2 (GCC)
configure:3115: $? = 0
configure:3104: psp-gcc -V >&5
psp-gcc: '-V' option must have argument
configure:3115: $? = 1
configure:3104: psp-gcc -qversion >&5
psp-gcc: unrecognized option '-qversion'
psp-gcc: no input files
configure:3115: $? = 1
configure:3137: checking for C compiler default output file name
configure:3159: psp-gcc   -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c  >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
collect2: ld returned 1 exit status
configure:3163: $? = 1
configure:3200: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
|  return ferror (f) || fclose (f) != 0;
|
|   ;
|   return 0;
| }
configure:3206: error: in `/opt/SVN/libTremor':
configure:3210: error: C compiler cannot create executables
See `config.log' for more details.



Foucus on this
Code:

configure:3159: psp-gcc   -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c  >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'

This is quite strange, because most of my successfully recompiled projects are using standard IO, there are no problems when linking, I have checked libc.a, fopen and fclose exist.

I have seen similar problems on forums, but no one fits mine, can anyone help me? thx
_________________
NJU SE
Back to top
View user's profile Send private message
SpaceForce



Joined: 15 Dec 2008
Posts: 12

PostPosted: Sat Sep 26, 2009 2:27 am    Post subject: Reply with quote

PS: I've followed the instructions in README.PSP

Code:

LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./autogen.sh --host psp --prefix=$(psp-config --psp-prefix)


I compiled the libs successfully about 5 months ago, the only change is that I reinstalled Cygwin last week.
_________________
NJU SE
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Sep 30, 2009 12:49 pm    Post subject: Reply with quote

Try changing LDFLAGS to:
Quote:

LDFLAGS="-L$(psp-config --pspsdk-path)/lib --start-group -lc -lpspuser"
Back to top
View user's profile Send private message
imhotep



Joined: 13 Dec 2005
Posts: 41

PostPosted: Tue Oct 20, 2009 12:55 am    Post subject: Reply with quote

alternatively, see solution here:
http://forums.ps2dev.org/viewtopic.php?p=85465#85465
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Oct 20, 2009 5:11 am    Post subject: Reply with quote

imhotep wrote:
alternatively, see solution here:
http://forums.ps2dev.org/viewtopic.php?p=85465#85465

Huh? That's entirely unrelated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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