Re: Trouble building jsvc

2008-03-16 Thread jarrod

Thanks again, Rainer. I got it working on a different machine, not generating
the configure file. I don't know why the docs say to do that when it's
better not to.

Ethan


-

ebdb
http://aeondust.com
-- 
View this message in context: 
http://www.nabble.com/Trouble-building-jsvc-tp16055587p16085469.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble building jsvc

2008-03-15 Thread Rainer Jung

Hi Ethan,

jarrod schrieb:

which version of jsvc do you try to compile?


The one distributed with Tomcat 6.0.16. It's in tomcat/bin as jsvc.tar.gz.


OK, I checked and that one is identical to the one I tried 
(commons-daemon 1.0.1).





Which docs page are you referring to?


I mean the main Tomcat site...

http://tomcat.apache.org/tomcat-5.5-doc/setup.html

I also checked the file INSTALL.txt that's inside jsvc.tar.gz.

I tried generating the configure script using autoconf. And also I tried
what it said in INSTALL.txt:

sh support/buildconf.sh


You should *not* do that without special reason. Usually the configure 
file provided as is should be fine. I assume the config.log you posted 
came from the configure you recreated and that was the reason for the 
line numbers that differed from mine. Let's ignore this for the moment, 
since you get the same problem with the original configure.



Same result each time -- what I described.



So let's look at your config.log:


Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)


H prerelease ...


configure:2131: $? = 0configure:2138: gcc -V 5
gcc: '-V' option must have argument
configure:2141: $? = 1


The -V problem we should ignore. I get the same error, but apart from 
that configure works and make too. The -V thing is an ancient way of 
determining gcc version that does not work any more.



configure:2164: checking for C compiler default output file name
configure:2191: gccconftest.c  5
/usr/bin/ld: crt1.o: 
No such file: No such file or directory

collect2: ld returned 1 exit status
configure:2194: $? = 1
configure:2232: result: configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| /* end confdefs.h.  */
| 
| int

| main ()
| {
| 
|   ;

|   return 0;
| }
configure:2239: error: C compiler cannot create executables


Aha, here it breaks. So next I would try to compile this test program 
myself, to see, if the compiler really is not able to compile the 
snippet. If so, then something is wrong with your environment.


So create a new file with the contents

/* confdefs.h.  */
#define PACKAGE_NAME 
#define PACKAGE_TARNAME 
#define PACKAGE_VERSION 
#define PACKAGE_STRING 
#define PACKAGE_BUGREPORT 
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}

and try to compile it with gcc filename. See if you get a resulting 
binary a.out or an error during compile/link.


Regards,

Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble building jsvc

2008-03-15 Thread jarrod



Rainer Jung-3 wrote:
 
 Hi Ethan,
 
 jarrod schrieb:
 which version of jsvc do you try to compile?
 
 The one distributed with Tomcat 6.0.16. It's in tomcat/bin as
 jsvc.tar.gz.
 
 OK, I checked and that one is identical to the one I tried 
 (commons-daemon 1.0.1).
 
 
 Which docs page are you referring to?
 
 I mean the main Tomcat site...
 
 http://tomcat.apache.org/tomcat-5.5-doc/setup.html
 
 I also checked the file INSTALL.txt that's inside jsvc.tar.gz.
 
 I tried generating the configure script using autoconf. And also I tried
 what it said in INSTALL.txt:
 
 sh support/buildconf.sh
 
 You should *not* do that without special reason. Usually the configure 
 file provided as is should be fine. I assume the config.log you posted 
 came from the configure you recreated and that was the reason for the 
 line numbers that differed from mine. Let's ignore this for the moment, 
 since you get the same problem with the original configure.
 
 Same result each time -- what I described.
 
 
 So let's look at your config.log:
 
 Thread model: posix
 gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
 
 H prerelease ...
 
 configure:2131: $? = 0configure:2138: gcc -V 5
 gcc: '-V' option must have argument
 configure:2141: $? = 1
 
 The -V problem we should ignore. I get the same error, but apart from 
 that configure works and make too. The -V thing is an ancient way of 
 determining gcc version that does not work any more.
 
 configure:2164: checking for C compiler default output file name
 configure:2191: gccconftest.c  5
 /usr/bin/ld: crt1.o: 
 No such file: No such file or directory
 collect2: ld returned 1 exit status
 configure:2194: $? = 1
 configure:2232: result: configure: failed program was:
 | /* confdefs.h.  */
 | #define PACKAGE_NAME 
 | #define PACKAGE_TARNAME 
 | #define PACKAGE_VERSION 
 | #define PACKAGE_STRING 
 | #define PACKAGE_BUGREPORT 
 | /* end confdefs.h.  */
 | 
 | int
 | main ()
 | {
 | 
 |   ;
 |   return 0;
 | }
 configure:2239: error: C compiler cannot create executables
 
 Aha, here it breaks. So next I would try to compile this test program 
 myself, to see, if the compiler really is not able to compile the 
 snippet. If so, then something is wrong with your environment.
 
 So create a new file with the contents
 
 /* confdefs.h.  */
 #define PACKAGE_NAME 
 #define PACKAGE_TARNAME 
 #define PACKAGE_VERSION 
 #define PACKAGE_STRING 
 #define PACKAGE_BUGREPORT 
 /* end confdefs.h.  */
 
 int
 main ()
 {
 
;
return 0;
 }
 
 and try to compile it with gcc filename. See if you get a resulting 
 binary a.out or an error during compile/link.
 
 Regards,
 
 Rainer
 
 

Ranier, thanks a lot for the help. Now that it's Saturday, I don't have
access to that particular machine. I'll have to try your suggestion on
Monday.

In the meantime, I'm planning to set up a VPS machine this weekend, so once
I get that running and get to the point of installing Tomcat, I'll try
running make without running configure first, as you suggested.

Thanks,

Ethan

-

ebdb
http://aeondust.com
-- 
View this message in context: 
http://www.nabble.com/Trouble-building-jsvc-tp16055587p16072353.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble building jsvc

2008-03-14 Thread Rainer Jung

Hi,

jarrod schrieb:

Hi all. I'm trying to follow the Tomcat docs instructions for building jsvc.
I can't get past the ./configure step. Any help would be greatly
appreciated.

Trying to build on Ubuntu Linux. Linux linux-workstation 2.6.22-14-generic.


which version of jsvc do you try to compile?
Which docs page are you referring to?



I've uninstalled all versions of Java except the JDK 6 I downloaded from
Sun. I set JAVA_HOME and added JAVA_HOME/bin to my PATH.

I tried to run it like this:

./configure --with-java=/usr/local/java/bin/java

I get this:

*** Current host ***
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables

See `config.log' for more details.

Then I check the log and find...

Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2131: $? = 0configure:2138: gcc -V 5
gcc: '-V' option must have argument
configure:2141: $? = 1
configure:2164: checking for C compiler default output file name
configure:2191: gccconftest.c  5
/usr/bin/ld: crt1.o: 
No such file: No such file or directory

collect2: ld returned 1 exit status
configure:2194: $? = 1
configure:2232: result: configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| /* end confdefs.h.  */
| 
| int

| main ()
| {
| 
|   ;

|   return 0;
| }
configure:2239: error: C compiler cannot create executables
See `config.log' for more details.


I downloaded commons-daemon-1.0.1 (the most recent although 3 years old) 
and it runs configure without problems. I compared the line numbers from 
your output and they don't coincide with mine. So either you are using a 
strange jsvc version, or you regenerated the configure script. Check if 
your configure script still has an old time stamp (mine is May 17, 2005) 
and is located in daemon-1.0.1/src/native/unix.


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble building jsvc

2008-03-14 Thread jarrod

Thanks for the reply.

 which version of jsvc do you try to compile?

The one distributed with Tomcat 6.0.16. It's in tomcat/bin as jsvc.tar.gz.

 Which docs page are you referring to?

I mean the main Tomcat site...

http://tomcat.apache.org/tomcat-5.5-doc/setup.html

I also checked the file INSTALL.txt that's inside jsvc.tar.gz.

I tried generating the configure script using autoconf. And also I tried
what it said in INSTALL.txt:

sh support/buildconf.sh

Same result each time -- what I described.


Rainer Jung-3 wrote:
 
 I downloaded commons-daemon-1.0.1 (the most recent although 3 years old) 
 and it runs configure without problems. I compared the line numbers from 
 your output and they don't coincide with mine. So either you are using a 
 strange jsvc version, or you regenerated the configure script. Check if 
 your configure script still has an old time stamp (mine is May 17, 2005) 
 and is located in daemon-1.0.1/src/native/unix.
 
 Regards,
 
 Rainer
 

Yeah, I guess we're using different versions. I had not heard of
commons-daemon before. I was going by the docs on the Tomcat site.

Is it better to use commons daemon?

Ethan

-

ebdb
http://aeondust.com
-- 
View this message in context: 
http://www.nabble.com/Trouble-building-jsvc-tp16055587p16062054.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]