From owner-freebsd-questions Mon Jul 23 10:51:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from johnson.mail.mindspring.net (johnson.mail.mindspring.net [207.69.200.177]) by hub.freebsd.org (Postfix) with ESMTP id 5724337B405; Mon, 23 Jul 2001 10:51:40 -0700 (PDT) (envelope-from sigsegv@mindspring.com) Received: from mindspring.com (1Cust201.tnt1.grapevine.tx.da.uu.net [63.23.235.201]) by johnson.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id NAA11805; Mon, 23 Jul 2001 13:51:32 -0400 (EDT) Message-ID: <3B5C6433.4090602@mindspring.com> Date: Mon, 23 Jul 2001 12:51:47 -0500 From: Phillip Neiswanger User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20010131 Netscape6/6.01 X-Accept-Language: en MIME-Version: 1.0 To: Mike Meyer Cc: questions@freebsd.org, kuriyama@freebsd.org Subject: Re: Palm Pilot programming and PRC-Tools References: <15194.19831.865217.305940@guru.mired.org> <3B5B646C.7000600@mindspring.com> <15195.26904.437254.715772@guru.mired.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks again Mike. Comments at the end. Mike Meyer wrote: > Phillip Neiswanger types: > >> Mike Meyer wrote: >> >>> Phillip Neiswanger types: >>> >>>> I'm trying to get the helloworld program that comes with >>>> "Palm OS Programming Bible" to compile, but I'm having a few problems. >>> >>> This is *definitely* the wrong list to ask these questions on. Try: >>> >>> Pilot-unix mailing list >>> Pilot-unix@hcirisc.cs.binghamton.edu >>> http://hcirisc.cs.binghamton.edu/mailman/listinfo/pilot-unix >> >> Thanks Mike. I will definitely move my conversation to that list. >> However, my reason for starting here was that I felt the packages supplied >> had problems. I won't make that claim now, but I do think they are >> incomplete at this time. To make them complete I think packages for the >> sdk and for prc-tools-2.0 proper should be provided. > > > How old is your ports tree? Installing the prc-tools on mine will pick > up the palmos sdk port and the other two parts of the prc-tools stuff > as well. > > They've radically reorganized the palm developer stuff since the last > time I did Palm programming, but it looks like it all ought to be > there after you install prc-tools. > > > >>>> I'm running FreeBSD 4.3 generic and I have the following palm oriented >>>> packages installed. >>>> >>>> palmpower-1.0.2 Disassembler and other tools for PalmOS binaries >>>> pilot-link-0.9.3 PalmPilot communications utilities >>>> pilot_makedoc-0.7a Converts text into the Doc format used by PalmPilots >>>> pose-3.1 Palm OS(R) Emulator >>>> prc-tools-binutils-2.0 >>>> PRC-tools for Palm OS (binutils part) >>>> prc-tools-gcc-2.0 >>>> PRC-tools for Palm OS (gcc part) >>>> >>>> I created the following directory tree in /usr/local. >>>> >>>> /usr/local/palmdev/sdk -> sdk-3.5 >>>> /usr/local/palmdev/sdk-3.5/include -> ~pgn/palmPilot/palmOS3.5/Palm OS 3.5 >>>> Support/Incs >>>> /lib -> ~pgn/palmPilot/palmOS3.5/Palm OS 3.5 >>>> Support/GCC Libraries >>>> >>>> When I compile the program I get the following: >>>> >>>> pgn> make >>>> m68k-palmos-gcc -I. -O2 -c hello.c -o hello.o >>>> hello.c: In function `SaySomething': >>>> hello.c:26: warning: assignment makes pointer from integer without a cast >>>> m68k-palmos-gcc -I. -O2 hello.o -o hello >>>> /usr/local/pilot/m68k-palmos/bin/ld: cannot open crt0.o: No such file or >>>> directory >>>> collect2: ld returned 1 exit status >>>> gmake: *** [hello] Error 1 >>>> >>>> As far as I can tell there isn't any crt0.o associated with the prc-tools >>>> installation. What am I missing? Is there some additional software I >>>> need to install. More symlinks? What? >>> >>> There's a crt0.o in the prc-tools package. ld comes in the >>> prc-tools-binutils package. I'm surprised that the latter doesn't find >>> the former. A symlink should fix it - but it shouldn't be needed. >> >> I was under the misconception that I only needed the prc-tools package if I >> wanted to build from source. I've downloaded it now, but have yet to build >> a crt0.o. Lots of little problems to overcome I guess. I can't even get a >> build from source to work yet. Ah well... I'll get it one of these times. > > > All you should need is the prc-tools package. The pkg-plist for it > shows that installing it installs your crt0.o - you don't have to > build it. > > Try doing "pkg_info -L prc-tools-2.0, and check to see if it lists > crt0.o. If it doesn't, then your ports tree may need updating. If it > does, it will include the full path to the file, and you can check to > see if it's there. Currently, there is not a prc-tools-2.0 package on the 4.3 CDs, or the FreeBSD ftp site. This is the case for both 4.3 and current. The reason that the package is missing is that the makefile relies on a url pointing to www.palmos.com... This url is no longer usable and should be updated to www.sourceforge.org. Anyway, I cannot build the binutils and gcc from source, however, I have managed to get the crt0.o and related files built so I'm now passed that problem. I still have some problems, here is hopefully the last: pgn> make m68k-palmos-gcc -I. -O2 hello.o -o hello hello.o(.text+0x4c):hello.c: undefined reference to `FrmGetObjectPrt' collect2: ld returned 1 exit status gmake: *** [hello] Error 1 Can't see what I'm doing wrong yet, but I'll figure it out. -- phil To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message