apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Leggett" <minf...@sharp.fm>
Subject Re: Looking for HOWTO: Linking to APR
Date Mon, 17 Jan 2005 15:02:16 GMT
Joe Orton said:

>> cc -DHAVE_CONFIG_H -I. -I. -I../../src/include
>> -I/udd001/app/spread/usr/include/apr-0 -g -c -o diablo-diablo.o `test -f
>> 'diablo.c' || echo './'`diablo.c
>> cc  -g   -o diablo -L/udd001/app/spread/usr/lib -lapr-0 -lsendfile -lrt
>> -lm -lsocket -lnsl -lresolv  -lpthread -ldl diablo-diablo.o
>> ild: (bad file) archive subfile #1 in
>> /udd001/app/spread/usr/lib/libapr-0.a is a file of unknown type
>
> That's pretty weird.  You weren't mixing 64-bit and 32-bit objects or
> anything?  "ar -tv" output on libapr-0.a show anything other than .o
> files in the archive?

Very weird:

bash-2.03$ ar -tv /udd001/app/spread/usr/lib/libapr-0.a
rw-r--r--   501/   501  12156 Dec 21 13:42 2004 #1
rw-r--r--   501/   501   4860 Dec 21 13:41 2004 apr_cpystrn.o
rw-r--r--   501/   501   5352 Dec 21 13:41 2004 apr_fnmatch.o
rw-r--r--   501/   501  30852 Dec 21 13:41 2004 apr_snprintf.o
rw-r--r--   501/   501  10008 Dec 21 13:41 2004 apr_strings.o
rw-r--r--   501/   501   5204 Dec 21 13:41 2004 apr_strnatcmp.o
[snip]

Is the file #1 supposed to be there? I assume not, thus the message
"archive subfile #1 is a file of unknown type". Anyone know what could
have caused this file?

Regards,
Graham
--



Mime
View raw message