To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62715
                  Issue #:|62715
                  Summary:|connectivity: undefined functions from stdio.h when
                          |compiling kab/KDriver.cxx
                Component:|Database access
                  Version:|OOo 2.0.2
                 Platform:|PowerPC
                      URL:|
               OS/Version:|Linux
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|none
              Assigned to:|dbaneedsconfirm
              Reported by:|pmladek





------- Additional comments from [EMAIL PROTECTED] Thu Mar  2 06:21:23 -0800 
2006 -------
I got this build error when compiling OOB680_m3 sources on Linux/ppc:

-- cut ---
g++ -fsigned-char -fmessage-length=0 -c -I.  -I. -I../inc -I../../inc
-I../../../inc -I../../../unx/inc -I../../../unxlngppc.pro/inc -I.
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solver/680/unxlngppc.pro/inc/stl
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solver/680/unxlgppc.pro/inc/external
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solver/680/unxlngppc.pro/inc
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solenv/unxlngppc/inc
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solenv/inc
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/res
-I/usr/src/packages/BUILD/
ooo-build-oob680.3.0/build/oob680-m3/solver/680/unxlngppc.pro/inc/stl
-I/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/solenv/inc/Xp31
-INO_JAVA_HOME/include -INO_JAVA_HOME/include/linux
-INO_JAVA_HOME/include/native_threads/include -I/usr/X11R6/include     -I. -I
../../../res -I. -O2 -fno-strict-aliasing   -I/usr/lib/qt3/include
-I/opt/kde3/include -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT -fsigned-char -pipe
-frtti -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fno-strict-aliasing
-Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs   -fPIC -DLINUX -DUNX
-DVCL -DGCC -DC300 -DPOWERPC -DCVER=C300 -D_USE_NAMESPACE
 -DNPTL -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1
-DSTLPORT_VERSION=400 -DPOWERPC -DPPC -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE
-DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.1.0 -DSUPD=680
-DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON
-DCUI -DOOB680=OOB680   -DSHAREDLIB -D_DLL_  -DMULTITHREAD  -o
../../../unxlngppc.pro/slo/KDriver.o /usr/src
/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/connectivity/source/drivers/kab/KDriver.cxx
[...]
/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/connectivity/source/drivers/kab/KDriver.cxx:
In member function ‘bool
connectivity::kab::KabImplModule::impl_doAllowNewKDEVersion()’:
/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/connectivity/source/drivers/kab/KDriver.cxx:223:
error: ‘stderr’ was not declared in this scope
/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/connectivity/source/drivers/kab/KDriver.cxx:223:
error: ‘fprintf’ was not declared in this scope
/usr/src/packages/BUILD/ooo-build-oob680.3.0/build/oob680-m3/connectivity/source/drivers/kab/KDriver.cxx:224:
error: ‘fflush’ was not declared in this scope
dmake:  Error code 1, while making '../../../unxlngppc.pro/slo/KDriver.obj'
--- cut ---

I used:
--- cut ---
jet:/usr/src/packages/SOURCES# gcc --version
gcc (GCC) 4.1.0 20060218 (prerelease) (SUSE Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--- cut ---

It was compiled on SUSE Linux 10.1-beta5.

It helped to add #include <stdio.h>, see the attached patch.

Another solution would be to remove the error message printed by printf.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to