Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: comms/asterisk18 build failure on current/amd64



On Thu, Oct 06, 2011 at 08:38:15PM +0000, Christos Zoulas wrote:
> In article <20111006203001.GD804%danbala.tuwien.ac.at@localhost>,
> Thomas Klausner  <wiz%NetBSD.org@localhost> wrote:
> >On Thu, Oct 06, 2011 at 11:55:34AM -0600, Sverre Froyen wrote:
> >>    [LD] ../res/res_adsi.o abstract_jb.o acl.o alaw.o aoc.o app.o 
> >> ast_expr2.o 
> >> ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o 
> >> autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o 
> >> chanvars.o 
> >> cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o 
> >> dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o 
> >> framehook.o 
> >> fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o 
> >> indications.o 
> >> io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o
> >netsock2.o 
> >> pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o 
> >> sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o 
> >> stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o 
> >> threadstorage.o 
> >> timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o 
> >> editline/libedit.a db1-ast/libdb1.a  -> asterisk
> >> ld: asterisk: local symbol `__progname' in /usr/lib/crt0.o is referenced 
> >> by 
> >> DSO
> >> ld: final link failed: Bad value
> >> 
> >> Looks like __progname is defined in  /usr/lib/crt0.o and used by libc.
> >> 
> >> $ gcc --version
> >> gcc (NetBSD nb2 20110806) 4.5.3
> >> 
> >> $ ld --version
> >> GNU ld (NetBSD Binutils nb1) 2.21.1
> >
> >I see a similar problem with mono:
> >mv -f .deps/mono-main.Tpo .deps/mono-main.Po
> >/bin/sh ../../libtool --quiet --tag=CC   --mode=link gcc -I../..
> >-I../../eglib/src -I../../eglib/src    -DHAVE_BOEHM_GC -DHAVE_GC_H
> >-DUSE_INCLUDED_LIBGC -DHAVE_GC_GCJ_MALLOC -DHAVE_GC_ENABLE
> >-I../../libgc/include -O2 -I/usr/include -I/usr/pkg/include
> >-fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
> >-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes 
> >-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
> >-Wwrite-strings -mno-tls-direct-seg-refs  -export-dynamic
> >-Wl,-version-script=./ldscript.mono   -L/usr/lib -Wl,-R/usr/lib
> >-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -o mono mono-main.o
> >libmono-static.la -L../../eglib/src -leglib -lm   -lm  -lm   -lpthread
> >*** [buildlink3] Warning: libtool replaced -leglib with
> >../../eglib/src/libeglib.la
> >ld: mono: local symbol `__progname' in /usr/lib/crt0.o is referenced by DSO
> >ld: final link failed: Bad value
> >gmake[4]: *** [mono] Error 1
> >
> >5.99.56/20111005/amd64 with same gcc and ld as Sverre.
> > Thomas
> 
> I've had enough and I fixed it in libc. cvs update.

I've cvs updated and rebuilt mono (not the packages it depends upon).
This still fails with:

echo '#! /bin/sh' > _tmpinst/bin/gmcs ; \
r=`pwd`; m=`cd /scratch/lang/mono/work/mono-2.10.2/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_2_0/gmcs.exe"'" "$@"' 
>> _tmpinst/bin/gmcs ; \
chmod +x _tmpinst/bin/gmcs
echo '#! /bin/sh' > _tmpinst/bin/dmcs ; \
r=`pwd`; m=`cd /scratch/lang/mono/work/mono-2.10.2/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_0/dmcs.exe"'" "$@"' 
>> _tmpinst/bin/dmcs ; \
chmod +x _tmpinst/bin/dmcs
echo '#! /bin/sh' > _tmpinst/bin/al2 ; \
r=`pwd`; m=`cd /scratch/lang/mono/work/mono-2.10.2/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_2_0/al.exe"'" "$@"' 
>> _tmpinst/bin/al2 ; \
chmod +x _tmpinst/bin/al2
echo '#! /bin/sh' > _tmpinst/bin/al ; \
r=`pwd`; m=`cd /scratch/lang/mono/work/mono-2.10.2/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_0/al.exe"'" "$@"' 
>> _tmpinst/bin/al ; \
chmod +x _tmpinst/bin/al
if test -w /scratch/lang/mono/work/mono-2.10.2/mcs; then :; else chmod -R +w 
/scratch/lang/mono/work/mono-2.10.2/mcs; fi
cd /scratch/lang/mono/work/mono-2.10.2/mcs && /usr/pkg/bin/gmake NO_DIR_CHECK=1 
PROFILES='net_2_0 net_3_5  net_4_0  ' CC='gcc' all-profiles
gmake[3]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
/usr/pkg/bin/gmake profile-do--net_2_0--all profile-do--net_3_5--all 
profile-do--net_4_0--all
gmake[4]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
/usr/pkg/bin/gmake PROFILE=basic all
gmake[5]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
/bin/sh .//mkinstalldirs build/deps
mkdir -p -- build/deps
touch build/deps/.stamp
gmake[6]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
gmake[6]: gmcs: Command not found
gmake[6]: *** [build/deps/basic-profile-check.exe] Error 127
gmake[6]: Leaving directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
gmake[6]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
gmake[7]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
gmake[8]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
[1]   Abort trap (core dumped) MONO_PATH=".//cl...
gmake[8]: *** [build/deps/basic-profile-check.exe] Error 134
gmake[8]: Leaving directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
gmake[8]: Entering directory `/scratch/lang/mono/work/mono-2.10.2/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'

 Thomas


Home | Main Index | Thread Index | Old Index