Page 1 of 1

unable to build on OpenBSD

Posted: 2015-05-14T11:06:32-07:00
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)

Re: unable to build on OpenBSD

Posted: 2015-05-14T13:01:46-07:00
by magick
Download http://magick.imagemagick.org/download/ ... -3.tar.bz2 in about 30 minutes. Does it build for you?

Re: unable to build on OpenBSD

Posted: 2015-05-14T13:23:09-07:00
by brad0
No, the error is the same.

Re: unable to build on OpenBSD

Posted: 2015-05-14T14:05:49-07:00
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.

Re: unable to build on OpenBSD

Posted: 2015-05-14T14:30:23-07:00
by brad0
You are correct. Building... looks like it is getting much further. Still going.

Re: unable to build on OpenBSD

Posted: 2015-05-14T15:30:06-07:00
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)

Re: unable to build on OpenBSD

Posted: 2015-05-14T16:34:46-07:00
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.

Re: unable to build on OpenBSD

Posted: 2015-05-15T19:00:46-07:00
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}"`

Re: unable to build on OpenBSD

Posted: 2015-05-23T14:02:58-07:00
by brad0
Looks like some make bits that only work on GNU make have snuck in somewhere along the way.