- Solaris (SPARC, X86, X64) 자료실 -

순간을 위해 평생을 준비하라.
기회란 언제나 예고 없이 찾아온다 항상 낚싯대를 던져 놓아라.
전혀 기대하지 않았던 곳에서 고기가 잡히리라.




Vote Reply Modify Forward Prev List

  작성자   : 조성환 [ ladmin ] 추천: 5107, 수정: 5, 조회: 14712, 줄수: 130, 분류: Etc.
solaris10 gcc 컴파일 에러
In file included from /usr/include/sys/signal.h:34,
                from /usr/include/signal.h:26,
                from readline.c:50:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
                from readline.c:50:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from readline.c:50:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[2]: *** [readline.o] Error 1
make[2]: Leaving directory `/src/mysql-4.0.22/readline'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/mysql-4.0.22'
make: *** [all] Error 2




< make 실행시 위 에러가 계속나서 썬 사이트에서 문서를 찾아봤습니다.  반드시 이 문서 잘 읽어보시고 적용해주세요...... >

************************************
** gcc-3.3.2-sol10-sparc-local.gz **
************************************

The GNU C compiler and related programs - installs in /usr/local.
This package includes the GNU C, C++, g77, Java, and OBJC compiler suites and support files.
The Gnat ada programs are not included yet.
When needed and the source code supports it, this C compiler can create 64-bit executables via the -m64 flag as well as the usual 32-bit ones.
It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages are installed.
This gcc package requires the installation of libiconv.

Note that this version of gcc was created on build 60 of Solaris 10.
If you are using a higher version, you will need to redo some of the header files. This is done by doing the following steps:


cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools/


(intel x86 일 경우는)

cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/


Put the line SHELL=/bin/sh on the first line of the mkheaders.conf
file.  Then run

./mkheaders

This will correct some files and make the build 60 gcc usable on
higher builds.  I have tested this on build 72 and it works fine.



(이렇게 하고 다시 make 돌리니까 에러없이 잘 넘어갔습니다.)






이해가 잘 안가시는 분들을 위해 다시 정리해 드립니다. ^^


[www:/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools] #   l
총 2772
drwxr-xr-x   3 bin      bin          512 12월 19일  02:06 ./
drwxr-xr-x   4 bin      bin          512 12월 19일  02:06 ../
-rwxr-xr-x   1 bin      bin      1041900 2004년 11월 12일 fix-header*
-rwxr-xr-x   1 bin      bin        12891 2004년 11월 12일 fixinc.sh*
-rwxr-xr-x   1 bin      bin       318098 2004년 11월 12일 fixincl*
-rwxr-xr-x   1 bin      bin        10582 2004년 11월 12일 fixproto*
-rw-r--r--   1 bin      bin          330 2004년 11월 12일 gsyslimits.h
drwxr-xr-x   2 bin      bin          512 12월 19일  02:06 include/
-rwxr-xr-x   1 bin      bin         3149 2004년 11월 12일 mkheaders*
-rw-r--r--   1 bin      bin          164 12월 19일  02:13 mkheaders.conf
-rwxr-xr-x   1 bin      bin          726 2004년 11월 12일 mkinstalldirs*



[www:/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools] #   cat mkheaders.conf
SHELL=/bin/sh
SYSTEM_HEADER_DIR="/usr/include"
OTHER_FIXINCLUDES_DIRS=""
FIXPROTO_DEFINES="-D_XOPEN_SOURCE"
STMP_FIXPROTO="stmp-fixproto"
STMP_FIXINC="stmp-fixinc"



[www:/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools] #   ./mkheaders

fixproto: populating `/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include'
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/evolution-1.4)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/firefox)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/root)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/root/usr)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/root/usr/openwin)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/root/usr/openwin/share)
(No *.h files in /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/include/root/usr/openwin/share/include)

[www:/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools] #   
[www:/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools] #



이상입니다.... 이렇게 하신후 다시 컴파일을 돌려보시면 에러 없이 컴파일 할수 있을겁니다. ^^





이전: Sun Solaris10 x86-x64 APM 설치 가이드 [초강추]
2009/12/19(02:17) from 59.30.129.183
CrazyWWWBoard 2000

Vote Reply Modify Forward Prev List

(c) Nobreak Technologies, Inc.