Cygwin에서 CUPS 컴파일이 실패함

Cygwin에서 CUPS 컴파일이 실패함

저는 32비트 Cygwin 환경에서 CUPS를 컴파일하기 위해 용감한 시도를 했습니다. 저는 tarball의 표준 소스를 사용했습니다.

링크까지 모든 것이 순조롭게 진행됩니다.

http://pastebin.com/QSKvLSmT

대본의 끝은 다음과 같습니다.

Compiling raster.c...
raster.c:1: warning: -fPIC ignored for target (all code is position independent)
Linking libcupsimage.so.2...
../cups/libcups.a(file.o): In function `cupsFileRewind':
/opt/cups/cups-1.4.8/cups/file.c:1465: undefined reference to `_inflateEnd'
../cups/libcups.a(file.o): In function `cups_fill':
/opt/cups/cups-1.4.8/cups/file.c:2096: undefined reference to `_crc32'
/opt/cups/cups-1.4.8/cups/file.c:2098: undefined reference to `_inflateInit2_'
/opt/cups/cups-1.4.8/cups/file.c:2133: undefined reference to `_inflate'
/opt/cups/cups-1.4.8/cups/file.c:2136: undefined reference to `_crc32'
../cups/libcups.a(file.o): In function `cupsFileSeek':
/opt/cups/cups-1.4.8/cups/file.c:1569: undefined reference to `_inflateEnd'
../cups/libcups.a(file.o): In function `cups_compress':
/opt/cups/cups-1.4.8/cups/file.c:1873: undefined reference to `_crc32'
/opt/cups/cups-1.4.8/cups/file.c:1900: undefined reference to `_deflate'
../cups/libcups.a(file.o): In function `cupsFileOpenFd':
/opt/cups/cups-1.4.8/cups/file.c:996: undefined reference to `_deflateInit2_'
/opt/cups/cups-1.4.8/cups/file.c:1002: undefined reference to `_crc32'
../cups/libcups.a(file.o): In function `cupsFileClose':
/opt/cups/cups-1.4.8/cups/file.c:121: undefined reference to `_inflateEnd'
/opt/cups/cups-1.4.8/cups/file.c:150: undefined reference to `_deflate'
/opt/cups/cups-1.4.8/cups/file.c:174: undefined reference to `_deflateEnd'
collect2: ld returned 1 exit status
Makefile:331: recipe for target `libcupsimage.so.2' failed
make[1]: *** [libcupsimage.so.2] Error 1
Makefile:34: recipe for target `all' failed
make: *** [all] Error 1

무엇을 해야 할까요?

답변1

보세요컵 포트존재하다cygwin-ports, 2011년 1월 30일 현재 버전 1.4.6을 제공합니다.

그것패치가 꽤 많네요...

관련 정보