logo       

RE: build failed on solaris 9: msg#00039

Subject: RE: build failed on solaris 9
This is because you need to set compiler flag -D_POSIX_PTHREAD_SEMANTICS.
The configure script for APR knows this, but the ant build file does not get
the info after running ./configure for APR. Try adding a <compilerflag
value="-D_POSIX_PTHREAD_SEMANTICS"/> to the <cc> tasks in apr-build.xml.

-----Original Message-----
From: log4cxx-user-return-1987-mpowers=appsecinc.com@xxxxxxxxxxxxxxxxxx
[mailto:log4cxx-user-return-1987-mpowers=appsecinc.com@xxxxxxxxxxxxxxxxxx]
On Behalf Of Aditya Aggarwal
Sent: 2007-May-23 Wed 7:53 AM
To: Log4CXX User
Subject: Re: build failed on solaris 9

HI again,

I installed jdk and ant 1.7 and tried to rebuilt, now gcc throws errors 
compiling apr on solaris 9
[cc] Starting dependency analysis for 63 files.
       [cc] 63 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 4 total files to be compiled.

       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/threadproc/unix/signals
.c: 
In function `apr_signal_thread':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/threadproc/unix/signals
.c:383: 
error: too many arguments to function `sigwait'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c: 
In function `apr_gid_name_get':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c:4
2: 
error: too many arguments to function `getgrgid_r'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c:4
2: 
warning: assignment makes integer from pointer without a cast
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c: 
In function `apr_gid_get':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c:7
0: 
error: too many arguments to function `getgrnam_r'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/groupinfo.c:7
0: 
warning: assignment makes integer from pointer without a cast
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c: 
In function `getpwnam_safe':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c:48
: 
error: too many arguments to function `getpwnam_r'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c:48
: 
warning: assignment makes integer from pointer without a cast
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c: 
In function `apr_uid_name_get':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c:12
9: 
error: too many arguments to function `getpwuid_r'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/user/unix/userinfo.c:12
9: 
warning: assignment makes integer from pointer without a cast
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/file_io/unix/dir.c: 
In function `apr_dir_read':
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/file_io/unix/dir.c:144:

error: too many arguments to function `readdir_r'
       [cc] 
/export/home/aaggarwal/logging-log4cxx/lib/apr-1.2.7/file_io/unix/dir.c:144:

warning: assignment makes integer from pointer without a cast

BUILD FAILED
/export/home/aaggarwal/logging-log4cxx/build.xml:559: The following 
error occurred while executing this line:
/export/home/aaggarwal/logging-log4cxx/apr-build.xml:167: gcc failed 
with return code 1



and I need it on windows as well and this is where the build fails

   [delete] Deleting: 
C:\logging-log4cxx\build\debug\shared\log4cxx.properties
   [delete] Deleting: C:\logging-log4cxx\build\debug\shared\log4j.properties
     [exec] .


     [exec] OK (1 tests)


     [exec] .


     [exec] OK (1 tests)


     [exec] .


     [exec] OK (1 tests)



clean-output:
   [delete] Deleting 97 files from C:\logging-log4cxx\tests

run-unittest:
     [exec] ............................Assertion failed: stat == 
APR_SUCCESS, f
ile C:\logging-log4cxx\tests\src\util\transformer.cpp, line 212

     [exec] abnormal program termination

BUILD FAILED
C:\logging-log4cxx\build.xml:1141: exec returned: 3

Total time: 9 seconds
C:\logging-log4cxx>


Any help is appreciated, thanks

Aditya


Aditya Aggarwal wrote:
> 1.6
>
>
> Sankaran_Nambi@xxxxxxx wrote:
>> What is the version of ant?
>>
>> -----Original Message-----
>> From: Aditya Aggarwal [mailto:aditya.aggarwal@xxxxxxxxx] Sent: 
>> Tuesday, May 22, 2007 12:32 PM
>> To: log4cxx-user@xxxxxxxxxxxxxxxxxx
>> Subject: build failed on solaris 9
>>
>> Hi,
>>
>> I am trying to build log4cxx but fail with the following
>>
>> Buildfile: build.xml
>>
>> BUILD FAILED
>>
>> /export/home/aaggarwal/logging-log4cxx/build.xml:157: Class 
>> org.apache.tools.ant.taskdefs.condition.Not doesn't support the 
>> nested "isset" element.
>>
>> Total time: 0 seconds
>>
>> thanks
>>
>> aditya
>>
>>
>>   
>





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

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
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