You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brian Hechinger <wo...@4amlunch.net> on 2006/10/02 01:21:45 UTC
build problems on solaris (Sun Studio)
Ok, I got 1.4.0 and am trying to build it. I can build 1.3.9 just fine,
but 1.4.0 gives me this trouble.
wonko@zaphod$ cc -V
cc: Sun C 5.8 2005/10/13
wonko@zaphod$ uname -a
SunOS zaphod.4amlunch.net 5.10 Generic_118822-27 sun4u sparc SUNW,Ultra-80
My configure that I use:
./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-apr=/usr/local/apr/bin/apr-1-config
--with-apr-util=/usr/local/apr/bin/apu-1-config
--with-berkeley-db=/usr/local/BerkeleyDB.4.4 --with-ssl
goes just fine, but then when I try to run make, it grinds away for a
while, and then I get:
/bin/bash /usr/home/wonko/software/subversion-1.4.0/libtool --tag=CC --silent --mode=compile cc -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -I./subversion/include -I./subversion -I/usr/local/include/neon -I/usr/local/apr/include/apr-1 -I/usr/local/apr/include/apr-1 -I/usr/local/BerkeleyDB.4.4/include -I/usr/local/include -o subversion/libsvn_subr/cmdline.lo -c subversion/libsvn_subr/cmdline.c
"./subversion/include/svn_dso.h", line 65: syntax error before or at: *
"./subversion/include/svn_dso.h", line 65: warning: undefined or missing type for: const
cc: acomp failed for subversion/libsvn_subr/cmdline.c
gmake: *** [subversion/libsvn_subr/cmdline.lo] Error 1
any clues as to what the solution is to this problem?
-brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: build problems on solaris (Sun Studio)
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 10/2/06, Brian Hechinger <wo...@4amlunch.net> wrote:
> I need to manually add -lintl to the LIBS= var in the Makefile. For some
> reason it isn't automatically putting that in there, but is expecting intl
> to be available.
Interesting. It looks like configure should be trying to find libintl
if --enable-nls is turned on and it can't find bindtextdomain without
using libintl. What kind of errors did you get without libintl?
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: build problems on solaris (Sun Studio)
Posted by Brian Hechinger <wo...@4amlunch.net>.
On Mon, Oct 02, 2006 at 10:22:40AM -0400, Garrett Rooney wrote:
> On 10/2/06, Brian Hechinger <wo...@4amlunch.net> wrote:
>
> >Should I maybe try to rebuild apr with DSO support?
>
> Oops, sorry, I forgot there was a bit that needed to be changed in
> dso.c as well. You should just be able to wrap the entire
> svn_dso_load function in those same ifdefs, like:
>
> #of 0
> svn_error_t
> svn_dso_load(apr_dso_handle_t **dos, const char *fname)
> {
> ...
> }
> #endif
>
> (Note, in the real fix those are actually #if APR_HAS_DSO, which
> should work as well.)
That seems to have done it. Also, while I'm complaining. :)
I need to manually add -lintl to the LIBS= var in the Makefile. For some
reason it isn't automatically putting that in there, but is expecting intl
to be available.
-brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: build problems on solaris (Sun Studio)
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 10/2/06, Brian Hechinger <wo...@4amlunch.net> wrote:
> Should I maybe try to rebuild apr with DSO support?
Oops, sorry, I forgot there was a bit that needed to be changed in
dso.c as well. You should just be able to wrap the entire
svn_dso_load function in those same ifdefs, like:
#of 0
svn_error_t
svn_dso_load(apr_dso_handle_t **dos, const char *fname)
{
...
}
#endif
(Note, in the real fix those are actually #if APR_HAS_DSO, which
should work as well.)
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: build problems on solaris (Sun Studio)
Posted by Brian Hechinger <wo...@4amlunch.net>.
On Mon, Oct 02, 2006 at 09:38:39AM -0400, Garrett Rooney wrote:
> On 10/1/06, Brian Hechinger <wo...@4amlunch.net> wrote:
> >Ok, I got 1.4.0 and am trying to build it. I can build 1.3.9 just fine,
> >but 1.4.0 gives me this trouble.
> >
> >wonko@zaphod$ cc -V
> >cc: Sun C 5.8 2005/10/13
> >wonko@zaphod$ uname -a
> >SunOS zaphod.4amlunch.net 5.10 Generic_118822-27 sun4u sparc SUNW,Ultra-80
> >
> >My configure that I use:
> >
> >./configure --with-apxs=/usr/local/apache2/bin/apxs
> > --with-apr=/usr/local/apr/bin/apr-1-config
> > --with-apr-util=/usr/local/apr/bin/apu-1-config
> > --with-berkeley-db=/usr/local/BerkeleyDB.4.4 --with-ssl
> >
> >goes just fine, but then when I try to run make, it grinds away for a
> >while, and then I get:
> >
> >/bin/bash /usr/home/wonko/software/subversion-1.4.0/libtool --tag=CC
> >--silent --mode=compile cc -fast -xarch=v9a -xcode=abs64 -KPIC
> >-I/usr/local/include -I/usr/local/ssl/include -DSOLARIS2=10
> >-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fast -xarch=v9a -xcode=abs64
> >-KPIC -I/usr/local/include -I/usr/local/ssl/include -I./subversion/include
> >-I./subversion -I/usr/local/include/neon -I/usr/local/apr/include/apr-1
> >-I/usr/local/apr/include/apr-1 -I/usr/local/BerkeleyDB.4.4/include
> >-I/usr/local/include -o subversion/libsvn_subr/cmdline.lo -c
> >subversion/libsvn_subr/cmdline.c
> >"./subversion/include/svn_dso.h", line 65: syntax error before or at: *
> >"./subversion/include/svn_dso.h", line 65: warning: undefined or missing
> >type for: const
> >cc: acomp failed for subversion/libsvn_subr/cmdline.c
> >gmake: *** [subversion/libsvn_subr/cmdline.lo] Error 1
> >
> >any clues as to what the solution is to this problem?
>
> That is likely a bug in 1.4.0 that's been fixed but we haven't rolled
> a release yet. I suspect you're on a platform that doesn't have DSO
> support in APR (although it's odd that you'd get that on solaris, but
> whatever). If you wrap that line in ifdefs, like this:
>
> #if 0
> svn_error_t *svn_dso_load(apr_dso_handle_t **dso, const char *libname);
> #endif
>
> And recompile does it work?
Yes, that does get me past it, but then after chewing through a couple
more files, it gets this:
/bin/bash /usr/home/wonko/software/subversion-1.4.0/libtool --tag=CC --silent --mode=compile cc -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -I./subversion/include -I./subversion -I/usr/local/include/neon -I/usr/local/apr/include/apr-1 -I/usr/local/apr/include/apr-1 -I/usr/local/BerkeleyDB.4.4/include -I/usr/local/include -o subversion/libsvn_subr/dso.lo -c subversion/libsvn_subr/dso.c
"subversion/libsvn_subr/dso.c", line 60: syntax error before or at: *
"subversion/libsvn_subr/dso.c", line 60: warning: undefined or missing type for: const
"subversion/libsvn_subr/dso.c", line 73: undefined symbol: dso
"subversion/libsvn_subr/dso.c", line 73: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 73: undefined symbol: fname
"subversion/libsvn_subr/dso.c", line 73: warning: improper pointer/integer combination: arg #2
"subversion/libsvn_subr/dso.c", line 73: warning: improper pointer/integer combination: op "="
"subversion/libsvn_subr/dso.c", line 78: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 78: warning: improper pointer/integer combination: op "=="
"subversion/libsvn_subr/dso.c", line 80: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 90: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 92: warning: implicit function declaration: apr_dso_load
"subversion/libsvn_subr/dso.c", line 95: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 99: warning: improper pointer/integer combination: arg #2
"subversion/libsvn_subr/dso.c", line 113: warning: improper pointer/integer combination: arg #2
"subversion/libsvn_subr/dso.c", line 115: cannot dereference non-pointer type
"subversion/libsvn_subr/dso.c", line 115: warning: improper pointer/integer combination: arg #4
cc: acomp failed for subversion/libsvn_subr/dso.c
gmake: *** [subversion/libsvn_subr/dso.lo] Error 1
Should I maybe try to rebuild apr with DSO support?
-brian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: build problems on solaris (Sun Studio)
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 10/1/06, Brian Hechinger <wo...@4amlunch.net> wrote:
> Ok, I got 1.4.0 and am trying to build it. I can build 1.3.9 just fine,
> but 1.4.0 gives me this trouble.
>
> wonko@zaphod$ cc -V
> cc: Sun C 5.8 2005/10/13
> wonko@zaphod$ uname -a
> SunOS zaphod.4amlunch.net 5.10 Generic_118822-27 sun4u sparc SUNW,Ultra-80
>
> My configure that I use:
>
> ./configure --with-apxs=/usr/local/apache2/bin/apxs
> --with-apr=/usr/local/apr/bin/apr-1-config
> --with-apr-util=/usr/local/apr/bin/apu-1-config
> --with-berkeley-db=/usr/local/BerkeleyDB.4.4 --with-ssl
>
> goes just fine, but then when I try to run make, it grinds away for a
> while, and then I get:
>
> /bin/bash /usr/home/wonko/software/subversion-1.4.0/libtool --tag=CC --silent --mode=compile cc -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fast -xarch=v9a -xcode=abs64 -KPIC -I/usr/local/include -I/usr/local/ssl/include -I./subversion/include -I./subversion -I/usr/local/include/neon -I/usr/local/apr/include/apr-1 -I/usr/local/apr/include/apr-1 -I/usr/local/BerkeleyDB.4.4/include -I/usr/local/include -o subversion/libsvn_subr/cmdline.lo -c subversion/libsvn_subr/cmdline.c
> "./subversion/include/svn_dso.h", line 65: syntax error before or at: *
> "./subversion/include/svn_dso.h", line 65: warning: undefined or missing type for: const
> cc: acomp failed for subversion/libsvn_subr/cmdline.c
> gmake: *** [subversion/libsvn_subr/cmdline.lo] Error 1
>
> any clues as to what the solution is to this problem?
That is likely a bug in 1.4.0 that's been fixed but we haven't rolled
a release yet. I suspect you're on a platform that doesn't have DSO
support in APR (although it's odd that you'd get that on solaris, but
whatever). If you wrap that line in ifdefs, like this:
#if 0
svn_error_t *svn_dso_load(apr_dso_handle_t **dso, const char *libname);
#endif
And recompile does it work?
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org