ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11"
Anonymous
swell.k at gmail.com
Thu May 27 09:40:04 UTC 2010
The following reply was made to PR ports/146979; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: wahjava at gmail.com (Ashish SHUKLA)
Cc: keramida at freebsd.org (Giorgos Keramidas), Paul Hoffman <phoffman at proper.com>, bug-followup at freebsd.org
Subject: Re: ports/146979: editors/emacs configuration ignores "-D WITHOUT_X11"
Date: Thu, 27 May 2010 09:32:45 +0000
wahjava at gmail.com (Ashish SHUKLA) writes:
> [sorry for the last reply, I pressed C-c C-c instead of C-c C-e.]
>
> Anonymous writes:
>
> [...]
>
>> cc -nostdlib `./prefix-args -Xlinker -L/usr/local/lib -znocombreloc` -Wl,-znocombreloc -o temacs pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o dispnew.o frame.o scroll.o xdisp.o menu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o cm.o term.o terminal.o xfaces.o dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o edi tfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o md5.o terminfo.o lastfile.o gmalloc.o vm-limit.o mktime.o -pthread -L/usr/pkg/lib -ldbus-1 -lutil -lncurses -lm -lgcc -lc -lgcc /usr/lib/crtn.o
>> /usr/pkg/lib/libdbus-1.so: undefined reference to `pthread_condattr_destroy'
>> /usr/pkg/lib/libdbus-1.so: undefined reference to `pthread_condattr_init'
>> /usr/pkg/lib/libdbus-1.so: undefined reference to `pthread_condattr_setclock'
>> collect2: ld returned 1 exit status
>
>> I guess it expects `-lpthread' not `-pthread' in `pkg-config dbus-1 --libs'
>> output.
>
> I assume you're on FreeBSD 6.x. Correct me, if I'm wrong.
No. gcc45 + binutils-2.20 but I can reporoduce using old toolchain from /usr/bin.
$ uname -vm
FreeBSD 9.0-CURRENT #0 r208557=0462081-dirty: Wed May 26 02:05:21 UTC 2010 .../sys/PHOENIX amd64
>
> BtW, we already discussed this, and according to Pav (pav@), '-pthread' is the
> way to go, not '-lpthread'.
I'm aware that ports should use ${PTHREAD_LIBS} (-pthread) but it may be
because of linking flags, e.g. `-nostdlib'.
More information about the freebsd-ports-bugs
mailing list