[physfs] How to compile 1.0.1?

Eugenio Favalli eugenio.favalli at alice.it
Thu Aug 18 04:45:49 EDT 2005

Ok first of all when I run configure I get this lines:

configure:10307: checking if this is BeOS
configure:10319: result: no
configure:10322: checking if this is Cygwin
configure:10333: result: no
configure:10336: checking if this is mingw
configure:10347: result: no
configure:10352: checking if this is MacOS X
configure:10360: result: no
configure:10366: checking if this is FreeBSD
configure:10374: result: no
configure:10380: checking if this is OpenBSD
configure:10388: result: no
configure:10394: checking if this is AtheOS
configure:10403: result: no
configure:10409: checking if this is OS/2
configure:10420: result: no
configure:10426: checking if this is MiNT
configure:10435: result: no

I think mingw should result in yes...
Then the build process output, and the error seems to be in ld.exe not 
accepting physfs.lo

if test "x`sed 1q .libs/libphysfs.exp`" = xEXPORTS; then cp 
.libs/libphysfs.exp .libs/libphysfs-1-0-1.dll-def; else echo EXPORTS > 
.libs/libphysfs-1-0-1.dll-def; _lt_hint=1; cat .libs/libphysfs.exp | 
while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ 
$_lt_hint ; " >> .libs/libphysfs-1-0-1.dll-def;; 4) echo " $2 $3 $4 ; " 
 >> .libs/libphysfs-1-0-1.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) 
echo " $2 @ $_lt_hint $3 ; " >> .libs/libphysfs-1-0-1.dll-def;; esac; 
_lt_hint=`expr 1 + $_lt_hint`; done; fi
 gcc -Wl,--base-file,.libs/libphysfs-1-0-1.dll-base 
-Wl,-e,_DllMainCRTStartup at 12 -o .libs/libphysfs-1-0-1.dll  physfs.lo 
physfs_byteorder.lo .libs/libphysfs.lax/libarchivers.al/dir.lo 
archivers/.libs/libarchivers.al platform/.libs/libplatform.a -lz
file format not recognized; treating as linker script
syntax error
collect2: ld returned 1 exit status
make[2]: *** [libphysfs.la] Error 1
make[2]: Leaving directory `/home/Eugenio/physfs-1.0.1'
make[1]: *** [all-recursive] Error 1

Thank you for any help you could provide.
Eugenio Favalli

Ryan C. Gordon wrote:

> Eugenio Favalli wrote:
>> I succeded to compile 1.1.0 with msys+mingw without problems. But 
>> when using this version TMW crashes (http://themanaworld.org) because 
>> it can't load stuff. If using 1.0.1 it was reported to work, but it 
>> seems that I'm not able to compile it under windows. What I have to 
>> modify to make it compile?
> Error messages would be helpful.
> --ryan.

More information about the physfs mailing list