Author Topic: The Gurbalib resurrection project  (Read 15289 times)

Offline Thingol

  • Acquaintance
  • *
  • Posts: 2
    • View Profile
Re: The Gurbalib resurrection project
« Reply #15 on: August 15, 2009, 10:41:42 am »
I'm having a bit of a problem running the installing script on Cygwin on Windows 7, I had the same problem earlier with Windows Vista. The error did not happen with DGD version 1.2.143 and lower. Perhaps someone here has a solution for it?
The error:

cp unix/random.c random.c
gcc -I. -I.. -DDARWIN -DNETWORK_PACKAGE -DINET6=0 -DUSE_NONBLOCK  -O -g  -c -o random.o random.c
random.c:3: error: conflicting types for 'random'
/usr/include/cygwin/stdlib.h:27: error: previous declaration of 'random' was here
random.c:3: error: conflicting types for 'random'
/usr/include/cygwin/stdlib.h:27: error: previous declaration of 'random' was here
make[1]: *** [random.o] Error 1
make[1]: Leaving directory `/home/gurbalib/src/host'
make: *** [a.out] Error 2

Offline Aidil

  • Friend
  • **
  • Posts: 50
    • View Profile
    • Way of the Force
Re: The Gurbalib resurrection project
« Reply #16 on: August 15, 2009, 06:04:10 pm »
I don't have cygwin at hand here, so can't really look at it myself, but you may want to try the following

Code: [Select]
cd src/host
cp Makefile.sysv Makefile

And then try your compile again.
Way of the Force

A Star Wars LPMud
wotf.org port 23

Offline Thingol

  • Acquaintance
  • *
  • Posts: 2
    • View Profile
Re: The Gurbalib resurrection project
« Reply #17 on: August 15, 2009, 06:16:48 pm »
Regrettably, that generates another error. This one in connect.c
In function `ipa_run'
connect.c:112: error: assignment of read_only location
make[1]: *** [connect.o] Error 1

Offline Aidil

  • Friend
  • **
  • Posts: 50
    • View Profile
    • Way of the Force
Re: The Gurbalib resurrection project
« Reply #18 on: August 16, 2009, 04:12:52 pm »
For the time being, when using the network package (as the line number suggests), you can comment out line 112 since it is not needed in case of the network package anyway. Next dgd update will probably solve this properly.

Aidil
Way of the Force

A Star Wars LPMud
wotf.org port 23

Offline Aidil

  • Friend
  • **
  • Posts: 50
    • View Profile
    • Way of the Force
Re: The Gurbalib resurrection project
« Reply #19 on: August 17, 2009, 09:35:14 am »
For the time being, when using the network package (as the line number suggests), you can comment out line 112 since it is not needed in case of the network package anyway. Next dgd update will probably solve this properly.

Aidil

Next update to dgd that fixes this compilation problem is avaible now, and has been merged into the gurbalib repository.

Aidil
Way of the Force

A Star Wars LPMud
wotf.org port 23