473,785 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ 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=apach e2ctl

# 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_SHL IB=`$(APXS) -q CFLAGS_SHLIB`
APXS_INCLUDEDIR =`$(APXS) -q INCLUDEDIR`
APXS_LD_SHLIB=` $(APXS) -q LD_SHLIB`
APXS_LIBEXECDIR =`$(APXS) -q LIBEXECDIR`
APXS_LDFLAGS_SH LIB=`$(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_INCLUDE DIR) -I/usr/include/odbc++ -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_S HLIB) -Wall -o $@ $<

cms_request_dat a.o: cms_request_dat a.cpp
libtool g++ -c -fPIC -I$(APXS_INCLUDE DIR) -I. -I- $(APXS_CFLAGS)
$(APXS_CFLAGS_S HLIB) -Wall -o $@ $<

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

############### ############### ############### ############### #######
# linking
############### ############### ############### ############### #######
objects = mod_cms.o cms_request_dat a.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.schomaeck er_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #1
16 2531
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.schomaeck er_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=E4cke r?= <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.c om/~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.c om/~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.schomaeck er_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.ri ght.group.for.w hatever.topic.y ou.want.
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=E4cke r?= <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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2610
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 topics to include in a course on object-orientation that I'm going to conduct. (I will later summarize all the replies and discussion, for the
0
1146
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 utility files that coordinate the GNU autotools (automake, autoconf, libtool) and pkg-config for C/C++ build automation. The scripts and procedures define a system for building and linking libraries that supports individual or small group development...
2
1784
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 file and it's: AC_CHECK_LIB(db, db_create, ,AC_MSG_ERROR()) This is what ends up causing the configure script to fail. The thing is, I am pretty sure I have the newest bdb installed on my system. I am able to compile the following bdb-dependent...
0
1546
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 thousands of dollars within weeks with only an initial investment of $6.00! So I thought," Yeah, right, this must be a scam", but like most of us, but I was curious, so I kept reading. Anyway, it said that you send $1.00 to each of the 6 names and...
21
1989
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 group but pussyfart noise. But I realize if you are going waste your time...the most precious commodity you have, you really shouldn't be reading pussyfart messages. You might want to read a book. There's a good kid book but actually it is a...
1
9654
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
1
1982
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
2195
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
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.