troosh / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

[PATCH] Doesn't build on FreeBSD #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make

What is the expected output?
make succeeds

What do you see instead?
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/local/include 
-I/home/vlcbbot/funman/vlc/contrib/i386-undermydesk-freebsd/include -Wall -O3 
-ffast-math -std=c99 -DOPJ_STATIC -I.. -I. -c bio.c  -fPIC -DPIC -o bio.o
In file included from opj_malloc.h:89,
                 from opj_includes.h:108,
                 from bio.c:32:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by 
<stdlib.h>"
gmake[2]: *** [bio.lo] Error 1

What version of the product are you using?
1.4-r697
On what operating system?
FreeBSD8

Please provide any additional information below.

FreeBSD has posix_memalign() not memalign()

patch fixing the problem for trunk attached
another patch mentioning autoconf attached too

Original issue reported on code.google.com by rafael.c...@gmail.com on 27 Jan 2012 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
hi rafael,

could you check it the problem persists with the latest revision of 
openjpeg-1.5 branch ? 

=> svn checkout http://openjpeg.googlecode.com/svn/branches/openjpeg-1.5 
openjpeg-1.5

thanks,

Antonin

Original comment by anto...@gmail.com on 28 Jan 2012 at 6:59

GoogleCodeExporter commented 9 years ago
It does

Original comment by rafael.c...@gmail.com on 28 Jan 2012 at 8:22

GoogleCodeExporter commented 9 years ago
any update?

patching 1.5 should be trivial

Original comment by rafael.c...@gmail.com on 3 Feb 2012 at 8:54

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1693.

Original comment by mathieu.malaterre on 29 May 2012 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 29 May 2012 at 3:13