unable to build on OpenBSD

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

unable to build on OpenBSD

Post by brad0 »

Hi,

I'm working on trying to update OpenBSD's ancient version of ImageMagick in the ports tree (6.7.7-7) to the latest (6.9.1-2) and ran into an issue compiling the latest and greatest.

Code: Select all

cc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/X11R6/include -I/usr/local/include/libxml2 -I/usr/X11R6/include/freetype2 -O2 -pipe -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -MT magick/magick_libMagickCore_6_Q16_la-locale.lo -MD -MP -MF magick/.deps/magick_libMagickCore_6_Q16_la-locale.Tpo -c magick/locale.c -fPIC -DPIC -o magick/.libs/magick_libMagickCore_6_Q16_la-locale.o
magick/locale.c:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c_locale'
magick/locale.c:122: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AcquireCLocale'
magick/locale.c: In function 'DestroyCLocale':
magick/locale.c:261: error: 'c_locale' undeclared (first use in this function)
magick/locale.c:261: error: (Each undeclared identifier is reported only once
magick/locale.c:261: error: for each function it appears in.)
magick/locale.c:261: error: 'locale_t' undeclared (first use in this function)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: unable to build on OpenBSD

Post by magick »

Download http://magick.imagemagick.org/download/ ... -3.tar.bz2 in about 30 minutes. Does it build for you?
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

Re: unable to build on OpenBSD

Post by brad0 »

No, the error is the same.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: unable to build on OpenBSD

Post by magick »

Check magick/magick-baseconfig.h. Is MAGICKCORE_HAVE_LOCALE_T defined? Or is it missing? If its missing, try downloading the source distribution again.
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

Re: unable to build on OpenBSD

Post by brad0 »

You are correct. Building... looks like it is getting much further. Still going.
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

Re: unable to build on OpenBSD

Post by brad0 »

From the looks of it it is more or less near the end of the build and it errors out with..

Code: Select all

make: don't know how to make magick/ImageMagick-6.Q16.pc (prerequisite of: all-am)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: unable to build on OpenBSD

Post by magick »

Try
  • cd ImageMagick-6.9.1
    make distclean
    ./configure
    make
    make install
Does it still fail? If so, try
  • make -k -i install
    convert -version
We'll try to find an OpenBSD instance to see if we can track down this problem.
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

Re: unable to build on OpenBSD

Post by brad0 »

Code: Select all

$ make -k -i
make  all-am
make: don't know how to make magick/ImageMagick-6.Q16.pc (prerequisite of: all-am)(continuing)
make: don't know how to make magick/MagickCore-6.Q16.pc(continuing)
make: don't know how to make wand/MagickWand-6.Q16.pc(continuing)
make: don't know how to make wand/Wand-6.Q16.pc(continuing)
make: don't know how to make Magick++/lib/Magick++-6.Q16.pc(continuing)
make: don't know how to make Magick++/lib/ImageMagick++-6.Q16.pc(continuing)
Build for all-am aborted
`all-am' not remade because of errors.
$ sudo make -k -i DESTDIR=/tmp install
Password:
make  install-am
make: don't know how to make magick/ImageMagick-6.Q16.pc (prerequisite of: all-am)(continuing)
make: don't know how to make magick/MagickCore-6.Q16.pc(continuing)
make: don't know how to make wand/MagickWand-6.Q16.pc(continuing)
make: don't know how to make wand/Wand-6.Q16.pc(continuing)
make: don't know how to make Magick++/lib/Magick++-6.Q16.pc(continuing)
make: don't know how to make Magick++/lib/ImageMagick++-6.Q16.pc(continuing)
Build for all-am aborted
Build for install-am aborted
`install-am' not remade because of errors.
Also not related to the above issue but I noticed an error near the beginning of the autoconf script
which comes from version.sh.

Code: Select all

date: illegal time format
usage: date [-aju] [-d dst] [-r seconds] [-t minutes_west] [-z output_zone]
            [+format] [[[[[[cc]yy]mm]dd]HH]MM[.SS]]
Which comes from this line..

Code: Select all

PACKAGE_RELEASE_DATE_REPRODUCIBLE=`date +%F -d "${PACKAGE_CHANGE_DATE}"`
brad0
Posts: 6
Joined: 2015-05-14T10:16:59-07:00
Authentication code: 6789

Re: unable to build on OpenBSD

Post by brad0 »

Looks like some make bits that only work on GNU make have snuck in somewhere along the way.
Post Reply