From [email protected] Thu Mar 21 15:11:03 2013
Anton Shterenlikht <[email protected]> writes:
> In file included from /usr/include/sys/stat.h:99:0,
> from /usr/local/include/fontconfig/fontconfig.h:29,
> from configure:25673:
> /usr/include/sys/time.h:134:17: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h:141:1: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h: In function 'bttosbt':
> /usr/include/sys/time.h:144:12: error: 'sbintime_t' undeclared (first
use in this function)
> /usr/include/sys/time.h:144:12: note: each undeclared identifier is
reported only once for each function it appears in
> /usr/include/sys/time.h:144:23: error: expected ')' before 'bt'
> /usr/include/sys/time.h: At top level:
> /usr/include/sys/time.h:148:9: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h:206:9: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h:216:1: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h: In function 'tstosbt':
> /usr/include/sys/time.h:219:12: error: 'sbintime_t' undeclared (first
use in this function)
> /usr/include/sys/time.h:219:23: error: expected ')' before 'ts'
> /usr/include/sys/time.h: At top level:
> /usr/include/sys/time.h:224:9: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h:234:1: error: unknown type name 'sbintime_t'
> /usr/include/sys/time.h: In function 'tvtosbt':
> /usr/include/sys/time.h:237:12: error: 'sbintime_t' undeclared (first
use in this function)
> /usr/include/sys/time.h:237:23: error: expected ')' before 'tv'
This is common error when headers modified by gcc are not in sync
with those under /usr/include. For example, after
http://svnweb.freebsd.org/changeset/base/247476
make sure you have sbintime_t in sys/types.h copy
$ fgrep sbintime
/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd10.0/4.7.3/include-fixed/sys/types.h
typedef __int64_t sbintime_t;
If you don't have then rebuild lang/gcc47.
Thank you, that helped.
It now fails with:
g++47 -o xptcstubs_ipf64.o -c -fvisibility=hidden -DMOZ_GLUE_IN_PROGRAM
-DMOZILLA_INTERNAL_API -DN
O_NSPR_10_SUPPORT -DEXPORT_XPTC_API -D_IMPL_NS_COM
-I../../../../../../../xpcom/reflect/xptcall/src
/md/unix/../..
-I../../../../../../../xpcom/reflect/xptcall/src/md/unix/../../../../xptinfo/src
-I
../../../../../../../xpcom/reflect/xptcall/src/md/unix -I.
-I../../../../../../dist/include -I/usr
/local/include/nspr -I/usr/local/include/nss -I/usr/local/include/nss/nss
-I/usr/local/include -I/u
sr/local/include -fPIC -isystem/usr/local/include -I/usr/local/include
-Wall -Wpointer-arith -W
overloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body
-Wno-ctor-dtor-privacy -Wno-overl
ength-strings -Wno-invalid-offsetof -Wno-variadic-macros -O2 -pipe
-Wl,-rpath=/usr/local/lib/gcc47
-fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc47 -fno-exceptions
-fno-strict-aliasing -fno-rtti
-ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pipe
-DNDEBUG -DTRIMMED -fno-om
it-frame-pointer -isystem/usr/local/include -I/usr/local/include
-DMOZILLA_CLIENT -include ../..
/../../../../mozilla-config.h -MD -MF .deps/xptcstubs_ipf64.o.pp
/usr/ports/www/firefox/work/mozil
la-release/xpcom/reflect/xptcall/src/md/unix/xptcstubs_ipf64.cpp
In file included from
/usr/ports/www/firefox/work/mozilla-release/xpcom/reflect/xptcall/src/md/unix
/xptcstubs_ipf64.cpp:153:0:
../../../../../../dist/include/xptcstubsdef.inc: In member function 'virtual
nsresult nsXPTCStubBas
e::Stub3(uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t,
uint64_t)':
../../../../../../dist/include/xptcstubsdef.inc:1:1: error: cannot convert
'int' to 'nsresult {aka
tag_nsresult}' in return
../../../../../../dist/include/xptcstubsdef.inc: In member function 'virtual
nsresult nsXPTCStubBas
e::Stub4(uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t,
uint64_t)':
../../../../../../dist/include/xptcstubsdef.inc:2:1: error: cannot convert
'int' to 'nsresult {aka
tag_nsresult}' in return
etc. etc.
../../../../../../dist/include/xptcstubsdef.inc:1:1: error: control reaches end
of non-void functio
n [-Werror=return-type]
cc1plus: some warnings being treated as errors
gmake[8]: *** [xptcstubs_ipf64.o] Error 1
Thanks
Anton
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"