Opened 9 years ago

Closed 9 years ago

#5197 closed Bug (fixed)

compilation error, revision 13702

Reported by: leandroong Owned by: jordan
Priority: Normal Milestone:
Component: Transmission Version: 2.75+
Severity: Normal Keywords:
Cc:

Description

Error message:

.... In file included from platform.c:42: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token platform.c: In function ‘getquota’: platform.c:849: error: ‘struct dqblk’ has no member named ‘dqb_curspace’ make[2]: * [platform.o] Error 1

Attachments (10)

0001-Fix-FTBFS-for-uClibc.patch (1.1 KB) - added by taem 9 years ago.
build_122912.log (14.3 KB) - added by leandroong 9 years ago.
build.log
0001-Possible-fix-for-FTBFS-with-uClibc.patch (1.5 KB) - added by taem 9 years ago.
build.log (14.3 KB) - added by leandroong 9 years ago.
build.log
build.2.log (14.3 KB) - added by leandroong 9 years ago.
build.log
0001-A-possible-fix-for-FTBFS-with-uClibc.patch (1.5 KB) - added by taem 9 years ago.
build.3.log (14.3 KB) - added by leandroong 9 years ago.
build.log
transmission.mk (13.5 KB) - added by leandroong 9 years ago.
transmission.mk
pthread.h (24.4 KB) - added by leandroong 9 years ago.
pthread.h
quota.h (5.6 KB) - added by leandroong 9 years ago.
quota.h

Download all attachments as: .zip

Change History (74)

comment:1 Changed 9 years ago by jordan

  • Milestone None Set deleted
  • Owner set to jordan
  • Status changed from new to assigned

comment:2 Changed 9 years ago by taem

Hi,

Please test attached patch.

Thanks.

Changed 9 years ago by taem

comment:3 Changed 9 years ago by taem

  • Cc taem@… added

comment:4 follow-up: Changed 9 years ago by leandroong

adding patch on revision 13707, still error as follow: In file included from platform.c:42: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token platform.c:850:11: warning: "_lINUX_QUOTA_VERSION" is not defined platform.c: In function ‘getquota’: platform.c:855: error: expected ‘;’ before ‘:’ token make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:5 in reply to: ↑ 4 Changed 9 years ago by taem

Thanks, leandroong.

Replying to leandroong:

adding patch on revision 13707, still error as follow:

[skip]

platform.c:850:11: warning: "_lINUX_QUOTA_VERSION" is not defined

[skip]

There is typo (small 'l')? Should be _LINUX_QUOTA_VERSION.

comment:6 Changed 9 years ago by taem

  • Cc taem@… removed

comment:7 Changed 9 years ago by leandroong

I did check that, not typo, it is capital in the source code.

comment:8 Changed 9 years ago by leandroong

Typo indeed. Still error:

In file included from platform.c:42: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token platform.c:850:11: warning: "_LINUX_QUOTA_VERSION" is not defined platform.c: In function ‘getquota’: platform.c:855: error: expected ‘;’ before ‘:’ token make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:9 Changed 9 years ago by leandroong

compilation error, revision 13714

In file included from platform.c:47:
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token
platform.c: In function ‘getquota’:
platform.c:861: error: ‘struct dqblk’ has no member named ‘dqb_curspace’
make[2]: *** [platform.o] Error 1
make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission'
make: *** [/home/leandroong/optware/ddwrt/builds/transmission/.built] Error 2


comment:11 Changed 9 years ago by leandroong

Applying test patch on revision 13714, resulit in compilation error as follows:

In file included from platform.c:47: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:12 Changed 9 years ago by taem

Thanks leandroong. Can you please build the trunk and post somewhere the full build log?

comment:13 Changed 9 years ago by leandroong

not sure I understand what you want. Provide procedures

comment:14 Changed 9 years ago by leandroong

revision 13716 compilation error:

In file included from platform.c:46: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:15 Changed 9 years ago by taem

Please type in the terminal following command:

make 2>&1 | tee ../build.log

And post the build.log content to http://pastebin.com/. Thanks.

comment:16 Changed 9 years ago by taem

Or simply attach build.log file to this ticket.

comment:17 follow-up: Changed 9 years ago by leandroong

compilation log link http://pastebin.com/W7KYKPV7

comment:18 in reply to: ↑ 17 Changed 9 years ago by taem

Replying to leandroong:

compilation log link http://pastebin.com/W7KYKPV7

leandroong, there is file path. Copy&paste file:///home/leandroong/optware/ddwrt/builds/build_122912.log content to pastebin.

comment:19 Changed 9 years ago by leandroong

Click "DOWNLOAD" beside the picture

Changed 9 years ago by leandroong

build.log

comment:20 Changed 9 years ago by taem

Thanks. I've to investigate this issue.

comment:21 Changed 9 years ago by taem

Hi leandroong,

Please test attached patch with the latest trunk.

Thanks.

comment:22 Changed 9 years ago by taem

jordan, in platform.c, '_XOPEN_SOURCE 600' needed by pthread.h?

Changed 9 years ago by leandroong

build.log

comment:23 Changed 9 years ago by leandroong

13721 errors

Configuration:

Source code location: . Compiler: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++

Build libtransmission: yes

  • optimized for low-resource systems: yes
  • µTP enabled: yes

Build Command-Line client: yes

Build GTK+ client: no

  • libappindicator for an Ubuntu-style tray: no

Build Daemon: yes

Build Mac client: no

sed -i -e 's|sys_lib_search_path_spec=.*"$|sys_lib_search_path_spec="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib /home/leandroong/optware/ddwrt/staging/opt/lib"|' -e 's|sys_lib_dlsearch_path_spec=.*"$|sys_lib_dlsearch_path_spec=""|' -e 's|hardcode_libdir_flag_spec=.*"$|hardcode_libdir_flag_spec=""|' -e 's|nmedit |/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nmedit |' /home/leandroong/optware/ddwrt/builds/transmission/libtool touch /home/leandroong/optware/ddwrt/builds/transmission/.configured rm -f /home/leandroong/optware/ddwrt/builds/transmission/.built AR=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ar AS=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-as LD=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ld NM=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nm CC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CPP="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -E" GCC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CXX=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++ RANLIB=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ranlib STRIP=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-strip make -C /home/leandroong/optware/ddwrt/builds/transmission make[1]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission' Making all in extras make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' Making all in third-party make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in dht make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht'

CC dht.o

dht.c: In function ‘is_martian’: dht.c:358: warning: cast increases required alignment of target type dht.c:366: warning: cast increases required alignment of target type dht.c: In function ‘storage_store’: dht.c:1286: warning: cast increases required alignment of target type dht.c:1290: warning: cast increases required alignment of target type dht.c: In function ‘make_token’: dht.c:1413: warning: cast increases required alignment of target type dht.c:1418: warning: cast increases required alignment of target type

AR libdht.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht' Making all in libnatpmp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp'

CC getgateway.o CC natpmp.o

natpmp.c:106: warning: no previous declaration for ‘sendpendingrequest’ natpmp.c:122: warning: no previous declaration for ‘sendnatpmprequest’ natpmp.c: In function ‘sendnewportmappingrequest’: natpmp.c:179: warning: cast increases required alignment of target type natpmp.c:180: warning: cast increases required alignment of target type natpmp.c:181: warning: cast increases required alignment of target type natpmp.c: At top level: natpmp.c:187: warning: no previous declaration for ‘readnatpmpresponse’ natpmp.c: In function ‘readnatpmpresponse’: natpmp.c:212: warning: cast increases required alignment of target type natpmp.c:213: warning: cast increases required alignment of target type natpmp.c:242: warning: cast increases required alignment of target type natpmp.c:244: warning: cast increases required alignment of target type natpmp.c:245: warning: cast increases required alignment of target type natpmp.c:246: warning: cast increases required alignment of target type

CC wingettimeofday.o AR libnatpmp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp' Making all in miniupnp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' ./updateminiupnpcstrings.sh ./VERSION ./miniupnpcstrings.h.in miniupnpcstrings.h Detected OS [Ubuntu] version [12.04] MiniUPnPc version [1.7] setting OS_STRING macro value to Ubuntu/12.04 in miniupnpcstrings.h. setting MINIUPNPC_VERSION_STRING macro value to 1.7 in miniupnpcstrings.h. make all-am make[4]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp'

CC connecthostport.o CC igd_desc_parse.o CC minisoap.o CC minissdpc.o CC miniupnpc.o

miniupnpc.c:118: warning: no previous declaration for ‘simpleUPnPcommand2’

CC miniwget.o CC minixml.o CC portlistingparse.o

portlistingparse.c:71: warning: unused parameter ‘name’ portlistingparse.c:71: warning: unused parameter ‘l’

CC receivedata.o CC upnpcommands.o CC upnpreplyparse.o AR libminiupnp.a

make[4]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' Making all in libutp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp'

CXX utp.o

In file included from utp.cpp:78: utp_config.h:8:2: warning: #warning implement this in libtransmission utp.cpp:220: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::connid’ utp.cpp:221: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_sec’ utp.cpp:222: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_usec’ utp.cpp:223: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::reply_micro’ utp.cpp:231: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::seq_nr’ utp.cpp:233: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::ack_nr’ utp.cpp:262: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::connid’ utp.cpp:263: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::tv_usec’ utp.cpp:264: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::reply_micro’ utp.cpp:266: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::windowsize’ utp.cpp:268: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::seq_nr’ utp.cpp:270: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::ack_nr’

CXX utp_utils.o AR libutp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp' make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in libtransmission make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission'

CC announcer.o CC announcer-http.o CC announcer-udp.o

announcer-udp.c: In function ‘tau_sockaddr_setport’: announcer-udp.c:44: warning: cast increases required alignment of target type announcer-udp.c:46: warning: cast increases required alignment of target type

CC bandwidth.o CC bitfield.o CC blocklist.o CC cache.o CC clients.o CC completion.o CC ConvertUTF.o CC crypto.o CC fdlimit.o

fdlimit.c: In function ‘tr_prefetch’: fdlimit.c:236: warning: implicit declaration of function ‘posix_fadvise’ fdlimit.c:236: warning: nested extern declaration of ‘posix_fadvise’

CC handshake.o CC history.o CC inout.o CC list.o CC magnet.o CC makemeta.o CC metainfo.o CC natpmp.o CC net.o

net.c: In function ‘global_unicast_address’: net.c:491: warning: cast increases required alignment of target type net.c:499: warning: cast increases required alignment of target type

CC peer-io.o CC peer-mgr.o CC peer-msgs.o

peer-msgs.c: In function ‘myDebug’: peer-msgs.c:250: warning: function might be possible candidate for ‘printf’ format attribute

CC platform.o

platform.c:19:1: error: unterminated #ifdef platform.c:13:1: error: unterminated #ifdef make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:24 Changed 9 years ago by taem

Thanks. Hmm... can't find any unterminated #ifdef. Is patch correctly applied?

Last edited 9 years ago by taem (previous) (diff)

comment:25 Changed 9 years ago by leandroong

oops! My mistake missing '#'.. recompiling. Compilation new error:

Configuration:

Source code location: . Compiler: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++

Build libtransmission: yes

  • optimized for low-resource systems: yes
  • µTP enabled: yes

Build Command-Line client: yes

Build GTK+ client: no

  • libappindicator for an Ubuntu-style tray: no

Build Daemon: yes

Build Mac client: no

sed -i -e 's|sys_lib_search_path_spec=.*"$|sys_lib_search_path_spec="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib /home/leandroong/optware/ddwrt/staging/opt/lib"|' -e 's|sys_lib_dlsearch_path_spec=.*"$|sys_lib_dlsearch_path_spec=""|' -e 's|hardcode_libdir_flag_spec=.*"$|hardcode_libdir_flag_spec=""|' -e 's|nmedit |/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nmedit |' /home/leandroong/optware/ddwrt/builds/transmission/libtool touch /home/leandroong/optware/ddwrt/builds/transmission/.configured rm -f /home/leandroong/optware/ddwrt/builds/transmission/.built AR=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ar AS=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-as LD=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ld NM=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nm CC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CPP="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -E" GCC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CXX=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++ RANLIB=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ranlib STRIP=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-strip make -C /home/leandroong/optware/ddwrt/builds/transmission make[1]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission' Making all in extras make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' Making all in third-party make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in dht make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht'

CC dht.o

dht.c: In function ‘is_martian’: dht.c:358: warning: cast increases required alignment of target type dht.c:366: warning: cast increases required alignment of target type dht.c: In function ‘storage_store’: dht.c:1286: warning: cast increases required alignment of target type dht.c:1290: warning: cast increases required alignment of target type dht.c: In function ‘make_token’: dht.c:1413: warning: cast increases required alignment of target type dht.c:1418: warning: cast increases required alignment of target type

AR libdht.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht' Making all in libnatpmp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp'

CC getgateway.o CC natpmp.o

natpmp.c:106: warning: no previous declaration for ‘sendpendingrequest’ natpmp.c:122: warning: no previous declaration for ‘sendnatpmprequest’ natpmp.c: In function ‘sendnewportmappingrequest’: natpmp.c:179: warning: cast increases required alignment of target type natpmp.c:180: warning: cast increases required alignment of target type natpmp.c:181: warning: cast increases required alignment of target type natpmp.c: At top level: natpmp.c:187: warning: no previous declaration for ‘readnatpmpresponse’ natpmp.c: In function ‘readnatpmpresponse’: natpmp.c:212: warning: cast increases required alignment of target type natpmp.c:213: warning: cast increases required alignment of target type natpmp.c:242: warning: cast increases required alignment of target type natpmp.c:244: warning: cast increases required alignment of target type natpmp.c:245: warning: cast increases required alignment of target type natpmp.c:246: warning: cast increases required alignment of target type

CC wingettimeofday.o AR libnatpmp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp' Making all in miniupnp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' ./updateminiupnpcstrings.sh ./VERSION ./miniupnpcstrings.h.in miniupnpcstrings.h Detected OS [Ubuntu] version [12.04] MiniUPnPc version [1.7] setting OS_STRING macro value to Ubuntu/12.04 in miniupnpcstrings.h. setting MINIUPNPC_VERSION_STRING macro value to 1.7 in miniupnpcstrings.h. make all-am make[4]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp'

CC connecthostport.o CC igd_desc_parse.o CC minisoap.o CC minissdpc.o CC miniupnpc.o

miniupnpc.c:118: warning: no previous declaration for ‘simpleUPnPcommand2’

CC miniwget.o CC minixml.o CC portlistingparse.o

portlistingparse.c:71: warning: unused parameter ‘name’ portlistingparse.c:71: warning: unused parameter ‘l’

CC receivedata.o CC upnpcommands.o CC upnpreplyparse.o AR libminiupnp.a

make[4]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' Making all in libutp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp'

CXX utp.o

In file included from utp.cpp:78: utp_config.h:8:2: warning: #warning implement this in libtransmission utp.cpp:220: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::connid’ utp.cpp:221: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_sec’ utp.cpp:222: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_usec’ utp.cpp:223: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::reply_micro’ utp.cpp:231: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::seq_nr’ utp.cpp:233: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::ack_nr’ utp.cpp:262: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::connid’ utp.cpp:263: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::tv_usec’ utp.cpp:264: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::reply_micro’ utp.cpp:266: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::windowsize’ utp.cpp:268: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::seq_nr’ utp.cpp:270: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::ack_nr’

CXX utp_utils.o AR libutp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp' make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in libtransmission make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission'

CC announcer.o CC announcer-http.o CC announcer-udp.o

announcer-udp.c: In function ‘tau_sockaddr_setport’: announcer-udp.c:44: warning: cast increases required alignment of target type announcer-udp.c:46: warning: cast increases required alignment of target type

CC bandwidth.o CC bitfield.o CC blocklist.o CC cache.o CC clients.o CC completion.o CC ConvertUTF.o CC crypto.o CC fdlimit.o

fdlimit.c: In function ‘tr_prefetch’: fdlimit.c:236: warning: implicit declaration of function ‘posix_fadvise’ fdlimit.c:236: warning: nested extern declaration of ‘posix_fadvise’

CC handshake.o CC history.o CC inout.o CC list.o CC magnet.o CC makemeta.o CC metainfo.o CC natpmp.o CC net.o

net.c: In function ‘global_unicast_address’: net.c:491: warning: cast increases required alignment of target type net.c:499: warning: cast increases required alignment of target type

CC peer-io.o CC peer-mgr.o CC peer-msgs.o

peer-msgs.c: In function ‘myDebug’: peer-msgs.c:250: warning: function might be possible candidate for ‘printf’ format attribute

CC platform.o

platform.c: In function ‘tr_lockNew’: platform.c:197: warning: implicit declaration of function ‘pthread_mutexattr_settype’ platform.c:197: warning: nested extern declaration of ‘pthread_mutexattr_settype’ platform.c:197: error: ‘PTHREAD_MUTEX_RECURSIVE’ undeclared (first use in this function) platform.c:197: error: (Each undeclared identifier is reported only once platform.c:197: error: for each function it appears in.) make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

Changed 9 years ago by leandroong

build.log

comment:26 Changed 9 years ago by taem

Please revert previous patch. Then apply attached patch. Thanks.

comment:27 Changed 9 years ago by taem

leandroong, are you editing platform.c file by hand? You can apply the patch with this command in /home/leandroong/optware/ddwrt/builds/transmission directory:

patch -p1 < /path/to/patch

comment:28 Changed 9 years ago by leandroong

Configuration:

Source code location: . Compiler: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++

Build libtransmission: yes

  • optimized for low-resource systems: yes
  • µTP enabled: yes

Build Command-Line client: yes

Build GTK+ client: no

  • libappindicator for an Ubuntu-style tray: no

Build Daemon: yes

Build Mac client: no

sed -i -e 's|sys_lib_search_path_spec=.*"$|sys_lib_search_path_spec="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib /home/leandroong/optware/ddwrt/staging/opt/lib"|' -e 's|sys_lib_dlsearch_path_spec=.*"$|sys_lib_dlsearch_path_spec=""|' -e 's|hardcode_libdir_flag_spec=.*"$|hardcode_libdir_flag_spec=""|' -e 's|nmedit |/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nmedit |' /home/leandroong/optware/ddwrt/builds/transmission/libtool touch /home/leandroong/optware/ddwrt/builds/transmission/.configured rm -f /home/leandroong/optware/ddwrt/builds/transmission/.built AR=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ar AS=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-as LD=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ld NM=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-nm CC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CPP="/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -E" GCC=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc CXX=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-g++ RANLIB=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-ranlib STRIP=/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-strip make -C /home/leandroong/optware/ddwrt/builds/transmission make[1]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission' Making all in extras make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/extras' Making all in third-party make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in dht make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht'

CC dht.o

dht.c: In function ‘is_martian’: dht.c:358: warning: cast increases required alignment of target type dht.c:366: warning: cast increases required alignment of target type dht.c: In function ‘storage_store’: dht.c:1286: warning: cast increases required alignment of target type dht.c:1290: warning: cast increases required alignment of target type dht.c: In function ‘make_token’: dht.c:1413: warning: cast increases required alignment of target type dht.c:1418: warning: cast increases required alignment of target type

AR libdht.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/dht' Making all in libnatpmp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp'

CC getgateway.o CC natpmp.o

natpmp.c:106: warning: no previous declaration for ‘sendpendingrequest’ natpmp.c:122: warning: no previous declaration for ‘sendnatpmprequest’ natpmp.c: In function ‘sendnewportmappingrequest’: natpmp.c:179: warning: cast increases required alignment of target type natpmp.c:180: warning: cast increases required alignment of target type natpmp.c:181: warning: cast increases required alignment of target type natpmp.c: At top level: natpmp.c:187: warning: no previous declaration for ‘readnatpmpresponse’ natpmp.c: In function ‘readnatpmpresponse’: natpmp.c:212: warning: cast increases required alignment of target type natpmp.c:213: warning: cast increases required alignment of target type natpmp.c:242: warning: cast increases required alignment of target type natpmp.c:244: warning: cast increases required alignment of target type natpmp.c:245: warning: cast increases required alignment of target type natpmp.c:246: warning: cast increases required alignment of target type

CC wingettimeofday.o AR libnatpmp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libnatpmp' Making all in miniupnp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' ./updateminiupnpcstrings.sh ./VERSION ./miniupnpcstrings.h.in miniupnpcstrings.h Detected OS [Ubuntu] version [12.04] MiniUPnPc version [1.7] setting OS_STRING macro value to Ubuntu/12.04 in miniupnpcstrings.h. setting MINIUPNPC_VERSION_STRING macro value to 1.7 in miniupnpcstrings.h. make all-am make[4]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp'

CC connecthostport.o CC igd_desc_parse.o CC minisoap.o CC minissdpc.o CC miniupnpc.o

miniupnpc.c:118: warning: no previous declaration for ‘simpleUPnPcommand2’

CC miniwget.o CC minixml.o CC portlistingparse.o

portlistingparse.c:71: warning: unused parameter ‘name’ portlistingparse.c:71: warning: unused parameter ‘l’

CC receivedata.o CC upnpcommands.o CC upnpreplyparse.o AR libminiupnp.a

make[4]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/miniupnp' Making all in libutp make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp'

CXX utp.o

In file included from utp.cpp:78: utp_config.h:8:2: warning: #warning implement this in libtransmission utp.cpp:220: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::connid’ utp.cpp:221: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_sec’ utp.cpp:222: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::tv_usec’ utp.cpp:223: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormat::reply_micro’ utp.cpp:231: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::seq_nr’ utp.cpp:233: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormat::ack_nr’ utp.cpp:262: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::connid’ utp.cpp:263: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::tv_usec’ utp.cpp:264: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::reply_micro’ utp.cpp:266: warning: ignoring packed attribute on unpacked non-POD field ‘uint32_big PacketFormatV1::windowsize’ utp.cpp:268: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::seq_nr’ utp.cpp:270: warning: ignoring packed attribute on unpacked non-POD field ‘uint16_big PacketFormatV1::ack_nr’

CXX utp_utils.o AR libutp.a

make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party/libutp' make[3]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/third-party' Making all in libtransmission make[2]: Entering directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission'

CC announcer.o CC announcer-http.o CC announcer-udp.o

announcer-udp.c: In function ‘tau_sockaddr_setport’: announcer-udp.c:44: warning: cast increases required alignment of target type announcer-udp.c:46: warning: cast increases required alignment of target type

CC bandwidth.o CC bitfield.o CC blocklist.o CC cache.o CC clients.o CC completion.o CC ConvertUTF.o CC crypto.o CC fdlimit.o

fdlimit.c: In function ‘tr_prefetch’: fdlimit.c:236: warning: implicit declaration of function ‘posix_fadvise’ fdlimit.c:236: warning: nested extern declaration of ‘posix_fadvise’

CC handshake.o CC history.o CC inout.o CC list.o CC magnet.o CC makemeta.o CC metainfo.o CC natpmp.o CC net.o

net.c: In function ‘global_unicast_address’: net.c:491: warning: cast increases required alignment of target type net.c:499: warning: cast increases required alignment of target type

CC peer-io.o CC peer-mgr.o CC peer-msgs.o

peer-msgs.c: In function ‘myDebug’: peer-msgs.c:250: warning: function might be possible candidate for ‘printf’ format attribute

CC platform.o

In file included from platform.c:37: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/sys/quota.h:154: error: expected declaration specifiers or ‘...’ before ‘caddr_t’ platform.c: In function ‘getquota’: platform.c:839: error: ‘caddr_t’ undeclared (first use in this function) platform.c:839: error: (Each undeclared identifier is reported only once platform.c:839: error: for each function it appears in.) platform.c:839: error: too many arguments to function ‘quotactl’ platform.c: In function ‘tr_getQuotaFreeSpace’: platform.c:932: warning: implicit declaration of function ‘strcasecmp’ make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

Changed 9 years ago by leandroong

build.log

comment:29 Changed 9 years ago by taem

Hmm, there is some issue with headers and defines. Can't find solution yet.

jordan, any ideas please?

comment:30 Changed 9 years ago by taem

After holidays, can try to install uClibc build environment. And try to build sources myself.

comment:31 Changed 9 years ago by leandroong

@taem, this might help. Procedures on how to build ipk: 1.) Required repositories: gcc, cvs, flex, bison, make, pkg-config, rsync, gettext, libglib2.0-dev, autoconf, libtool, automake, automake1.9, sudo, patch, bzip2, gzip, wget, sed, texinfo, subversion and while your at it, your favourite editor e.g. emacs.

2.) svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware

3.) cd ~/optware 4.) make ddwrt

5.) to build transmission ipk:

cd ~/optware/ddwrt make transmission-ipk

Note: transmission.mk that i'm using, sent as attachment, simply overwrite ~/optware/ddwrt/make/transmission.mk with my attachment.

Changed 9 years ago by leandroong

transmission.mk

comment:32 Changed 9 years ago by taem

leandroong, ok. Thanks.

comment:33 follow-up: Changed 9 years ago by jordan

Is this still an issue?

comment:34 in reply to: ↑ 33 Changed 9 years ago by taem

Replying to jordan:

Is this still an issue?

Yep. I'm looking for the fix.

comment:35 Changed 9 years ago by leandroong

@taem, I don't know if this can help. My last successful compilation is revision 13691.

Last edited 9 years ago by leandroong (previous) (diff)

comment:36 Changed 9 years ago by x190

So what happened in r13692. taem's quota (#3833) revisions don't start until r13696.

https://trac.transmissionbt.com/ticket/3833#comment:51

Last edited 9 years ago by x190 (previous) (diff)

comment:37 Changed 9 years ago by leandroong

rev 13691, last successful build. Next attempt is 13702. That is when I report the error...

comment:38 Changed 9 years ago by leandroong

do you want me to find which revision fails, starting from 13692?

comment:39 Changed 9 years ago by leandroong

revision 13692 compiles successfully... next 13693

comment:40 Changed 9 years ago by leandroong

revision 13693 compiles successfully ... next 13694

comment:41 Changed 9 years ago by leandroong

revision 13694 compiles successfully ... next 13695

comment:42 Changed 9 years ago by leandroong

revision 13695 compiles successfully ... next 13696

comment:43 Changed 9 years ago by leandroong

revision 13696 compiles unsuccessfully ... error as follows:

In file included from platform.c:41: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token platform.c: In function ‘getquota’: platform.c:804: error: ‘struct dqblk’ has no member named ‘dqb_curspace’ make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

comment:44 Changed 9 years ago by JJTagy

What Linux OS are you running? Which version of quota? You should post a copy of the struct definition from your quota.h.

comment:45 Changed 9 years ago by leandroong

OS: Linux Kernel 2.6.22.19 I think you need to read platform.c, Here is partial list: .. static int64_t getquota (char * device) {

struct dqblk dq; int64_t limit; int64_t freespace; int64_t spaceused;

#if defined(FreeBSD)
defined(SYS_DARWIN)

if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)

#else

if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA), device, getuid(), (caddr_t) &dq) == 0)

#endif

{

if (dq.dqb_bsoftlimit > 0)

{

/* Use soft limit first */ limit = dq.dqb_bsoftlimit;

}

else if (dq.dqb_bhardlimit > 0)

{

limit = dq.dqb_bhardlimit;

}

else

{

/* No quota enabled for this user */ return -1;

}

comment:46 Changed 9 years ago by leandroong

these are the changes made on 13696 https://trac.transmissionbt.com/changeset?reponame=&old=13696%40%2F&new=13696%40%2F#file1

Note: It fail on line 804. "struct dqblk’ has no member named ‘dqb_curspace’"

line 804 ==> freespace = limit - btodb(dq.dqb_curspace);

Last edited 9 years ago by leandroong (previous) (diff)

comment:47 Changed 9 years ago by leandroong

I can generate successful compilation if I use this guide, http://ubuntuforums.org/showthread.php?p=10578298

comment:48 Changed 9 years ago by JJTagy

Ok, what flavor of Linux? BSD, Ubuntu, ...; Arch; etc.

I did read platform.c. The dqblk struct is defined in quota.h, not platform.c. This is just declaring dq as type dqblk.

Changed 9 years ago by leandroong

pthread.h

comment:49 Changed 9 years ago by leandroong

OS: Linux Kernel 2.6.22.19 Running on tomato router FW. I use virtualbox to compile and generate ipk.

Where can I find that quota.h?

comment:50 Changed 9 years ago by leandroong

#include <sys/quota.h> /* quotactl */ Where is that?

comment:51 Changed 9 years ago by leandroong

Got it, located under ./toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/include/sys/quota.h see attachment below:

Changed 9 years ago by leandroong

quota.h

comment:52 Changed 9 years ago by JJTagy

I just loaded up my Ubuntu VM and found an explanation on both versions. Pre v2 quota, they use curblocks:

struct dqblk
  {
    u_int32_t dqb_bhardlimit;   /* absolute limit on disk blks alloc */
    u_int32_t dqb_bsoftlimit;   /* preferred limit on disk blks */
    u_int32_t dqb_curblocks;    /* current block count */
    u_int32_t dqb_ihardlimit;   /* maximum # allocated inodes */
    u_int32_t dqb_isoftlimit;   /* preferred inode limit */
    u_int32_t dqb_curinodes;    /* current # allocated inodes */
    time_t dqb_btime;           /* time limit for excessive disk use */
    time_t dqb_itime;           /* time limit for excessive files */
  };

While in v2+ they use curspace:

struct dqblk
  {
    u_int64_t dqb_bhardlimit;   /* absolute limit on disk quota blocks alloc */
    u_int64_t dqb_bsoftlimit;   /* preferred limit on disk quota blocks */
    u_int64_t dqb_curspace;     /* current quota block count */
    u_int64_t dqb_ihardlimit;   /* maximum # allocated inodes */
    u_int64_t dqb_isoftlimit;   /* preferred inode limit */
    u_int64_t dqb_curinodes;    /* current # allocated inodes */
    u_int64_t dqb_btime;        /* time limit for excessive disk use */
    u_int64_t dqb_itime;        /* time limit for excessive files */
    u_int32_t dqb_valid;        /* bitmask of QIF_* constants */
  };

Taem: Perhaps you can take advantage of LINUX_QUOTA_VERSION to write code for curblocks vs. curspace.

Last edited 9 years ago by JJTagy (previous) (diff)

comment:53 follow-up: Changed 9 years ago by leandroong

While waiting for the fix. Is it ok for me to just edit quota.h and rename "dqb_curblocks" into "dqb_curspace" ? Are they same? Answer to my question, still has compilation problem.

Last edited 9 years ago by leandroong (previous) (diff)

comment:54 Changed 9 years ago by x190

Hey leandroong , I think you're looking at something taem already fixed. According to your comment:28 the following is now the problem.

In file included from platform.c:37:
/home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/sys/quota.h:154: error: expected declaration specifiers or ‘...’ before ‘caddr_t’
platform.c: In function ‘getquota’:
platform.c:839: error: ‘caddr_t’ undeclared (first use in this function)
platform.c:839: error: (Each undeclared identifier is reported only once
platform.c:839: error: for each function it appears in.)
platform.c:839: error: too many arguments to function ‘quotactl’
platform.c: In function ‘tr_getQuotaFreeSpace’:
platform.c:932: warning: implicit declaration of function ‘strcasecmp’
make[2]: * [platform.o] Error 1
make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission'
make[1]: * [all-recursive] Error 1 

comment:55 in reply to: ↑ 53 Changed 9 years ago by JJTagy

Replying to leandroong:

While waiting for the fix. Is it ok for me to just edit quota.h and rename "dqb_curblocks" into "dqb_curspace" ? Are they same?

That would be a bad idea. If anything, you would change the implementation in T. One is uint64 and other is uint32 so you'll need to modify more than just that one line.

comment:56 Changed 9 years ago by jordan

leandroong: passick from #transmission on freenode has this patch for you to get things working on Haiku:

https://www.dropbox.com/s/fh7p89a1zi2v1t2/fix_haiku_quota.diff

comment:57 Changed 9 years ago by leandroong

line# not matching on revision 13780.

comment:58 Changed 9 years ago by leandroong

applying "fix_haiku_quota.diff: gives ff errors on revsion 13780

In file included from platform.c:48: /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:455: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:460: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:463: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:466: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:469: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:472: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:491: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:497: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:500: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:503: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:508: error: expected ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:512: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/leandroong/optware/ddwrt/toolchain/mipsel-linux-uclibc/gcc-4.1.1-uclibc-0.9.28/lib/gcc/mipsel-linux-uclibc/4.1.1/../../../../mipsel-linux-uclibc/sys-include/pthread.h:516: error: expected ‘)’ before ‘*’ token make[2]: * [platform.o] Error 1 make[2]: Leaving directory `/home/leandroong/optware/ddwrt/builds/transmission/libtransmission' make[1]: * [all-recursive] Error 1

Last edited 9 years ago by leandroong (previous) (diff)

comment:59 Changed 9 years ago by leandroong

I will shift alternate cross compile environment, will change from nslu2 toolchain to entware buildroot.Will let you know if I do it successfully here.

comment:60 Changed 9 years ago by leandroong

Solved. Entware buildroot create transmission repository without error in compilation. Please, let me know also if you come-up with a solution for NSLU2 toolchain compilation. Note, both of them have different architecture.

comment:61 Changed 9 years ago by leandroong

Transmission Source Code: 1.)via trunk, https://build.transmissionbt.com/job/trunk-linux/ 2.)via SVN,

svn co -r $TRANSMISSION_SVN_REV $TRANSMISSION_SVN $TRANSMISSION_DIR

compilation result:

  1. successful
  2. always Failure.

Note: I'm using entware buildroot to cross compile for both. What could be the explanation for svn to compile as failure. Please investigate. Will try to compile source from 1 using NSLU2 toolchain to see if I get success. Will report back

Result: There is also problem, both for NSLU2 toolchain for cross compile. But, they yield different errors. Weird... Anyway, my compilation issue is resolved. Thanks for all the assistance...

Last edited 9 years ago by leandroong (previous) (diff)

comment:62 Changed 9 years ago by livings124

leandroong: should this ticket be closed?

comment:63 Changed 9 years ago by leandroong

yes.

comment:64 Changed 9 years ago by livings124

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.