From: Greg Rivers on
The deskutils/calibre port fails to build on both 7.2-STABLE and
8.0-STABLE i386:

# portinstall -cv calibre
---> Session started at: Thu, 10 Dec 2009 22:45:09 -0600
[Gathering depends for deskutils/calibre ..........[snip]............ done]
---> Fresh installation of deskutils/calibre started at: Thu, 10 Dec 2009 22:47:57 -0600
---> Installing 'calibre-0.6.18' from a port (deskutils/calibre)
---> Build of deskutils/calibre started at: Thu, 10 Dec 2009 22:48:00 -0600
---> Building '/usr/ports/deskutils/calibre'
===> Cleaning for calibre-0.6.18
===> Vulnerability check disabled, database not found
===> Found saved configuration for calibre-0.6.18
=> calibre-0.6.18.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://calibre.kovidgoyal.net/downloads/.
fetch: http://calibre.kovidgoyal.net/downloads/calibre-0.6.18.tar.gz: Moved Permanently
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
calibre-0.6.18.tar.gz 100% of 9 MB 831 kBps 00m00s
===> Extracting for calibre-0.6.18
=> MD5 Checksum OK for calibre-0.6.18.tar.gz.
=> SHA256 Checksum OK for calibre-0.6.18.tar.gz.
===> Patching for calibre-0.6.18
===> Applying FreeBSD patches for calibre-0.6.18
===> calibre-0.6.18 depends on package: py*-setuptools>=0 - found
===> calibre-0.6.18 depends on package: py*-sip>=0 - found
===> calibre-0.6.18 depends on package: py*-qt4-core>=0 - found
===> calibre-0.6.18 depends on package: py*-qt4-gui>=0 - found
===> calibre-0.6.18 depends on file: /usr/local/bin/python2.6 - found
===> calibre-0.6.18 depends on package: qt4-qmake>=4.5.3 - found
===> calibre-0.6.18 depends on package: qt4-moc>=4.5.3 - found
===> calibre-0.6.18 depends on shared library: MagickWand.2 - found
===> calibre-0.6.18 depends on shared library: fontconfig.1 - found
===> calibre-0.6.18 depends on shared library: poppler-qt4.3 - found
===> calibre-0.6.18 depends on shared library: wmflite - found
===> calibre-0.6.18 depends on shared library: podofo - found
===> calibre-0.6.18 depends on shared library: intl - found
===> Configuring for calibre-0.6.18
===> Building for calibre-0.6.18

*
* Running build
*


####### Building extension pdfreflow #######
c++ -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -pthread -I/usr/local/include/python2.6 -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/images.cpp -o /usr/ports/deskutils/calibre/work/calibre/build/objects/pdfreflow/images.o
c++ -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -pthread -I/usr/local/include/python2.6 -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/main.cpp -o /usr/ports/deskutils/calibre/work/calibre/build/objects/pdfreflow/main.o
c++ -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -pthread -I/usr/local/include/python2.6 -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/links.cpp -o /usr/ports/deskutils/calibre/work/calibre/build/objects/pdfreflow/links.o
c++ -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -fPIC -O2 -pipe -march=prescott -I/usr/local/include -fno-strict-aliasing -pthread -I/usr/local/include/python2.6 -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/reflow.cpp -o /usr/ports/deskutils/calibre/work/calibre/build/objects/pdfreflow/reflow.o
/usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/reflow.cpp: In member function 'virtual void calibre_reflow::XMLOutputDev::drawImageMask(GfxState*, Object*, Stream*, int, int, GBool, GBool, GBool)':
/usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/reflow.cpp:672: error: no matching function for call to 'calibre_reflow::XMLOutputDev::drawImageMask(GfxState*&, Object*&, Stream*&, int&, int&, GBool&, GBool&)'
/usr/local/include/poppler/OutputDev.h:238: note: candidates are: virtual void OutputDev::drawImageMask(GfxState*, Object*, Stream*, int, int, GBool, GBool, GBool)
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/usr/ports/deskutils/calibre/work/calibre/setup/__init__.py", line 159, in run_all
self.run_cmd(self, opts)
File "/usr/ports/deskutils/calibre/work/calibre/setup/__init__.py", line 155, in run_cmd
cmd.run(opts)
File "/usr/ports/deskutils/calibre/work/calibre/setup/extensions.py", line 242, in run
self.build(ext, dest)
File "/usr/ports/deskutils/calibre/work/calibre/setup/extensions.py", line 279, in build
subprocess.check_call(cmd)
File "/usr/local/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c++', '-O2', '-pipe', '-march=prescott', '-I/usr/local/include', '-fno-strict-aliasing', '-fPIC', '-O2', '-pipe', '-march=prescott', '-I/usr/local/include', '-fno-strict-aliasing', '-pthread', '-I/usr/local/include/python2.6', '-I/usr/local/include/poppler', '-I/usr/local/include/ImageMagick', '-I/usr/include', '-c', '/usr/ports/deskutils/calibre/work/calibre/src/calibre/ebooks/pdf/reflow.cpp', '-o', '/usr/ports/deskutils/calibre/work/calibre/build/objects/pdfreflow/reflow.o']' returned non-zero exit status 1
*** Error code 1

Stop in /usr/ports/deskutils/calibre.
*** Error code 1

Stop in /usr/ports/deskutils/calibre.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20091210-39614-1tmwjsx-0 env make
** Fix the problem and try again.
---> Build of deskutils/calibre ended at: Thu, 10 Dec 2009 22:48:44 -0600 (consumed 00:00:44)
---> Fresh installation of deskutils/calibre ended at: Thu, 10 Dec 2009 22:48:44 -0600 (consumed 00:00:46)
---> ** Install tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
! deskutils/calibre (bad C++ code)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
---> Session ended at: Thu, 10 Dec 2009 22:48:44 -0600 (consumed 00:03:34)
#

Any suggestions?

--
Greg Rivers
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Stanislav Sedov on
On Fri, 11 Dec 2009 16:29:02 -0600 (CST)
Greg Rivers <gcr+freebsd-ports(a)tharned.org> mentioned:

> The deskutils/calibre port fails to build on both 7.2-STABLE and
> 8.0-STABLE i386:
>

This was caused by recent gnome update.
Try the latest version of the port (I just fixed and updated it).

--
Stanislav Sedov
ST4096-RIPE
From: Greg Rivers on
On Mon, 14 Dec 2009, Stanislav Sedov wrote:

> On Fri, 11 Dec 2009 16:29:02 -0600 (CST)
> Greg Rivers <gcr+freebsd-ports(a)tharned.org> mentioned:
>
>> The deskutils/calibre port fails to build on both 7.2-STABLE and
>> 8.0-STABLE i386:
>>
>
> This was caused by recent gnome update.
> Try the latest version of the port (I just fixed and updated it).
>

Thank you very much! The port now builds and runs great.

You may want to check the distfile; I had to locate and fetch it
(calibre-0.6.27.tar.gz) manually, as it is not on the FreeBSD FTP site,
and the preferred googlecode.com site seems to have already moved onto
version 28.

--
Greg Rivers
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"