Le samedi 01 septembre 2007 à 23:59 +0900, Mamoru Tasaka a écrit :
Tanguy Eric wrote, at 09/01/2007 11:32 PM +9:00:
> Le samedi 01 septembre 2007 à 07:32 -0400, Jakub Jelinek a écrit :
>> On Sat, Sep 01, 2007 at 01:07:23PM +0200, Tanguy Eric wrote:
>>> I tried to change :
>>>
>>> if( Instr && Instr->IsVirtualFile )
>>> Fp = virtualDirCallback.open( filename, UPNP_READ );
>>> else
>>> Fp = fopen( filename, "rb" );
>>>
>>> by
>>>
>>> if( Instr && Instr->IsVirtualFile )
>>> Fp = virtualDirCallback.(open)( filename, UPNP_READ );
>>> else
>>> Fp = fopen( filename, "rb" );
>>>
>>> but the same error stil remain.
>> Use
>> Fp = (virtualDirCallback.open)( filename, UPNP_READ );
>> or
>> Fp = (*virtualDirCallback.open)( filename, UPNP_READ );
>>
>> Jakub
>>
>
> Thanks the first one do the trick.
> Is this problem specific to our version of the compiler because an
> upstream developer answer me this :
> "so that I can decide the best way to patch it. I would rather not patch
> it, because it is too weird and seems to be a problem of a specific
> version of the compiler. It does not happen with two different versions
> of gcc, namely 4.1.2 and 4.1.3 from Suse."
AFAIK, this is due to glibc side change.
Mamoru
Thanks
Now with mock, i have this error which seems to be due to tar :
/etc/profile: line 38: /bin/hostname: No such file or directory
Installing /builddir/build/SRPMS/libupnp-1.6.0-2.fc8.src.rpm
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.71172
+ umask 022
+ cd /builddir/build/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /builddir/build/BUILD
+ rm -rf libupnp-1.6.0
+ /usr/bin/bzip2 -dc /builddir/build/SOURCES/libupnp-1.6.0.tar.bz2
+ tar -xf -
tar: error while loading shared libraries: libacl.so.1: cannot open
shared object file: No such file or directory
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /builddir/build/SOURCES/libupnp-1.6.0.tar.bz2,
output file = (stdout)
error: Bad exit status from /var/tmp/rpm-tmp.71172 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.71172 (%prep)
Error building package from libupnp-1.6.0-2.fc8.src.rpm, See build log
ending
done
Where the problem come from ?
Eric