logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Problem compiling on FreeBSD 5.3: msg#00065

apache.logging.log4cxx.user

Subject: Re: Problem compiling on FreeBSD 5.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Keith Bottner wrote:
| It's not just a header problem or I wouldn't even ask.
|
| The autogen.sh will not run on FreeBSD. And in fact shouldn't even have to
run. The configure script should already be generated when the tar.gz was
packaged so that all anyone has to do is run configure then make and so on...
The autogen.sh shell script is there to generate this configure, which is
backward. The whole point of using configure is to bypass difficulties in
compiling the same source on different systems. Having to run autogen.sh as the
first step pretty much goes back to the core issues of why configure was
developed in the first place.
|
| Now onto why FreeBSD has an issue, which specifically has to do with the
autoconf, automake, aclocal, etc. that exist in the autogen.sh. FreeBSD has
multiple versions of these installed for various reasons so there is no single
link which means that the autogen.sh script has to be edited manually but then
which version should be used?
|
| The real solution is to get rid of the autogen.sh shell script and post a
tar.gz with a configure that does what it is suppose to do, which is deal with
platform differences. I some what belive that there was an error packaging the
0.9.7 version and that in fact they meant to generate a tar.gz with the
configure already generated by the projects maintainers but that something was
missed.
|
| Anyone have an opinion, flaming aside.
|
|
| Keith

Ok, sorry for all the mail folks. It actually didn't take that much to get it
compiled on FreeBSD 5.3. The only source changes required was the alloca.h
check; a small diff is attached.

$ cd /usr/ports/devel/automake15
$ make install clean
$ cd /usr/ports/textproc/libxml2
$ make install clean
$ cd ~/log4cxx-0.9.7
$ libtoolize15 --force --copy
$ aclocal15
$ autoheader259
$ autoconf259
$ automake15 -a
$ patch -p1 < ../log4cxx-0.9.7-fbsd.diff
$ ./configure ...
$ make

I didn't specify any fancy options so I cannot say whether --with-ODBC or
- --with-SMTP will build correctly.

Hope this helps you.
- --
You can't have everything... where would you put it?
- -- Steven Wright

Aaron Walker <ka0ttic@xxxxxxxxxx>
[ Gentoo/BSD | cron | forensics | shell-tools | commonbox | netmon ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFB99YtC3poscuANHARAm3hAJ9plViO1EcggGfIAiWnOyQweLcilQCggFtM
i87+EGdExTWU/5LfqqYhtmc=
=66NF
-----END PGP SIGNATURE-----
diff -urN log4cxx-0.9.7.orig/include/log4cxx/helpers/tchar.h
log4cxx-0.9.7/include/log4cxx/helpers/tchar.h
--- log4cxx-0.9.7.orig/include/log4cxx/helpers/tchar.h Thu Jan 20 21:32:19 2005
+++ log4cxx-0.9.7/include/log4cxx/helpers/tchar.h Thu Jan 20 23:01:00 2005
@@ -84,7 +84,9 @@
#define USES_CONVERSION void * _dst = _alloca(1024);
#endif
#else
- #include <alloca.h>
+ #ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
+ #endif
#define USES_CONVERSION void * _dst = alloca(1024);
#endif

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo