Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Mac OS » plugin/ndisasm doesn't compile due to snprintf etc. errors
plugin/ndisasm doesn't compile due to snprintf etc. errors [message #33761] Sun, 11 September 2011 04:10 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
On OSX svn r3849 plugin/ndisasm doesn't compile due to snprintf etc. errors. In my own version I had excluded ndisasm and have other changes but I wanted to test vanilla upp ide and it didnt go well.

/upp-google/trunk/uppsrc/plugin/ndisasm/lib/compiler.h:91: error: expected declaration specifiers or '...' before numeric constant


which is
#ifndef HAVE_SNPRINTF
# ifdef HAVE__SNPRINTF
#  define snprintf _snprintf
# else
int snprintf(char *, size_t, const char *, ...);
# endif
#endif


I remember I spend a lot of time trying to fix this and related ndisasm things but can't remember how and how far I went... but then lost patience and excluded it altogether.
Does anyone have or had ndisasm working on OSX11 or *BSDs?
Re: plugin/ndisasm doesn't compile due to snprintf etc. errors [message #33801 is a reply to message #33761] Wed, 14 September 2011 17:44 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Ok, I fixed it and hope to debug theide with theide. There were a few problems. One that I have mixed ports. macports and archlinux pacman system. macports XQuartz and apple old X11.
If I anyone interested, at the moment I only need to use
#define _FORTIFY_SOURCE 0 
which switches to "unsafe" sprintf family.
Re: plugin/ndisasm doesn't compile due to snprintf etc. errors [message #33881 is a reply to message #33801] Wed, 21 September 2011 05:17 Go to previous message
daveremba is currently offline  daveremba
Messages: 32
Registered: June 2011
Location: Los Angeles, CA, USA
Member
I downloaded the nasm package (the same older
version UPP used) and ran. /configure

Then I used the new header it creates.

The windows header is different.

Glad you solved it (differently).

Dave
Previous Topic: Upp Core compiles natively on Xcode (download Core.xcodeproj)
Next Topic: Solution howto enable upp Multithreading with TLS on MacOSX.
Goto Forum:
  


Current Time: Thu Mar 28 11:16:44 CET 2024

Total time taken to generate the page: 0.00922 seconds