Fw: OSX porting attempt

Timothee Besset ttimo at idsoftware.com
Mon Dec 16 16:03:50 EST 2002


One of my fellow GtkRadiant developers (X-Man, is subscribed on this list)
looked at compiling loki_setup on OSX. It looks like it didn't go too bad,
even if we was not able to produce binaries. He was able to compile
loki_setupdb, and do a good part of loki_setup after patching some stuff.
His worked log is attached below.

We are looking at OSX because there has been quite some work done porting
GtkRadiant to Darwin/X. It would be nice if we could get a working OSX
setup.

TTimo

Begin forwarded message:

Date: Fri, 13 Dec 2002 12:32:32 -0500
From: Jon C <champoux at attbi.com>
To: timo at qeradiant.com
Subject: loki_setup


*************
loki_setupdb:
*************
	:Apply patch to md5.c ( md5osx.patch )
	:Add header file endian.h ( from /usr/include/ppc/ )
	:Build
***********
loki_setup:
***********
	:Add header file libintl.h ( from /sw/include/ )
	:Edit plugins/MakeFile; remove all traces of "-Wa,-mall" ... important?
	:Edit dialog/MakeFile; same as above
	:Edit Makefile; Same as above
	:Edit so I can get around this...

	******************************************************
gcc -fsigned-char -funroll-loops -Wall -g -O2 -I. -D_REENTRANT  -I/usr/X11R6/include -I/Users/mute/Desktop/loki_setup/../loki_setupdb -I/sw/include/gnome-xml -I/sw/include/gnome-xml -I/sw/include/libglade-1.0 -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -DENABLE_DIALOG -I/usr/X11R6/include -I/usr/local/include -DSTUB_UI -DSETUP_VERSION_MAJOR=1 -DSETUP_VERSION_MINOR=6 -DSETUP_VERSION_RELEASE=1 -DSETUP_VERSION=\"1.6.1\" -DSU_PATH=\"/usr/bin/su\" -DMOUNT_PATH=\"/sbin/mount\" -DUMOUNT_PATH=\"/sbin/umount\"   -c -o detect.o detect.c
detect.c: In function `is_fs_mounted':
detect.c:182: warning: implicit declaration of function `setmntent'
detect.c:182: `_PATH_MOUNTED' undeclared (first use in this function)
detect.c:182: (Each undeclared identifier is reported only once
detect.c:182: for each function it appears in.)
detect.c:182: warning: initialization makes pointer from integer without a cast
detect.c:184: warning: implicit declaration of function `getmntent'
detect.c:184: warning: assignment makes pointer from integer without a cast
detect.c:185: dereferencing pointer to incomplete type
detect.c:190: warning: implicit declaration of function `endmntent'
detect.c: In function `detect_and_mount_cdrom':
detect.c:412: `_PATH_MNTTAB' undeclared (first use in this function)
detect.c:412: warning: assignment makes pointer from integer without a cast
detect.c:414: warning: assignment makes pointer from integer without a cast
detect.c:415: dereferencing pointer to incomplete type
detect.c:420: dereferencing pointer to incomplete type
detect.c:421: dereferencing pointer to incomplete type
detect.c:422: dereferencing pointer to incomplete type
detect.c:423: dereferencing pointer to incomplete type
detect.c:437: `_PATH_MOUNTED' undeclared (first use in this function)
detect.c:437: warning: assignment makes pointer from integer without a cast
detect.c:439: warning: assignment makes pointer from integer without a cast
detect.c:442: dereferencing pointer to incomplete type
detect.c:445: dereferencing pointer to incomplete type
detect.c:446: dereferencing pointer to incomplete type
detect.c:448: dereferencing pointer to incomplete type
detect.c:456: dereferencing pointer to incomplete type
detect.c:470: dereferencing pointer to incomplete type
detect.c:473: dereferencing pointer to incomplete type
make: *** [detect.o] Error 1
	******************************************************
	
	:Some warnings...
	
	******************************************************
gcc -fsigned-char -funroll-loops -Wall -g -O2 -I. -D_REENTRANT  -I/usr/X11R6/include -I/Users/jonc/Desktop/loki_setup/../loki_setupdb -I/sw/include/gnome-xml -I/sw/include/gnome-xml -I/sw/include/libglade-1.0 -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -DENABLE_DIALOG -I/usr/X11R6/include -I/usr/local/include -DSTUB_UI -DSETUP_VERSION_MAJOR=1 -DSETUP_VERSION_MINOR=6 -DSETUP_VERSION_RELEASE=1 -DSETUP_VERSION=\"1.6.1\" -DSU_PATH=\"/usr/bin/su\" -DMOUNT_PATH=\"/sbin/mount\" -DUMOUNT_PATH=\"/sbin/umount\"   -c -o main.o main.c
main.c:195: illegal expression, found `||'
main.c:195: illegal cast, missing `)' after `log_level'
main.c:195: illegal expression, found `)'
main.c:200: illegal expression, found `else'
main.c:236: illegal external declaration, found `if'
main.c:236: illegal external declaration, missing `;' after `log_level'
main.c:240: illegal external declaration, missing `;' after `log_level'
main.c:272: illegal external declaration, found `switch'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode

gcc -fsigned-char -funroll-loops -Wall -g -O2 -I. -D_REENTRANT  -I/usr/X11R6/include -I/Users/jonc/Desktop/loki_setup/../loki_setupdb -I/sw/include/gnome-xml -I/sw/include/gnome-xml -I/sw/include/libglade-1.0 -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -DENABLE_DIALOG -I/usr/X11R6/include -I/usr/local/include -DSTUB_UI -DSETUP_VERSION_MAJOR=1 -DSETUP_VERSION_MINOR=6 -DSETUP_VERSION_RELEASE=1 -DSETUP_VERSION=\"1.6.1\" -DSU_PATH=\"/usr/bin/su\" -DMOUNT_PATH=\"/sbin/mount\" -DUMOUNT_PATH=\"/sbin/umount\"   -c -o console_ui.o console_ui.c
console_ui.c: In function `console_setup':
console_ui.c:511: warning: int format, long unsigned int arg (arg 3)
	******************************************************

	:Fix some guessing problems(4 places)...  ( /sw/lib/libxml.a = /sw/lib/libxml.dylib on OS X )

	******************************************************
gcc  -o setup log.o install_log.o plugins.o network.o install.o copy.o file.o loki_launchurl.o main.o console_ui.o dialog_ui.o plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a  -L/usr/local/lib  /sw/lib/libxml.a -Wl,-Bstatic  -lz -lm  -lcurses -static
gcc: /sw/lib/libxml.a: No such file or directory
make: *** [setup] Error 1
	******************************************************

	:...

	******************************************************
gcc  -o setup log.o install_log.o plugins.o network.o install.o copy.o file.o loki_launchurl.o main.o console_ui.o dialog_ui.o plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a  -L/usr/local/lib  /sw/lib/libxml.dylib -Wl,-Bstatic  -lz -lm  -lcurses -static
ld: warning -L: directory name (/usr/local/lib) does not exist
ld: unknown flag: -Bstatic
make: *** [setup] Error 1
	******************************************************

	:...

	******************************************************
gcc  -o setup log.o install_log.o plugins.o network.o install.o copy.o file.o loki_launchurl.o main.o console_ui.o dialog_ui.o plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a plugins/libplugins.a dialog/libdialog.a /Users/jonc/Desktop/loki_setup/../loki_setupdb/ppc/libsetupdb.a  -L/sw/lib/libxml.dylib   -lz -lm  -lcurses -static
ld: can't locate file for: -lcrt0.o
make: *** [setup] Error 1
	******************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md5osx.patch
Type: application/octet-stream
Size: 955 bytes
Desc: not available
URL: <http://icculus.org/pipermail/lokisetup/attachments/20021216/5a880d8a/attachment.obj>


More information about the Lokisetup mailing list