Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

x11/sessreg: build fails with CLANG in FreeBSD 9.0-PRERELEASE

7 views
Skip to first unread message

O. Hartmann

unread,
Dec 20, 2011, 5:13:14 AM12/20/11
to
On a freshly updated box the installation of x11/sessreg fails with the
shown message below.
On all boxes I run with FBSD 9 or 10 (all amd64, CLANG build) the build
and installation works fine.

Since I update the box from 8.2-STABLE to 9.0-PRE last night, cleaning
up all ports and having them rebuilt from scratch, I guess I have a
problem with remnants (or missing compatibility?) in the system.

Where to start looking? ttyslot looks like a base system function.


Regards, thanks in advance,
Oliver

===> Building for sessreg-1.0.7
/usr/bin/make all-recursive
Making all in man
GEN filenames.sed
GEN sessreg.1
CC sessreg.o
sessreg.c:281:27: warning: implicit declaration of function 'ttyslot' is
invalid in C99 [-Wimplicit-function-declaration]
sysnerr (slot_number = ttyslot (), "ttyslot");
^
1 warning generated.
CCLD sessreg
sessreg.o: In function `main':
sessreg.c:(.text+0x7bf): undefined reference to `ttyslot'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** Error code 1

Stop in /usr/ports/x11/sessreg/work/sessreg-1.0.7.
*** Error code 1

Stop in /usr/ports/x11/sessreg/work/sessreg-1.0.7.
*** Error code 1

Stop in /usr/ports/x11/sessreg/work/sessreg-1.0.7.
*** Error code 1

Stop in /usr/ports/x11/sessreg.

signature.asc

O. Hartmann

unread,
Dec 20, 2011, 5:32:18 AM12/20/11
to
Sorry for the noise.

As I gave myself the answer, some remnants polluted the system and I got
rid by simply call the propper make delete-old-libs/files in /usr/src.

Oliver

signature.asc

Michiel Boland

unread,
Dec 20, 2011, 5:49:05 AM12/20/11
to
On 12/20/2011 11:13, O. Hartmann wrote:
> On a freshly updated box the installation of x11/sessreg fails with the
> shown message below.
> On all boxes I run with FBSD 9 or 10 (all amd64, CLANG build) the build
> and installation works fine.
>
> Since I update the box from 8.2-STABLE to 9.0-PRE last night, cleaning
> up all ports and having them rebuilt from scratch, I guess I have a
> problem with remnants (or missing compatibility?) in the system.
>
> Where to start looking? ttyslot looks like a base system function.

Looks like you still have /usr/include/utmp.h
Do 'make delete-old' in /usr/src

Cheers
Michiel
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stabl...@freebsd.org"

O. Hartmann

unread,
Dec 20, 2011, 6:08:48 AM12/20/11
to
On 12/20/11 11:49, Michiel Boland wrote:
> On 12/20/2011 11:13, O. Hartmann wrote:
>> On a freshly updated box the installation of x11/sessreg fails with the
>> shown message below.
>> On all boxes I run with FBSD 9 or 10 (all amd64, CLANG build) the build
>> and installation works fine.
>>
>> Since I update the box from 8.2-STABLE to 9.0-PRE last night, cleaning
>> up all ports and having them rebuilt from scratch, I guess I have a
>> problem with remnants (or missing compatibility?) in the system.
>>
>> Where to start looking? ttyslot looks like a base system function.
>
> Looks like you still have /usr/include/utmp.h
> Do 'make delete-old' in /usr/src
>
> Cheers
> Michiel

Hello.

Seconds after I wrote and sent the posting I remembered about cleaning
up the system ... I did and everything runs smooth and well now.

Thanks.

Oliver

signature.asc

lkpan...@gmail.com

unread,
Dec 10, 2017, 6:57:52 AM12/10/17
to
I m facing this error how to solve ?
0 new messages