* [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
@ 2005-06-03 12:29 Afanasov Dmitry
2005-06-03 12:54 ` Sergey Vlasov
2005-06-03 19:52 ` Afanasov Dmitry
0 siblings, 2 replies; 8+ messages in thread
From: Afanasov Dmitry @ 2005-06-03 12:29 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
решил пересобрать alsa (под дефолту она статическая, а мне для jack'а надо). и
при компиляции мне выдало,
gcc -g -O2 -o .libs/aserver aserver.o ../src/.libs/libasound.so
../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
гугление подсказало, что дело в <asm/byteorder.h>. проинклудил - то же самое.
более того, на
#include <linux/byteorder.h>
int main()
{
__cpu_to_le32(12);
}
мне выдало тоже самое: undefined reference to `__cpu_to_le32'
значит это не просто #include надо, а ещё и дополнительную либу подключить?
в общем - ничего не понимаю. где искать этот симбол?
--
С уважением,
Афанасов Дмитрий
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-03 12:29 [sisyphus] как разрешить undefined reference to `__cpu_to_le32'? Afanasov Dmitry
@ 2005-06-03 12:54 ` Sergey Vlasov
2005-06-04 7:07 ` Afanasov Dmitry
2005-06-03 19:52 ` Afanasov Dmitry
1 sibling, 1 reply; 8+ messages in thread
From: Sergey Vlasov @ 2005-06-03 12:54 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]
On Fri, Jun 03, 2005 at 04:29:24PM +0400, Afanasov Dmitry wrote:
> решил пересобрать alsa (под дефолту она статическая, а мне для jack'а
> надо). и при компиляции мне выдало,
> gcc -g -O2 -o .libs/aserver aserver.o ../src/.libs/libasound.so
> ../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
>
>
> гугление подсказало, что дело в <asm/byteorder.h>. проинклудил - то же
> самое. более того, на
> #include <linux/byteorder.h>
>
> int main()
> {
> __cpu_to_le32(12);
> }
>
> мне выдало тоже самое: undefined reference to `__cpu_to_le32'
>
> значит это не просто #include надо, а ещё и дополнительную либу подключить?
> в общем - ничего не понимаю. где искать этот симбол?
Похоже на очередную несовместимость с заголовками от ядра 2.6.x.
Поставьте пакет kernel-headers-std-up и переключите заголовки ядра на него
с помощью adjust_kernel_headers (в libalsa указана зависимость на
kernel-headers-std - видимо, adjust_kernel_headers default недостаточно).
Или пересобирайте пакет в hasher.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-03 12:54 ` Sergey Vlasov
@ 2005-06-04 7:07 ` Afanasov Dmitry
2005-06-04 9:28 ` [sisyphus] [SUMMARY] " Afanasov Dmitry
2005-06-06 9:05 ` [sisyphus] " Led
0 siblings, 2 replies; 8+ messages in thread
From: Afanasov Dmitry @ 2005-06-04 7:07 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Sergey Vlasov wrote:
> On Fri, Jun 03, 2005 at 04:29:24PM +0400, Afanasov Dmitry wrote:
>
>>gcc -g -O2 -o .libs/aserver aserver.o ../src/.libs/libasound.so
>>../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
>
> Похоже на очередную несовместимость с заголовками от ядра 2.6.x.
таак, а ето инетересно. не в первый раз что ли?
> Поставьте пакет kernel-headers-std-up и переключите заголовки ядра на него
> с помощью adjust_kernel_headers (в libalsa указана зависимость на
> kernel-headers-std - видимо, adjust_kernel_headers default недостаточно).
чёрт, значит не просто так в spec'е лежала зависимость от kernel-std-up :) а я,
глупый, править полез :) сейчас вернём на родину и проверим
> Или пересобирайте пакет в hasher.
а он с сетевыми репозитариями может работать? с ftp:// в смылсе. у меня нет
локального сизифа, декабрьский разве что.
P.S. вот теперь я понимаю почему "rpmbuild -ba libalsa*.spec тогда по дефолту не
идёт" :)) (соседнее моё письмо уровнем выше)
--
С уважением,
Афанасов Дмитрий
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] [SUMMARY] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-04 7:07 ` Afanasov Dmitry
@ 2005-06-04 9:28 ` Afanasov Dmitry
2005-06-04 9:49 ` [sisyphus] " Michael Shigorin
2005-06-06 9:05 ` [sisyphus] " Led
1 sibling, 1 reply; 8+ messages in thread
From: Afanasov Dmitry @ 2005-06-04 9:28 UTC (permalink / raw)
To: ender, ALT Linux Sisyphus discussion list
Afanasov Dmitry wrote:
> Sergey Vlasov wrote:
>
>> On Fri, Jun 03, 2005 at 04:29:24PM +0400, Afanasov Dmitry wrote:
>>
>>> gcc -g -O2 -o .libs/aserver aserver.o ../src/.libs/libasound.so
>>> ../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
>> Похоже на очередную несовместимость с заголовками от ядра 2.6.x.
>> Поставьте пакет kernel-headers-std-up и переключите заголовки ядра на
>> него
>
> сейчас вернём на родину и проверим
>
всё, с заголовками kernel-headers-std-up прекрасно пересобралось
--
С уважением,
Афанасов Дмитрий
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: как разрешить undefined reference to `__cpu_to_le32'?
2005-06-04 9:28 ` [sisyphus] [SUMMARY] " Afanasov Dmitry
@ 2005-06-04 9:49 ` Michael Shigorin
0 siblings, 0 replies; 8+ messages in thread
From: Michael Shigorin @ 2005-06-04 9:49 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Sat, Jun 04, 2005 at 01:28:02PM +0400, Afanasov Dmitry wrote:
> >>>../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
> >>Похоже на очередную несовместимость с заголовками от ядра 2.6.x.
> >>Поставьте пакет kernel-headers-std-up и переключите заголовки
> >>ядра на него
> >сейчас вернём на родину и проверим
> всё, с заголовками kernel-headers-std-up прекрасно пересобралось
Мораль сей басни такова: ломать просто так -- создавать себе
проблемы на ровном месте. :)
А ещё нужен specs cvs, чтоб историю появления таких вот строчек
можно было отследить.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-04 7:07 ` Afanasov Dmitry
2005-06-04 9:28 ` [sisyphus] [SUMMARY] " Afanasov Dmitry
@ 2005-06-06 9:05 ` Led
2005-06-06 9:40 ` Led
1 sibling, 1 reply; 8+ messages in thread
From: Led @ 2005-06-06 9:05 UTC (permalink / raw)
To: ender, ALT Linux Sisyphus discussion list
В сообщении от Суббота 04 Июнь 2005 10:07 Afanasov Dmitry написал(a):
> > Или пересобирайте пакет в hasher.
>
> а он с сетевыми репозитариями может работать? с ftp:// в смылсе. у меня нет
> локального сизифа, декабрьский разве что.
Если за последний месяц ничего не изменилось, то с локальным не работает. По
NFS работает, по FTP - тоже у меня работало, но только через lufs :)
Led.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-06 9:05 ` [sisyphus] " Led
@ 2005-06-06 9:40 ` Led
0 siblings, 0 replies; 8+ messages in thread
From: Led @ 2005-06-06 9:40 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
В сообщении от Понедельник 06 Июнь 2005 12:05 Led написал(a):
> В сообщении от Суббота 04 Июнь 2005 10:07 Afanasov Dmitry написал(a):
> > > Или пересобирайте пакет в hasher.
> >
> > а он с сетевыми репозитариями может работать? с ftp:// в смылсе. у меня
> > нет локального сизифа, декабрьский разве что.
>
> Если за последний месяц ничего не изменилось, то с локальным не работает.
Сорри, очепятка :(
правильно "с НЕлокальным не работает"
Led.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [sisyphus] как разрешить undefined reference to `__cpu_to_le32'?
2005-06-03 12:29 [sisyphus] как разрешить undefined reference to `__cpu_to_le32'? Afanasov Dmitry
2005-06-03 12:54 ` Sergey Vlasov
@ 2005-06-03 19:52 ` Afanasov Dmitry
1 sibling, 0 replies; 8+ messages in thread
From: Afanasov Dmitry @ 2005-06-03 19:52 UTC (permalink / raw)
To: ender, ALT Linux Sisyphus discussion list
Afanasov Dmitry wrote:
> решил пересобрать alsa (под дефолту она статическая, а мне для jack'а
> надо). и при компиляции мне выдало,
> gcc -g -O2 -o .libs/aserver aserver.o ../src/.libs/libasound.so
> ../src/.libs/libasound.so: undefined reference to `__cpu_to_le32'
вот, пока я дома, вырыл, что если вытащить
#define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
#define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
...
за #ifdef __KERNEL__ ... #endif, в /usr/include/linux/byteorder/little_endian.h,
то всё прекрасно компилится...
ни фига не понима., почему rpmbuild -ba libalsa*.spec тогда по дефолту не идёт?
что я млин не так делаю?
--
С уважением,
Афанасов Дмитрий
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-06 9:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03 12:29 [sisyphus] как разрешить undefined reference to `__cpu_to_le32'? Afanasov Dmitry
2005-06-03 12:54 ` Sergey Vlasov
2005-06-04 7:07 ` Afanasov Dmitry
2005-06-04 9:28 ` [sisyphus] [SUMMARY] " Afanasov Dmitry
2005-06-04 9:49 ` [sisyphus] " Michael Shigorin
2005-06-06 9:05 ` [sisyphus] " Led
2005-06-06 9:40 ` Led
2005-06-03 19:52 ` Afanasov Dmitry
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git