#62199 closed defect (fixed)
mathgl @2.4.4_4: /export.cpp:187:30: error: use of undeclared identifier 'TRUE'
Reported by: | kencu (Ken) | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | mathgl |
Description
mathgl is not rebuilding after the recent change to libjpeg-turbo:
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_mathgl/mathgl/work/mathgl-2.4.4/src && /opt/local/bin/clang++-mp-9.0 -DMGL_HAVE_GSL2 -DMGL_SRC -DNO_COLOR_ARRAY -Dmgl_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_mathgl/mathgl/work/mathgl-2.4.4/include -I/opt/local/include -F//System/Library/Frameworks -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_mathgl/mathgl/work/mathgl-2.4.4/src/prc -pipe -Os -stdlib=libc++ -DNDEBUG -arch x86_64 -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/mgl.dir/fit.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_mathgl/mathgl/work/mathgl-2.4.4/src/fit.cpp :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_mathgl/mathgl/work/mathgl-2.4.4/src/export.cpp:187:30: error: use of undeclared identifier 'TRUE' :info:build jpeg_start_compress(&cinfo, TRUE); :info:build ^
this is on 10.6.8, building with clang-5.0 or clang-9.0, which may or may not be relevant.
Attachments (1)
Change History (7)
Changed 4 years ago by kencu (Ken)
Attachment: | mathgl-fail-clang9-snowleopard.log added |
---|
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 4 years ago by Schamschula (Marius Schamschula)
It sure does look like a hack! Let me see if this happens on a newer version of macOS.
comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)
It looks like I had a patch file to deal with jpeg, which is no longer needed with libjpeg-turbo. No need to rev bump, as mathgl shouldn't have built correctly for any OS version after the change to libjpeg-turbo.
comment:5 Changed 4 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
well, it seems to go to trouble to make sure TRUE is undefined, before using it later...
That seems weird.
and at other places, it doesn't like to use
TRUE
but seems ok to usetrue
:this all smells like something rather hackish...