On 5/28/12 11:14 AM, Héctor Urbina wrote:
> Hello,
> 
> I have the following error when building torque-shlibs:
> 
> make[2]: Entering directory
> `/sw/src/fink.build/torque-2.4.6-5/torque-2.4.6/src/iff'
> gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include  -I../../src/include
> -I/sw/include  -Os -W -Wall -Wno-unused-parameter -Wno-long-long
> -pedantic -Werror -c iff2.c
> iff2.c: In function 'main':
> iff2.c:153:7: error: variable 'PBSLOGLEVEL' set but not used
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
> make[2]: *** [iff2.o] Error 1
> make[2]: Leaving directory
> `/sw/src/fink.build/torque-2.4.6-5/torque-2.4.6/src/iff'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/sw/src/fink.build/torque-2.4.6-5/torque-2.4.6/src'
> make: *** [all-recursive] Error 1
> make: Leaving directory `/sw/src/fink.build/torque-2.4.6-5/torque-2.4.6'
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-torque-2.4.6-5
> (Reading database ... 51655 files and directories currently installed.)
> Removing fink-buildlock-torque-2.4.6-5 ...
> Failed: phase compiling: torque-2.4.6-5 failed
> 
> System information:
> Package manager version: 0.32.6
> Distribution version: selfupdate-rsync Mon May 28 12:55:00 2012, 10.6, i386
> Trees: local/main stable/main
> Xcode: 3.2.6
> Max. Fink build jobs:  16
> 
> I guess that removing -Werror from CXXFLAGS would solve the problem,
> but I don't know how to do that, can somebody help me?
> 

(it's CFLAGS; it's not building with g++)

The package description doesn't set -Werror, and, in fact, the
maintainer has attempted to _remove_ the use of that.  It wasn't a
complete removal, however.

I didn't get a failure on a 10.6 machine with the same Xcode and  Fink
tree setup as yours, so something else is different in how it's building
on your machine than mine.  It might be worth capturing a build log (in
/private/tmp) via "fink -l build torque", and compare to what I've posted at

http://akh.users.finkproject.org/finklogs/logfiles/fink-build-log_torque_2.4.6-5_2012.05.28-11.50.05

I recommend using "fink configure" to set the number of build jobs to 1
temporarily to make it easier to compare the two logs.

We can certainly turn off all of the -Werror, but it would be preferable
to find out if there's a missing dependency which is causing your problem.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to