php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56778 sdo fails to compile on FreeBSD (gcc 2.95.4)
Submitted: 2006-01-17 14:51 UTC Modified: 2006-10-30 06:31 UTC
From: zaa at zaa dot pp dot ru Assigned: cem (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5.1.1 OS: FreeBSD 4.11-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zaa at zaa dot pp dot ru
New email:
PHP Version: OS:

 

 [2006-01-17 14:51 UTC] zaa at zaa dot pp dot ru
Description:
------------
orion:...dev/sdo-0.7.1> uname -mrs
FreeBSD 4.11-STABLE i386

orion:...dev/sdo-0.7.1> g++ -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

orion:...dev/sdo-0.7.1> php -v
PHP 5.1.1 (cli) (built: Dec 15 2005 04:11:47)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies

orion:...dev/sdo-0.7.1> phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
orion:...dev/sdo-0.7.1> ./configure 
[ skipped ]
orion:...dev/sdo-0.7.1> make
/bin/bash /u/zaa/dev/sdo-0.7.1/libtool --mode=compile g++ -I/u/zaa/dev/sdo-0.7.1 -I. -I/u/zaa/dev/sdo-0.7.1 -DPHP_ATOM_INC -I/u/zaa/dev/sdo-0.7.1/include -I/u/zaa/dev/sdo-0.7.1/main -I/u/zaa/dev/sdo-0.7.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include  -DHAVE_CONFIG_H     -c /u/zaa/dev/sdo-0.7.1/sdo.cpp -o sdo.lo
mkdir .libs
 g++ -I/u/zaa/dev/sdo-0.7.1 -I. -I/u/zaa/dev/sdo-0.7.1 -DPHP_ATOM_INC -I/u/zaa/dev/sdo-0.7.1/include -I/u/zaa/dev/sdo-0.7.1/main -I/u/zaa/dev/sdo-0.7.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -c /u/zaa/dev/sdo-0.7.1/sdo.cpp  -fPIC -DPIC -o .libs/sdo.o
In file included from /u/zaa/dev/sdo-0.7.1/sdo.cpp:42:
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: `ostringstream' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: `print_buf' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: syntax error before `*'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: warning: `sdo_model_type_summary_string' initialized and declared `extern'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: variable or field `sdo_model_type_summary_string' declared void
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:119: initializer list being treated as compound expression
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: `ostringstream' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: `print_buf' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: syntax error before `*'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: warning: `sdo_model_type_string' initialized and declared `extern'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: variable or field `sdo_model_type_string' declared void
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:120: initializer list being treated as compound expression
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: `ostringstream' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: `print_buf' was not declared in this scope
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: syntax error before `*'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: warning: `sdo_model_property_string' initialized and declared `extern'
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: variable or field `sdo_model_property_string' declared void
/u/zaa/dev/sdo-0.7.1/php_sdo_int.h:124: initializer list being treated as compound expression
*** Error code 1

Stop in /usr/home/zaa/dev/sdo-0.7.1.
Выход 1



Does SDO require special gcc version/etc?
Please let me know if I can be of any assistance.

Thank you.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-19 06:16 UTC] cem@php.net
These are rather old versions. Investigating to see if we can accommodate them.
 [2006-01-24 16:36 UTC] zaa at zaa dot pp dot ru
I've managed to compile the sdo package on FreeBSD 4.11 (gcc 2.95.4).
The list of changes I had to apply is provided below.

diff -urbBN sdo-0.7.1/commonj/sdo/DataFactoryImpl.cpp sdo/commonj/sdo/DataFactoryImpl.cpp
--- sdo-0.7.1/commonj/sdo/DataFactoryImpl.cpp   Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/DataFactoryImpl.cpp Thu Jan 19 16:56:25 2006
@@ -32,6 +32,7 @@
 #include "commonj/sdo/PropertyList.h"

 #include <iostream>
+#include <stdio.h>


 using namespace std;
diff -urbBN sdo-0.7.1/commonj/sdo/DataObjectImpl.cpp sdo/commonj/sdo/DataObjectImpl.cpp
--- sdo-0.7.1/commonj/sdo/DataObjectImpl.cpp    Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/DataObjectImpl.cpp  Thu Jan 19 16:57:31 2006
@@ -40,6 +40,8 @@
 #include "commonj/sdo/DataFactoryImpl.h"

 #include <string>
+#include <stdio.h>
+
 using std::string;


diff -urbBN sdo-0.7.1/commonj/sdo/DataObjectListImpl.cpp sdo/commonj/sdo/DataObjectListImpl.cpp
--- sdo-0.7.1/commonj/sdo/DataObjectListImpl.cpp        Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/DataObjectListImpl.cpp      Thu Jan 19 16:57:58 2006
@@ -29,6 +29,7 @@
 #include "commonj/sdo/DataFactory.h"
 #include "commonj/sdo/DataObjectImpl.h"
 #include "commonj/sdo/DataFactoryImpl.h"
+#include <stdio.h>

 namespace commonj{
 namespace sdo {
diff -urbBN sdo-0.7.1/commonj/sdo/Logger.cpp sdo/commonj/sdo/Logger.cpp
--- sdo-0.7.1/commonj/sdo/Logger.cpp    Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/Logger.cpp  Thu Jan 19 16:58:29 2006
@@ -21,6 +21,7 @@
 #include <iostream>
 #include <stdarg.h>
 #include "commonj/sdo/DefaultLogWriter.h"
+#include <stdio.h>

 using namespace std;

diff -urbBN sdo-0.7.1/commonj/sdo/SDORuntimeException.cpp sdo/commonj/sdo/SDORuntimeException.cpp
--- sdo-0.7.1/commonj/sdo/SDORuntimeException.cpp       Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/SDORuntimeException.cpp     Thu Jan 19 16:59:17 2006
@@ -18,6 +18,7 @@
 /* $Rev$ $Date: 2006/01/17 09:41:27 $ */

 #include "commonj/sdo/SDORuntimeException.h"
+#include <stdio.h>

 // ========================================================================
 // Constructor
diff -urbBN sdo-0.7.1/commonj/sdo/SDOSchemaSAX2Parser.cpp sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp
--- sdo-0.7.1/commonj/sdo/SDOSchemaSAX2Parser.cpp       Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp     Thu Jan 19 17:00:02 2006
@@ -22,6 +22,7 @@
 #include "commonj/sdo/XSDTypeInfo.h"
 #include "commonj/sdo/SDORuntimeException.h"
 #include "commonj/sdo/Logging.h"
+#include <stdio.h>

 namespace commonj
 {
diff -urbBN sdo-0.7.1/commonj/sdo/SDOXMLString.cpp sdo/commonj/sdo/SDOXMLString.cpp
--- sdo-0.7.1/commonj/sdo/SDOXMLString.cpp      Tue Jan 17 12:41:27 2006
+++ sdo/commonj/sdo/SDOXMLString.cpp    Thu Jan 19 17:00:50 2006
@@ -20,6 +20,7 @@
 #include "commonj/sdo/SDOXMLString.h"
 #include <iostream>
 #include "libxml/globals.h"
+#include <ctype.h>

 namespace commonj
 {
diff -urbBN sdo-0.7.1/commonj/sdo/SdoRuntime.cpp sdo/commonj/sdo/SdoRuntime.cpp
--- sdo-0.7.1/commonj/sdo/SdoRuntime.cpp        Tue Jan 17 12:41:28 2006
+++ sdo/commonj/sdo/SdoRuntime.cpp      Thu Jan 19 16:58:56 2006
@@ -19,6 +19,7 @@

 #include "commonj/sdo/SdoRuntime.h"
 #include <iostream>
+#include <stdio.h>

 namespace commonj{
 namespace sdo{
diff -urbBN sdo-0.7.1/commonj/sdo/TypeImpl.cpp sdo/commonj/sdo/TypeImpl.cpp
--- sdo-0.7.1/commonj/sdo/TypeImpl.cpp  Tue Jan 17 12:41:28 2006
+++ sdo/commonj/sdo/TypeImpl.cpp        Sat Jan 21 14:07:53 2006
@@ -17,12 +17,19 @@

 /* $Rev$ $Date: 2006/01/17 09:41:28 $ */

+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "commonj/sdo/Logger.h"

 #include "commonj/sdo/PropertyImpl.h"
 #include "commonj/sdo/TypeImpl.h"

 #include <iostream>
+#include <wchar.h>
+#include <stdio.h>
+
 using namespace std;

 #include <list>
@@ -1729,7 +1736,7 @@
 #if defined(WIN32)  || defined (_WINDOWS)
                 swprintf((wchar_t*)outval,fmt,*(long double*)value);
 #else
-#if defined(NO_SWPRINTF)
+#ifndef HAVE_SWPRINTF
                 {
                 int k;
                 char *tmpbuf = new char[50];
@@ -1764,7 +1771,7 @@
 #if defined(WIN32)  || defined (_WINDOWS)
                 swprintf(outval,fmt,*(float*)value);
 #else
-#if defined(NO_SWPRINTF)
+#ifndef HAVE_SWPRINTF
                 {
                 int k;
                 char *tmpbuf = new char[50];
diff -urbBN sdo-0.7.1/config.m4 sdo/config.m4
--- sdo-0.7.1/config.m4 Fri Dec  2 20:33:47 2005
+++ sdo/config.m4       Sat Jan 21 13:45:22 2006
@@ -19,6 +19,12 @@

 PHP_REQUIRE_CXX()

+PHP_CHECK_FUNC(swprintf)
+if test "$ac_cv_func_swprintf" = "yes"; then
+  AC_DEFINE(HAVE_SWPRINTF, 1, [ ])
+fi
+
+
 dnl This step should not be necessary, but the PHP_REQUIRE_CXX does
 dnl not ensure the use of g++ as the linker, only as the compiler
 CC=g++
diff -urbBN sdo-0.7.1/php_sdo_int.h sdo/php_sdo_int.h
--- sdo-0.7.1/php_sdo_int.h     Tue Jan 17 12:41:27 2006
+++ sdo/php_sdo_int.h   Wed Jan 18 21:42:08 2006
@@ -28,6 +28,8 @@
  */
 #include "php_sdo.h"

+#include <sstream>
+
 #include "commonj/sdo/SDOSPI.h"
 #include "commonj/sdo/xmldas/XMLDAS.h"
 [2006-01-25 12:11 UTC] cem@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Thanks for your help tracking down these problems.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 09:01:29 2024 UTC