[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] OSX Compile errors (revisited)



OSX only runs in VMWare with some hacked modifications --- not really
appropriate as a test platform. We're using OS X Server.

The current SVN doesn't work with OSX; linking errors abound; but 1.4
compiles as long as you get it to use the right getbyhostname_r()
variant. (I'm not sure how to get it to use the right variant
automatically though.)

We'd be happy to configure an OSX Server that you could SSH into to
fix compilation --- would that be helpful?

-Rizwan

On 1/14/07, Marcel Ruff <mr at marcelruff.info> wrote:
Hi,

thanks for reporting,
i already thought that the OSX compilation is broken
as i made some refactoring at that place and i had
no OSX to test it.
Where can i download OSX? Does it run fine in VmWare?

Could you please send me a patch of the current svn with re-fixed
OSX support? I think it is just taking the wrong gethostbyname_r()
variant now.

Marcel

Rizwan Kassim wrote:
> To ressurrect an old thread...
>
> http://www.xmlblaster.org/mhonarc-xmlBlaster/msg02580.html
> http://www.xmlblaster.org/mhonarc-xmlBlaster/msg02579.html
>
> (I'm using OSX.)
>
> I just wanted to
>
> In an attempt to build the clibrary (required to run the built-in
> tests), I'll run the following:
> sudo ./build -verbose -DCFLAGS=-I/usr/lib/malloc c-delete c-lib
> (adding or removing the DCFLAGS doesn't seem to make a difference)
> (see Exhibit [1])
>
> I'm able to fix it in Release 1.4, by using the suggestion [2], FYI. I
> just wanted to report that it didn't compile out of the box correctly.
>
> I'm not sure what the problem is with SVN latest, so I wanted to call
> attention to that bug as well.
>
>
> [1]
> Release 1.4 gives me:
> c-lib:
>    [mkdir] Created dir: /opt/xmlBlaster/build.tmp/objCD
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
>       [cc] 9 total files to be compiled.
>       [cc] gcc -c -g -fPIC -I/opt/xmlBlaster/build.tmp/src/c
> /opt/xmlBlaster/build.tmp/src/c/util/helper.c
> /opt/xmlBlaster/build.tmp/src/c/socket/XmlBlasterAccessUnparsed.c
> /opt/xmlBlaster/build.tmp/src/c/socket/CallbackServerUnparsed.c
> /opt/xmlBlaster/build.tmp/src/c/socket/XmlBlasterConnectionUnparsed.c
> /opt/xmlBlaster/build.tmp/src/c/util/msgUtil.c
> /opt/xmlBlaster/build.tmp/src/c/socket/xmlBlasterSocket.c
> /opt/xmlBlaster/build.tmp/src/c/util/Properties.c
> /opt/xmlBlaster/build.tmp/src/c/socket/xmlBlasterZlib.c
> /opt/xmlBlaster/build.tmp/src/c/socket/XmlBlasterUnmanaged.c
>       [cc] Starting link
>       [cc] gcc -g -prebind -dynamiclib -o libxmlBlasterClientCD.dylib
> ../build.tmp/objCD/helper.o
> ../build.tmp/objCD/XmlBlasterAccessUnparsed.o
> ../build.tmp/objCD/CallbackServerUnparsed.o
> ../build.tmp/objCD/XmlBlasterConnectionUnparsed.o
> ../build.tmp/objCD/msgUtil.o ../build.tmp/objCD/xmlBlasterSocket.o
> ../build.tmp/objCD/Properties.o ../build.tmp/objCD/xmlBlasterZlib.o
> ../build.tmp/objCD/XmlBlasterUnmanaged.o
>       [cc] ld: warning prebinding disabled because of undefined symbols
>       [cc] ld: Undefined symbols:
>       [cc] _gethostbyname_r
>       [cc] /usr/bin/libtool: internal link edit command failed
>
> SVN latest (15910) gives me :
> c-lib:
>    [mkdir] Created dir: /opt/xmlBlaster-latest/build.tmp/objCD
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
> Property ${LDFLAGS} has not been set
>       [cc] 10 total files to be compiled.
>       [cc] gcc -c -g -fPIC -I/opt/xmlBlaster-latest/build.tmp/src/c
> /opt/xmlBlaster-latest/build.tmp/src/c/util/helper.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterAccessUnparsed.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/CallbackServerUnparsed.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterConnectionUnparsed.c
>
> /opt/xmlBlaster-latest/build.tmp/src/c/util/msgUtil.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/xmlBlasterSocket.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterUnmanagedCE.c
> /opt/xmlBlaster-latest/build.tmp/src/c/util/Properties.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/xmlBlasterZlib.c
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterUnmanaged.c
>       [cc] In file included from
> /opt/xmlBlaster-latest/build.tmp/src/c/util/msgUtil.h:10,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/XmlBlasterAccessUnparsed.h:28,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/XmlBlasterUnmanagedCE.h:29,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterUnmanagedCE.c:13:
>       [cc] /opt/xmlBlaster-latest/build.tmp/src/c/util/helper.h:121:
> error: parse error before '*' token
>       [cc] In file included from
> /opt/xmlBlaster-latest/build.tmp/src/c/util/msgUtil.h:10,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/XmlBlasterAccessUnparsed.h:28,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/XmlBlasterUnmanaged.h:29,
>       [cc]                  from
> /opt/xmlBlaster-latest/build.tmp/src/c/socket/XmlBlasterUnmanaged.c:11:
>       [cc] /opt/xmlBlaster-latest/build.tmp/src/c/util/helper.h:121:
> error: parse error before '*' token
>
> [2]
> Quoted from previous thread : "
> But xmlBlaster still has problems in the ./build process. It seems
> that the __MacOSX__ isn't defined. In order to compile I changed the
>
> #  elif defined(__hpux) /* with gcc 2.8 - 3.4.3 */
> #  else
> #    define HAVE_FUNC_GETHOSTBYNAME_R_6 /* Linux */
> #  endif
> #endif
>
> to
>
> #  elif defined(__hpux) /* with gcc 2.8 - 3.4.3 */
> #  else
> #    define LOCAL_GETHOSTBYNAME_R /* Linux */
> #  endif
> #endif "
> --
> Rizwan Kassim
> http://www.geekymedia.com
>
> "If you have a problem and you think awk(1) is the solution, then you
> have two problems." -David Tilbrook
>
>




--
Rizwan Kassim
Software and Systems Engineer, uWink Interactive Bistro
http://www.geekymedia.com

"If you have a problem and you think awk(1) is the solution, then you
have two problems." -David Tilbrook