Subject: [zoularis] lang/gcc
To: None <tech-pkg@netbsd.org>
From: Manuel VACELET <manuel.vacelet@st.com>
List: tech-pkg
Date: 09/10/2002 15:21:57
This is a multi-part message in MIME format.
--------------080705040505080705090503
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello, I'm working with zoularis on Solaris 7 & 8 and I have some
problems with the bsd includes.
(p.j) Exemple, with gcc

I solve the problem with moving bsd includes in another directory
(bsd_include) and when software need bsd includes I add the directory in
CFLAGS with -I.

Have you another solution ?

-- 
+---------------------+-----------------------------+
| VACELET Manuel      | manuel.vacelet(a)st.com     |
| STMicroelectronics  | Central R&D DAIS            |
| 850, rue Jean Monet | 38926 CROLLES CEDEX - FRANCE|
+---------------------+-----------------------------+



--------------080705040505080705090503
Content-Type: text/plain;
 name="gcc.error"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="gcc.error"

$> make
( ... snip ...)
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb
_shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/objdir/gcc/xgcc -B/local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/objdir/gcc/ -B/project/flexware/users/vm16/sparc-solaris-8/sparc-sun-solaris/bin/ -I/project/flexware/users/vm16/sparc-solaris-8/sparc-sun-solaris/include -O2   -DIN_GCC -DHAIFA  -DSVR4  -O2 -I./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I/local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc -I/local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/config -I/local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/../include -c -DL${name} \
       /local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
In file included from /project/flexware/users/vm16/sparc-solaris-8/include/native/sys/types.h:36,
                 from /project/flexware/users/vm16/sparc-solaris-8/include/sys/types.h:171,
                 from /project/flexware/users/vm16/sparc-solaris-8/include/stdlib.h:67,
                 from /local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/libgcc2.c:41:
/project/flexware/users/vm16/sparc-solaris-8/include/sys/int_types.h:48: warning: redefinition of `uint64_t'
/project/flexware/users/vm16/sparc-solaris-8/include/native/sys/int_types.h:85: warning: `uint64_t' previously declared here
/project/flexware/users/vm16/sparc-solaris-8/include/sys/int_types.h:49: warning: redefinition of `int64_t'
/project/flexware/users/vm16/sparc-solaris-8/include/native/sys/int_types.h:74: warning: `int64_t' previously declared here
In file included from /local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/libgcc2.c:43:
/project/flexware/users/vm16/sparc-solaris-8/include/unistd.h:75: conflicting types for `swab'
/project/flexware/users/vm16/sparc-solaris-8/include/native/stdlib.h:144: previous declaration of `swab'
/project/flexware/users/vm16/sparc-solaris-8/include/unistd.h:98: conflicting types for `rresvport_af'
/project/flexware/users/vm16/sparc-solaris-8/include/native/netdb.h:289: previous declaration of `rresvport_af'
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/local/vm16/curr-wb/build/pkgsrc/lang/gcc/work/objdir/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2
--------------080705040505080705090503--