471,582 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

please help me a little with autotools

Hi folks,

I am developing a apache2 so module in c++.
At the moment, I'm trying to get it to compile with automake & friends, but
don't get it to work. I tried to modify the example in the programmer-docs.
I created a simple c++ project and deleted the src subdir and copied my
sourcecode files into the basedir.
(That's not where I want to let them in the end, but I thought it might be
easier in the beginning)
Then I copied the sample Makefile.am over the existing one and edited it to
what I thought would fit my needs, but It just didn't work. The autotools
just stopped with error code 2. No more "messages", no "problems".

Could please someone help me to make a working Makefile.am out of the sample
info of my manual makefile? - If you're familiar with the autotools, please
point me into the right direction.

I want to build mod_cms.so, dynamically linked to the apache2 and odbc++
libs.

Many thanks in advance,
yours Henri

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

################################################## #################
# configuring
################################################## #################
APXS=apxs2
APACHECTL=apache2ctl

# Get all of apxs's internal values.
APXS_CC=`$(APXS) -q CC`
APXS_TARGET=`$(APXS) -q TARGET`
APXS_CFLAGS=`$(APXS) -q CFLAGS`
APXS_SBINDIR=`$(APXS) -q SBINDIR`
APXS_CFLAGS_SHLIB=`$(APXS) -q CFLAGS_SHLIB`
APXS_INCLUDEDIR=`$(APXS) -q INCLUDEDIR`
APXS_LD_SHLIB=`$(APXS) -q LD_SHLIB`
APXS_LIBEXECDIR=`$(APXS) -q LIBEXECDIR`
APXS_LDFLAGS_SHLIB=`$(APXS) -q LDFLAGS_SHLIB`
APXS_SYSCONFDIR=`$(APXS) -q SYSCONFDIR`
APXS_LIBS_SHLIB=`$(APXS) -q LIBS_SHLIB`

################################################## #################
# compiling
################################################## #################
mod_cms.o: mod_cms.cpp
libtool g++ -W -c -fPIC -I$(APXS_INCLUDEDIR) -I/usr/include/odbc++ -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_SHLIB) -Wall -o $@ $<

cms_request_data.o: cms_request_data.cpp
libtool g++ -c -fPIC -I$(APXS_INCLUDEDIR) -I. -I- $(APXS_CFLAGS)
$(APXS_CFLAGS_SHLIB) -Wall -o $@ $<

epcre.o: epcre.cpp
libtool g++ -c -fPIC -I/usr/include -I$(APXS_INCLUDEDIR) -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_SHLIB) -Wall -o $@ `pcre-config --cflags` $<

################################################## #################
# linking
################################################## #################
objects = mod_cms.o cms_request_data.o epcre.o
mod_cms.so: $(objects)
libtool g++ -W -fPIC -shared -L/usr/lib -lodbc++ `pcre-config --libs`
`pcre-config --cflags` -o $@ $(objects)

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #1
16 2421
Henri Schomäcker wrote:
Hi folks,

I am developing a apache2 so module in c++.
At the moment, I'm trying to get it to compile with automake &
friends, but don't get it to work. I tried to modify the example in


http://www.slack.net/~shiva/welcome.txt

http://www.slack.net/~shiva/offtopic.txt

--
WW aka Attila
Jul 19 '05 #2

White Wolf wrote:
[...]
http://www.slack.net/~shiva/offtopic.txt


"IBM -- main frame". Thanks god not main()frame.

http://www.ibm.com/ibm/history/exhib...ame_intro.html

regards,
alexander.
Jul 19 '05 #3
White Wolf wrote:

http://www.slack.net/~shiva/offtopic.txt

--
WW aka Attila


not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!

And: You'll never get support by me in any ther group where you are new and
Im established.

btw: no realname?

Many thanks for your reply ;-)
Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #4
On Mon, 15 Sep 2003 22:58:10 +0200, Henri =?ISO-8859-1?Q?Schom=E4cker?= <he***************@virtual-homes.de> wrote:
White Wolf wrote:

http://www.slack.net/~shiva/offtopic.txt

--
WW aka Attila
not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!


Why don't you look at the reference Attila gave?

As folks used to say in the old days, RTFM.
And: You'll never get support by me in any ther group where you are new and
Im established.
Perhaps also see <url:http://www.winternet.com/~mikelr/flame52.html>.
btw: no realname?


Google is your friend.

Jul 19 '05 #5

Henri Schomäcker wrote:
[...]
btw: no realname?


Oh NO! Don't get Wolf started on this. And you don't have
"Hungarian to Asshole dictionary" anyway. I guess. ;-) ;-)

regards,
alexander.
Jul 19 '05 #6
Alf P. Steinbach wrote:
Why don't you look at the reference Attila gave?

As folks used to say in the old days, RTFM.
And: You'll never get support by me in any ther group where you are new
and Im established.


Perhaps also see <url:http://www.winternet.com/~mikelr/flame52.html>.
btw: no realname?


Google is your friend.


1. Didn't want to start a flamewar: You do.
2. I read the files!
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic? - No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

:-| Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #7
Henri Schomäcker wrote:
White Wolf wrote:
http://www.slack.net/~shiva/offtopic.txt

--
WW aka Attila

not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.


Then read the links.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!
Also in the links, probably. Besides that, this group is not
alt.find.the.right.group.for.whatever.topic.you.wa nt.
Your name gets directly into my blacklist with this reply !!!
Itchy trigger finger?
You're just destructive and will just be ignored in the future !!!
Off-topic re-directions are not destructive. Off-topic posts are. As the
archives can show, Attila is perfectly willing and able to help people
who post topical questions on this group.

And: You'll never get support by me in any ther group where you are new and
Im established.


Well, considering you can't even find the right group to post in, I'm
not sure he would be eager to seek your help anyway.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Jul 19 '05 #8
Henri Schomäcker wrote:
1. Didn't want to start a flamewar: You do.
If you are trying not to start a flame war, you are doing a bad job of
it. Here's some tips for the future:

1) Don't post off-topic messages.
2) Don't insist your off-topic messages are on-topic.
3) Don't attack regulars for politely re-directing you.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic?
If you can show where it's defined in the C++ standard then we'll admit
your question is topical and apologize. If the C++ standard does not
define it, it is not C++.
- No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?


I don't know about Alf, but my problems with the group mainly consist of
off-topic posters and flame war starters.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Jul 19 '05 #9
On Mon, 15 Sep 2003 23:21:16 +0200, Henri =?ISO-8859-1?Q?Schom=E4cker?= <he***************@virtual-homes.de> wrote:
1. Didn't want to start a flamewar: You do.
2. I read the files!
but did not grok
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
off-topic
4. If you don't like my question here: Which one IS the right ng for my
autotools question?
check around
- This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic?


this newsgroup is concerned with the c++ _language_ only

see earlier references twice given

Jul 19 '05 #10

"Alf P. Steinbach" wrote: ....

Tja, too busy or what, Alf? ;-)

regards,
alexander.
Jul 19 '05 #11
Kevin Goodsell wrote:
3) Don't attack regulars for politely >>?<< re-directing you.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix
c++ program uses these, so why should this be offtopic?

And that is what is to read in http://www.slack.net/~shiva/welcome.txt

If you can show where it's defined in the C++ standard then we'll admit
your question is topical and apologize. If the C++ standard does not
define it, it is not C++.
...
I don't know about Alf, but my problems with the group mainly consist of
off-topic posters and flame war starters.


I agree absolutely, so the first reply to my question should have been:

"This is just a newsgroup for the C++ standard language and not also for the
used tools. Please ask in comp.haven't_found_the_right_one_yet."

.... and everyone would get what he/she wants, like the sound in other ng.
I'm also not posting since yesterday.

O.K. thanks, now I got it...
yours Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #12
Henri Schomäcker wrote:
Kevin Goodsell wrote:
3) Don't attack regulars for politely >>?<< re-directing you.
4. If you don't like my question here: Which one IS the right ng
for my autotools question? - This ng is comp.lang.c++: Every
open-source unix c++ program uses these, so why should this be
offtopic?

And that is what is to read in http://www.slack.net/~shiva/welcome.txt


This my I-have-to-be-right-whatever-it-takes new friend:
"This is just a newsgroup for the C++ standard language and not also
for the used tools. Please ask in
comp.haven't_found_the_right_one_yet."

... and everyone would get what he/she wants, like the sound in other
ng. I'm also not posting since yesterday.
Yes. And if morons would first read the FAQ to see what this newsgroup is
for, we would not need to post any redirections, wouldn't we?
O.K. thanks, now I got it...


Does not seem so, but let's leave it at that.

--
WW aka Attila
Jul 19 '05 #13
Alexander Terekhov wrote:
Henri Schomäcker wrote:
[...]
btw: no realname?


Oh NO! Don't get Wolf started on this. And you don't have
"Hungarian to Asshole dictionary" anyway. I guess. ;-) ;-)


Making friends again? ;-)

--
WW aka Attila
Jul 19 '05 #14
Henri Schomäcker wrote:
[SNIP]
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!

[SNIP]

Ohh, I have missed that one. How cute. *PLONK*

--
WW aka Attila
Jul 19 '05 #15
Henri Schomäcker wrote:
1. Didn't want to start a flamewar: You do.
2. I read the files!
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic? - No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

:-| Henri


The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 19 '05 #16
Thomas Matthews wrote:
Henri Schomäcker wrote:
1. Didn't want to start a flamewar: You do.
[SNIP]
The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.


He did not get flamed. He flamed. He has been redirected. He has been
given explanation. Then he started to flame.

--
Attila aka WW
Jul 19 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lowell Kirsh | last post: by
reply views Thread by NJ | last post: by
21 posts views Thread by salad | last post: by
1 post views Thread by Jonh Wendell | last post: by
6 posts views Thread by shapper | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.