I was wondering if someone would be able to assist me.

Platform: SPARC Solaris 2.6
Compiler: g++ 2.95.2
ColdFusion 4.5ish (I'm uncertain which specific version this is - if
that is relevant I can track it down).

I'm trying to figure out how to get the example CFX working under Solaris.
When I create the .so file as explained in the Makefile, using the original
C++ code and Makefile, it results in the server crashing with almost no
info as to why (some threading info, but that's about all).

The other problem I am having is this.  I am _really_ trying to modify the
example so that I can return the owner and group of a file, along with
the existing attributes that the tag returns.

However, I can't even get that to compile.  I keep getting these errors.

I sure wish this was all in C instead of C++ ...

g++  -I/opt/coldfusion/cfx/include -D_POSIX_PTHREAD_SEMANTICS "-ansi 
-Wstrict-prototypes -Wmissing-prototypes -fno-common -pedantic-errors -g -Wall 
-Wtraditional -Wshadow -Wwrite-strings -Wpointer-arith -Wbad-function-cast 
-Wcast-align -Wcast-qual -Wconversion " -c request.cc
request.cc: In function `void ProcessTagRequest(CCFXRequest *)':
request.cc:89: assignment to `dirent *' from `int' lacks a cast
In file included from request.cc:136:
/usr/include/pwd.h:28: parse error before string constant
/usr/include/pwd.h:151: cannot declare static function inside another function
/usr/include/pwd.h:151: parse error before `{'
/usr/include/pwd.h:154: `__uid' undeclared (first use this function)
/usr/include/pwd.h:154: (Each undeclared identifier is reported only once
/usr/include/pwd.h:154: for each function it appears in.)
/usr/include/pwd.h:154: `__pwd' undeclared (first use this function)
/usr/include/pwd.h:154: `__buf' undeclared (first use this function)
/usr/include/pwd.h:154: `__len' undeclared (first use this function)
/usr/include/pwd.h:154: `__res' undeclared (first use this function)
/usr/include/pwd.h:154: implicit declaration of function `int __posix_getpwuid_r(...)'
/usr/include/pwd.h:159: cannot declare static function inside another function
/usr/include/pwd.h:159: parse error before `{'
/usr/include/pwd.h:162: `__cb' undeclared (first use this function)
/usr/include/pwd.h:162: implicit declaration of function `int __posix_getpwnam_r(...)'
/usr/include/pwd.h:220: parse error before `}'
request.cc: At top level:
request.cc:137: aggregate `struct passwd uidst' has incomplete type and cannot be 
initialized
request.cc:139: ANSI C++ forbids declaration `uidstp' with no type
request.cc:139: conflicting types for `int uidstp'
request.cc:137: previous declaration as `struct passwd * uidstp'
request.cc:139: `StatBuf' was not declared in this scope
request.cc:139: confused by earlier errors, bailing out
gmake: *** [request.o] Error 1
-- 
Never apply a Star Trek solution to a Babylon 5 problem.
Larry W. Virden <mailto:[EMAIL PROTECTED]> <URL: http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to