473,472 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2496
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
0
by: wcsnyder | last post by:
For those who didn't catch this announcement on the moderated group, I am pleased to announce the initial release of RPSL (Rapid Prototyping Shared Library). RPSL is a set of bash scripts and...
2
by: Lowell Kirsh | last post by:
I don't know much about autotools or Berkeley db (bdb) but they are being used by a program I'm trying to compile and it's causing me problems. The line which is the culprit is in a configure.ac...
0
by: NJ | last post by:
MAKE MONEY FAST AND EASY HURRY!!!! Make Money Fast A little while back, I was browsing these newsgroups, just like you are now, and came across an article similar to this that said you could make...
21
by: salad | last post by:
Thanks for reading this post and wasting your time. I was thinking about writing about the PCDatasheet vs The Pussyfarts war. The pussyfarts, as near as I can tell, have little to offer this...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
1
by: Jonh Wendell | last post by:
Hi all! I need help with autotools stuff.. My directory structure: project_name src main.py others.py data ui.glade
6
by: shapper | last post by:
Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html I am having a few problems with my CSS: 1. Restyling the Select
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.