Compiling on NetBSD

All your MAngband related technical questions answered. Problems compiling or running the game/server? No problem! Ask here.
Post Reply
xeitgeist
Blubbering Idiot
Posts: 1
Joined: Wed 04.08.2010, 23:08

Compiling on NetBSD

Post by xeitgeist » Thu 05.08.2010, 01:12

I'm running NetBSD 5.0.1 and I can't get Mangband to compile. I tried compiling with USE_GCU, USE_CAP, and USEHARDCODE and none of them worked. I don't have x11 or sdl, but it should compile without these, so I'm not sure what's wrong.

Make log: http://pastebin.com/TFqZSeth
Configure log: http://pastebin.com/tkuTNZeg

User avatar
Flambard
King Vampire
Posts: 259
Joined: Wed 20.06.2007, 10:49

Re: Compiling on NetBSD

Post by Flambard » Sun 08.08.2010, 18:43

Hi there!

Two following changes are to be done to allow NetBSD compile with base libcurses:
1. Remove/comment '#define USE_NCURSES' from src/config.h
2. Apply the following patch:

Code: Select all

--- src/client/main-gcu.c	2009-04-27 18:52:36.000000000 +0400
+++ src/client/main-gcu.c	2010-08-09 05:04:15.000000000 +0400
@@ -491,7 +491,7 @@
 		mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
 #else
 		/* this moves curses to bottom right corner */
-		mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+		mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
 #endif
 
 		/* Exit curses */
@@ -569,7 +569,7 @@
 	mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
 #else
 	/* This moves curses to bottom right corner */
-	mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
+	mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
 #endif
 
 	/* Flush the curses buffer */
Thank you for bringing this to our attention. Next version will have those fixes included and will probably support BSD make as well.

Notes:
This probably won't work if you have ncurses installed from pkgsrc.
Your machine hostname MUST be specified and non-empty for client not to crash.
CAP client is not to be used and is unsupported for a very long time now :(

yelm
Balrog
Posts: 2603
Joined: Mon 29.09.2025, 11:04

Re: Compiling on NetBSD

Post by yelm » Sun 02.11.2025, 07:01

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Post Reply