Opened 19 years ago
Closed 19 years ago
#5047 closed defect (fixed)
nhc98 failed to build with Xcode 2.1
Reported by: | richardmueller@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
fix: in src/prelude/BinArray/cLowUnboxedArray.c: exchange the first two lines (include stdlib.h before private include)
same error with sources from http://www.haskell.org/nhc98 (nhc98src-1.18.tar.gz) error output: gcc -c -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_nhc98/work/ nhc98-1.18/include -DHIGH_BYTE_FIRST -I../Binary -o /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_nhc98/work/ nhc98-1.18/targets/powerpc-Darwin8/obj/prelude/BinArray/cLowUnboxedArray.o cLowUnboxedArray.c In file included from /usr/include/ppc/endian.h:107,
from /usr/include/machine/endian.h:30, from /usr/include/sys/wait.h:182, from /usr/include/stdlib.h:64, from cLowUnboxedArray.c:2:
/usr/include/sys/_endian.h:94: error: 'uint32_t' redeclared as different kind of symbol /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/include/stdint.h:44: error: previous declaration of 'uint32_t' was here /usr/include/sys/_endian.h:95: error: parse error before 'uint32_t' /usr/include/sys/_endian.h:95: error: conflicting types for 'uint32_t' /usr/include/sys/_endian.h:94: error: previous declaration of 'uint32_t' was here make[2]: * [/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_nhc98/work/ nhc98-1.18/targets/powerpc-Darwin8/obj/prelude/BinArray/cLowUnboxedArray.o] Error 1 make[1]: * [BinArray.fromC] Error 2 make: * [targets/powerpc-Darwin8/prelude-gcc] Error 2
Change History (2)
comment:1 Changed 19 years ago by gwright@…
Status: | new → assigned |
---|
comment:2 Changed 19 years ago by gwright@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I put your fix in. I also had to make some changes to allow nhc98 to compile when ghc was installed. Seems to work now, so I am closing this bug.
-Greg
I'll put the fix in. I hope it doesn't break the build on Xcode 2.0, though.
-Greg