Unable to make buildworld: undefined reference to `arc4random_uniform'

Installing and upgrading FreeBSD.

Unable to make buildworld: undefined reference to `arc4random_uniform'

Postby Sephiroth » 01 Aug 2010, 21:11

I just upgraded to FreeBSD 8 from 7.2, and things went basically smoothly. I ran freebsd-update; I'm currently rebuilding all the installed ports with portupgrade -af, things are going well. However, I have several service jails on this machine, configured according to the handbook (http://www.freebsd.org/doc/handbook/jails-application.html), and I need to upgrade them as well. Step one is to go to /usr/src and make buildworld and then make installworld to my shared jail environment. However, I am unable to do this; I get this error during buildworld:

Code: Select all
...
cc -O2 -pipe   -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c
cc -O2 -pipe   -I/usr/obj/usr/src/tmp/legacy/usr/include  -static -L/usr/obj/usr/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy
strfile.o(.text+0x895): In function `main':
: undefined reference to `arc4random_uniform'
*** Error code 1

Stop in /usr/src/games/fortune/strfile.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

I have been googling for a long time about this, and have found lots of copies of another person running into this, but no answers.

I updated my source tree with csup; I used the standard-supfile from the examples with a nearby mirror; I get the same error, same place. Can anybody help me out with this? It seems like this should just work, I haven't modified anything and I'm running the generic kernel. Thanks for any help!

PS: Does freebsd-update update the source tree automatically, or do I need to run the seperate csup to do that?
Sephiroth
Junior Member
 
Posts: 22
Joined: 14 Apr 2010, 06:28

Postby fronclynne » 01 Aug 2010, 23:44

You may as well run a separate csup to be sure. You can check with [cmd=""]grep REVISION /usr/src/sys/conf/newvers.sh[/cmd].

I cannae say what your problem is exactly, but you can (probably) work around it by defining "WITHOUT_GAMES=" in your [man=5]src.conf[/man]. Unless you really need games in your jails.
[color="DimGray"]Quid habemus reliquum?
Nutrimentum anatum![/color]
[color="Teal"]Внимание: лифт вниз не поднимает[/color]
User avatar
fronclynne
Senior Member
 
Posts: 1297
Joined: 09 Feb 2009, 04:47
Location: Lunch Time

Postby DutchDaemon » 02 Aug 2010, 00:48

Sephiroth wrote:PS: Does freebsd-update update the source tree automatically, or do I need to run the seperate csup to do that?


Up to you. See [man=5]freebsd-update.conf[/man] and [file]/etc/freebsd-update.conf[/file].
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby SirDice » 02 Aug 2010, 14:02

Is there anything in [file]/etc/make.conf[/file] and/or [file]/etc/src.conf[/file]?
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16166
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby Sephiroth » 03 Aug 2010, 06:29

I did managed to get Buildworld to work, after I did an upgrade via freebsd-update from 8.0 to 8.1 It must have caught whatever was screwed up. Thanks for your time... now I'm trying to upgrade the jails again and running into problems. I'm going to post a new thread about that.
Sephiroth
Junior Member
 
Posts: 22
Joined: 14 Apr 2010, 06:28


Return to Installing & Upgrading

Who is online

Users browsing this forum: Juanitou and 1 guest