Errors compiling apr-1.1.0 with cc task on Solaris 10

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors compiling apr-1.1.0 with cc task on Solaris 10

Chris Williams
I am trying to compile the cvs head version of log4cxx on Solaris 10.  I
grabed the cvs versions of ant-contrib, cpptask, and log4cxx.  I am using
ant 1.6.3 and gcc 3.4.2.  I have attached a sample of the errors I get from
the cc task.  Now when I went in to the lib/apr-1.1.0 directory and did a
make using the files that configure generated, it builds fine.  Is there a
way to a more verbose output from the cc task?  Could log4cxx be configured
to use the make files that apr-1.1.0 generates?

Thanks
Chris

[cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/threadproc/unix/sig
nals.c: In function `apr_signal_thread':
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/threadproc/unix/sig
nals.c:382: error: too many arguments to function `sigwait'
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/network_io/unix/sen
drecv.c: In function `apr_socket_sendfile':
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/network_io/unix/sen
drecv.c:863: warning: cast from pointer to integer of different size
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/network_io/unix/sen
drecv.c:887: warning: cast from pointer to integer of different size
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/groupinfo
.c: In function `apr_gid_name_get':
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/groupinfo
.c:39: error: too many arguments to function `getgrgid_r'
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/groupinfo
.c: In function `apr_gid_get':
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/groupinfo
.c:58: error: too many arguments to function `getgrnam_r'
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/userinfo.
c: In function `getpwnam_safe':
       [cc]
/export/disk10/cppProjects/logging-log4cxx/lib/apr-1.1.0/user/unix/userinfo.
c:41: error: too many arguments to function `getpwnam_r'

Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling apr-1.1.0 with cc task on Solaris 10

carnold-3

On May 8, 2005, at 8:57 AM, Chris Williams wrote:

> I am trying to compile the cvs head version of log4cxx on Solaris 10.  
> I
> grabed the cvs versions of ant-contrib, cpptask, and log4cxx.  I am
> using
> ant 1.6.3 and gcc 3.4.2.  I have attached a sample of the errors I get
> from
> the cc task.  Now when I went in to the lib/apr-1.1.0 directory and
> did a
> make using the files that configure generated, it builds fine.  Is
> there a
> way to a more verbose output from the cc task?  Could log4cxx be
> configured
> to use the make files that apr-1.1.0 generates?
>

More verbose: ant -v

To use an already built apr and apr-util, you can specify

ant -Dapr.dir=/usr/local/apr

I've tried to get Solaris 10 working in Virtual PC 2004 before, but
haven't had much success.  I would like to have it as one of the
platforms that we regularly build on.   I'll try to dig into this
deeper.

Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling apr-1.1.0 with cc task on Solaris 10

Chris Williams
In reply to this post by Chris Williams
Curt, I would like to try and help the project with
Solaris 10 since I have it at home running on a Ultra
60.  I did get a bit further and I plan on emailing my
steps and where I am later today.

One question about the build.xml.  Is there a way to
add additional -L paths without having to modify the
build.xml?  I added one additional <linkerarg> to
point to /usr/local/lib so it would pull in my expat
install.  It would be nice if there was a way to do
that from the ant command line.

Thanks
Chris
--- Curt Arnold <[hidden email]> wrote:

>
> On May 8, 2005, at 8:57 AM, Chris Williams wrote:
>
> > I am trying to compile the cvs head version of
> log4cxx on Solaris 10.  
> > I
> > grabed the cvs versions of ant-contrib, cpptask,
> and log4cxx.  I am
> > using
> > ant 1.6.3 and gcc 3.4.2.  I have attached a sample
> of the errors I get
> > from
> > the cc task.  Now when I went in to the
> lib/apr-1.1.0 directory and
> > did a
> > make using the files that configure generated, it
> builds fine.  Is
> > there a
> > way to a more verbose output from the cc task?
> Could log4cxx be
> > configured
> > to use the make files that apr-1.1.0 generates?
> >
>
> More verbose: ant -v
>
> To use an already built apr and apr-util, you can
> specify
>
> ant -Dapr.dir=/usr/local/apr
>
> I've tried to get Solaris 10 working in Virtual PC
> 2004 before, but
> haven't had much success.  I would like to have it
> as one of the
> platforms that we regularly build on.   I'll try to
> dig into this
> deeper.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling apr-1.1.0 with cc task on Solaris 10

jwert

I have hit a similar problem on Linux.  The workaround that I found was to
manually call the configure script in the apr and apr-util projects that
are downloaded to the lib logging-log4cxx/lib directory.

Hope this helps.

Jim


|---------+---------------------------->
|         |           Chris Williams   |
|         |           <chris_d_williams|
|         |           @yahoo.com>      |
|         |                            |
|         |           05/09/2005 08:04 |
|         |           AM               |
|         |           Please respond to|
|         |           "Log4CXX User"   |
|---------+---------------------------->
  >----------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                  |
  |       To:       Log4CXX User <[hidden email]>                                                                   |
  |       cc:                                                                                                                        |
  |       Subject:  Re: Errors compiling apr-1.1.0 with cc task on Solaris 10                                                        |
  >----------------------------------------------------------------------------------------------------------------------------------|




Curt, I would like to try and help the project with
Solaris 10 since I have it at home running on a Ultra
60.  I did get a bit further and I plan on emailing my
steps and where I am later today.

One question about the build.xml.  Is there a way to
add additional -L paths without having to modify the
build.xml?  I added one additional <linkerarg> to
point to /usr/local/lib so it would pull in my expat
install.  It would be nice if there was a way to do
that from the ant command line.

Thanks
Chris
--- Curt Arnold <[hidden email]> wrote:

>
> On May 8, 2005, at 8:57 AM, Chris Williams wrote:
>
> > I am trying to compile the cvs head version of
> log4cxx on Solaris 10.
> > I
> > grabed the cvs versions of ant-contrib, cpptask,
> and log4cxx.  I am
> > using
> > ant 1.6.3 and gcc 3.4.2.  I have attached a sample
> of the errors I get
> > from
> > the cc task.  Now when I went in to the
> lib/apr-1.1.0 directory and
> > did a
> > make using the files that configure generated, it
> builds fine.  Is
> > there a
> > way to a more verbose output from the cc task?
> Could log4cxx be
> > configured
> > to use the make files that apr-1.1.0 generates?
> >
>
> More verbose: ant -v
>
> To use an already built apr and apr-util, you can
> specify
>
> ant -Dapr.dir=/usr/local/apr
>
> I've tried to get Solaris 10 working in Virtual PC
> 2004 before, but
> haven't had much success.  I would like to have it
> as one of the
> platforms that we regularly build on.   I'll try to
> dig into this
> deeper.
>
>