ports/148990: [patch] graphics/OpenEXR: fix for gcc45 build

Anonymous swell.k at gmail.com
Tue Jul 27 10:10:04 UTC 2010


>Number:         148990
>Category:       ports
>Synopsis:       [patch] graphics/OpenEXR: fix for gcc45 build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 10:10:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
  $ make CC=gcc45 CXX=g++45
  ...
  gmake[1]: Entering directory `/a/pkgbuild/a/freebsd-ports/graphics/OpenEXR/work/openexr-1.6.1/exrmaketiled'
  if g++45 -DHAVE_CONFIG_H -I. -I. -I../config -I.. -I../IlmImf -I../config -D_THREAD_SAFE -I/usr/pkg/include/OpenEXR     -pipe -O2 -pipe -O3 -ggdb -fstack-protector -march=native -fno-strict-aliasing -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \
          then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
  main.cpp: In function 'int main(int, char**)':
  main.cpp:213:28: error: 'strcmp' was not declared in this scope
  gmake[1]: *** [main.o] Error 1
  if c++ -DHAVE_CONFIG_H -I. -I. -I../config -I.. -I../IlmImf -I../config -D_THREAD_SAFE -I/usr/pkg/include/OpenEXR     -pipe -O2 -pipe -O3 -ggdb -fstack-protector -march=native -fno-strict-aliasing -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \
          then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
  main.cpp: In function 'int main(int, char**)':
  main.cpp:195:28: error: 'strcmp' was not declared in this scope
  gmake[1]: *** [main.o] Error 1
>Fix:
--- a.diff begins here ---
Index: graphics/OpenEXR/files/patch-exrenvmap-main.cpp
===================================================================
RCS file: graphics/OpenEXR/files/patch-exrenvmap-main.cpp
diff -N graphics/OpenEXR/files/patch-exrenvmap-main.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/OpenEXR/files/patch-exrenvmap-main.cpp	27 Jul 2010 10:01:29 -0000
@@ -0,0 +1,10 @@
+--- exrenvmap/main.cpp~
++++ exrenvmap/main.cpp
+@@ -43,6 +43,7 @@
+ #include <makeLatLongMap.h>
+ #include <ImfEnvmap.h>
+ #include <iostream>
++#include <cstring>
+ #include <exception>
+ #include <stdlib.h>
+ 
Index: graphics/OpenEXR/files/patch-exrmaketiled-main.cpp
===================================================================
RCS file: graphics/OpenEXR/files/patch-exrmaketiled-main.cpp
diff -N graphics/OpenEXR/files/patch-exrmaketiled-main.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/OpenEXR/files/patch-exrmaketiled-main.cpp	27 Jul 2010 09:59:10 -0000
@@ -0,0 +1,10 @@
+--- exrmaketiled/main.cpp~
++++ exrmaketiled/main.cpp
+@@ -44,6 +44,7 @@
+ 
+ #include <iostream>
+ #include <exception>
++#include <cstring>
+ #include <string>
+ #include <stdlib.h>
+ 
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list