logo       

building latest on FreeBSD 6.0: msg#00011

Subject: building latest on FreeBSD 6.0
Hello,

I've gotten the latest log4cxx source to build on FreeBSD 6.0 and 6.1 using
the recommended ant process.  However, I had to modify / hack a few things
to nudge it through.  It's not the best way to get around the issue, but it
could prove useful to anyone else having similar issues.

A lot of my problem comes down to the build process not recognizing that I
have iconv installed.  Also libdl is not found on FreeBSD, but the code
required from that lib is already included in another lib.

Here's a diff of the build code in SVN that I modified.  (More changes
follow after diff.)
Index: build.xml
===================================================================
--- build.xml   (revision 474575)
+++ build.xml   (working copy)
@@ -5,7 +5,7 @@
         <libset libs="${aprutil.lib.name}${lib-suffix}"
unless="aprutil.lib.dir"/>
         <libset libs="${apr.lib.name}${lib-suffix}" dir="${apr.lib.dir}"
if="apr.lib.dir"/>
         <libset libs="${apr.lib.name}${lib-suffix}" unless="apr.lib.dir"/>
-        <libset libs="iconv" if="has-iconv"/>
+        <libset libs="iconv" dir="/usr/local/lib"/>
         <libset libs="pthread" if="is-unix"/>
         <libset libs="expat" if="has-expat"/>
         <syslibset libs="advapi32 odbc32 ws2_32 mswsock" if="is-windows"/>
@@ -732,6 +732,7 @@
         <defineset define="APR_DECLARE_STATIC" if="apr-static"/>
         <defineset define="APU_DECLARE_STATIC" if="aprutil-static"/>
         <defineset define="WIN32" if="is-windows"/>
+        <defineset define="__STDC_ISO_10646__"/>
         <compilerarg value="${pic-option}" if="pic-option"/>
         &libsets;
         <project type="${project.type}" outfile="${project.dir}/log4cxx"
if="project.if"/>
@@ -899,7 +900,7 @@
         <libset libs="log4cxx${lib-suffix}" dir="${log4cxx.lib.dir}"/>
         <libset libs="${cppunit.lib.name}${lib-suffix}"
dir="${cppunit.lib.dir}" if="cppunit.lib.dir"/>
         <libset libs="${cppunit.lib.name}${lib-suffix}"
unless="cppunit.lib.dir"/>
-        <libset libs="dl" if="is-unix"/>
+<!--        <libset libs="dl" if="is-unix"/> -->
         &libsets;
 
         <project outfile="${project.dir}/log4cxx-test"
type="${project.type}" if="project.if"/>
@@ -937,7 +938,7 @@
         <libset libs="log4cxx${lib-suffix}" dir="${log4cxx.lib.dir}"/>
         <libset libs="${cppunit.lib.name}${lib-suffix}"
dir="${cppunit.lib.dir}" if="cppunit.lib.dir"/>
         <libset libs="${cppunit.lib.name}${lib-suffix}"
unless="cppunit.lib.dir"/>
-        <libset libs="dl" if="is-unix"/>
+<!--        <libset libs="dl" if="is-unix"/> -->
         &libsets;
 
         <project outfile="${project.dir}/log4cxx-defaultinit-test"
Index: aprutil-build.xml
===================================================================
--- aprutil-build.xml   (revision 474575)
+++ aprutil-build.xml   (working copy)
@@ -220,6 +220,7 @@
         <includepath path="${apr.include.dir}"/>
         <includepath path="${aprutil.dir}/xml/expat/lib"/>
         <includepath path="${aprutil.dir}/xml/expat"/>
+        <includepath path="/usr/local/include"/>
         <defineset define="APU_DECLARE_EXPORT" if="is-aprutil-shared"/>
         <defineset define="APU_DECLARE_STATIC" unless="is-aprutil-shared"/>
         <defineset define="APR_DECLARE_STATIC" unless="is-apr-shared"/>


Additionally, in /log4cxx/lib/apr-util-1.2.7/include/apu.h, I have to change
the following define so that it's turned on:
#define APU_HAVE_ICONV         1


Finally, in /log4cxx/lib/apr-util-1.2.7/include/private/apu_config.h, I have
to turn on the following defines.
#define APU_ICONV_INBUF_CONST 1
#define HAVE_ICONV_H 1


Cheers!




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

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