[Fink-users] USB serial modem works with minicom, but not with ...

2009-11-30 Thread Lothar Behrens
Hi,

I think I could ask here. I have a hardware that uses a USB connector  
over that I can communicate with the device.
It is a Avent Spartan 3 Eval board. The software that does not work is  
ASTriAEKiPro. The author doesn't have a Mac, so I
will investigate some of the debugging tasks.

I think the serial communication is not properly set up. Below is the  
function that is used to set up the communication.

Could anyone see some mistake or missing stuff?

The code will work on Mac OS X using Debian Etch. So it is no hardware  
problem but maybe some defaults are different.
When I use minicom with 115200 8N1 and Hardware flow control, I can  
communicate with the board.

Any hints?

My system is a Mac OS X 10.5.8.

ASTriAEKiPro  is from http://sourceforge.net/projects/fpgalibre/

Thanks

Lothar

/ 
**[txh 
]

   Copyright (c) 2009 Salvador E. Tropea salvador at inti gob ar
   Copyright (c) 2009 Instituto Nacional de TecnologÌa Industrial

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   Title: ASTriAEKiPro

   Description:
   Avnet Spartan 3A Eval Kit programmer.
   This program can send an FPGA configuration to the Spartan 3A, the  
serial
SPI flash or the parallel flash.

   Acknowledgements:
   * I took some ideas from Jason Milldrum avs3a tool.
   * Bryan Fletcher (from Avnet) provided the information needed to  
use the
   BPI server.
   * The bpi_server_v036.h file is the bitstream for Avnet's BPI server
   version 036. Coded by Bryan Fletcher and Ron Wright.
   * Most of the programming information comes from the following  
documents
   provided by Avnet:
   Spartan3A_Eval_Programming_Algorithms_v1_0.pdf
   Spartan3A_Eval_PSoC_SoftwareUserGuide_v1_0.pdf
   avt_s25fl128p_64kb.sfh

***/

void ComSerie::Initialize()
  throw(ExOpen,std::bad_alloc)
{
  struct termios newtio;
  struct sigaction saio;   /* definition of signal action */
  sigset_t block_mask;

  if (initialized)
 ShutDown();
  bytesEsperados=-1;


  if (ttyName)
 fd=open(ttyName,O_RDWR | O_NOCTTY | O_NONBLOCK);
  else
{
 char dev[32];
 sprintf(dev,/dev/ttyS%d,port100  port=0 ? port : 0);
 /* open the device to be non-blocking (read will return  
immediatly) */
 fd=open(dev,O_RDWR | O_NOCTTY | O_NONBLOCK);
}
  if (fd0)
 throw ExOpen();
  //printf(Nuevo file descriptor de la comunicaciÛn: %d\n,fd);

  // Este sigset es para bloquear las signals durante la copia del  
buffer
  if (!blockMaskInitialized)
{
 blockMaskInitialized=1;
 if (CPPFIO_ComSerie_USE_THREAD)
pthread_mutex_init(mutex,NULL);
 else
sigaddset(blockMask,SIGIO);
}

  if (!SHSignalOn)
{
 SHSignalOn=1;
 // install the signal handler before making the device asynchronous
 saio.sa_handler=SignalHandlerIO;
 // Block other terminal-generated signals while handler runs.
 sigemptyset(block_mask);
 sigaddset(block_mask,SIGINT);
 sigaddset(block_mask,SIGQUIT);
 saio.sa_mask=block_mask;
 saio.sa_flags=0;
 if (!CPPFIO_ComSerie_USE_THREAD)
   {// No SIGIO support in Cygwin
#ifndef __CYGWIN__
   // Modified: Lothar Behrens
   // Also not on Mac OS X
//saio.sa_restorer=NULL;
#endif
sigaction(SIGIO,saio,NULL);
   }
}

  if (CPPFIO_ComSerie_USE_THREAD)
{// Cygwin approach: a new thread
 pthread_create(pollThread,NULL,PollInput,this);
}
  else
{// allow the process to receive SIGIO
 fcntl(fd,F_SETOWN,getpid());
 // Make the file descriptor asynchronous (the manual page says only
 //   O_APPEND and O_NONBLOCK, will work with F_SETFL...)
 fcntl(fd,F_SETFL,FASYNC);
}

  tcgetattr(fd,oldtio); /* save current port settings */
  bzero(newtio,sizeof(newtio)); /* clear struct for new port settings  
*/
  /* set new port settings for canonical input processing */

  newtio.c_cflag=br | CS8 | CREAD | /*CSTOPB |*/ CLOCAL;
  newtio.c_iflag=IGNPAR;
  newtio.c_oflag=0;
  newtio.c_lflag=0;//ICANON; No funca para streams de bytes
  newtio.c_cc[VMIN]=0; /* blocking read until 1 character arrives */
  newtio.c_cc[VSTART]=_POSIX_VDISABLE;
  newtio.c_cc[VSTOP]=_POSIX_VDISABLE;
  newtio.c_cc[VINTR]=_POSIX_VDISABLE;
  newtio.c_cc[VQUIT]=_POSIX_VDISABLE;
  

Re: [Fink-users] USB serial modem works with minicom, but not with ...

2009-11-30 Thread Lothar Behrens
Also missing is that I have a Mac mini (PowerPC)

Am 30.11.2009 um 15:38 schrieb Lothar Behrens:

 Hi,

 I think I could ask here. I have a hardware that uses a USB connector
 over that I can communicate with the device.
 It is a Avent Spartan 3 Eval board. The software that does not work is
 ASTriAEKiPro. The author doesn't have a Mac, so I
 will investigate some of the debugging tasks.

 I think the serial communication is not properly set up. Below is the
 function that is used to set up the communication.

 Could anyone see some mistake or missing stuff?

 The code will work on Mac OS X using Debian Etch. So it is no hardware
 problem but maybe some defaults are different.
 When I use minicom with 115200 8N1 and Hardware flow control, I can
 communicate with the board.

 Any hints?

 My system is a Mac OS X 10.5.8.

 ASTriAEKiPro  is from http://sourceforge.net/projects/fpgalibre/

 Thanks

 Lothar

 /
 **[txh
 ]

   Copyright (c) 2009 Salvador E. Tropea salvador at inti gob ar
   Copyright (c) 2009 Instituto Nacional de TecnologÌa Industrial

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   Title: ASTriAEKiPro

   Description:
   Avnet Spartan 3A Eval Kit programmer.
   This program can send an FPGA configuration to the Spartan 3A, the
 serial
 SPI flash or the parallel flash.

   Acknowledgements:
   * I took some ideas from Jason Milldrum avs3a tool.
   * Bryan Fletcher (from Avnet) provided the information needed to
 use the
   BPI server.
   * The bpi_server_v036.h file is the bitstream for Avnet's BPI server
   version 036. Coded by Bryan Fletcher and Ron Wright.
   * Most of the programming information comes from the following
 documents
   provided by Avnet:
   Spartan3A_Eval_Programming_Algorithms_v1_0.pdf
   Spartan3A_Eval_PSoC_SoftwareUserGuide_v1_0.pdf
   avt_s25fl128p_64kb.sfh

 ***/

 void ComSerie::Initialize()
  throw(ExOpen,std::bad_alloc)
 {
  struct termios newtio;
  struct sigaction saio;   /* definition of signal action */
  sigset_t block_mask;

  if (initialized)
 ShutDown();
  bytesEsperados=-1;


  if (ttyName)
 fd=open(ttyName,O_RDWR | O_NOCTTY | O_NONBLOCK);
  else
{
 char dev[32];
 sprintf(dev,/dev/ttyS%d,port100  port=0 ? port : 0);
 /* open the device to be non-blocking (read will return
 immediatly) */
 fd=open(dev,O_RDWR | O_NOCTTY | O_NONBLOCK);
}
  if (fd0)
 throw ExOpen();
  //printf(Nuevo file descriptor de la comunicaciÛn: %d\n,fd);

  // Este sigset es para bloquear las signals durante la copia del
 buffer
  if (!blockMaskInitialized)
{
 blockMaskInitialized=1;
 if (CPPFIO_ComSerie_USE_THREAD)
pthread_mutex_init(mutex,NULL);
 else
sigaddset(blockMask,SIGIO);
}

  if (!SHSignalOn)
{
 SHSignalOn=1;
 // install the signal handler before making the device  
 asynchronous
 saio.sa_handler=SignalHandlerIO;
 // Block other terminal-generated signals while handler runs.
 sigemptyset(block_mask);
 sigaddset(block_mask,SIGINT);
 sigaddset(block_mask,SIGQUIT);
 saio.sa_mask=block_mask;
 saio.sa_flags=0;
 if (!CPPFIO_ComSerie_USE_THREAD)
   {// No SIGIO support in Cygwin
#ifndef __CYGWIN__
  // Modified: Lothar Behrens
  // Also not on Mac OS X
//saio.sa_restorer=NULL;
#endif
sigaction(SIGIO,saio,NULL);
   }
}

  if (CPPFIO_ComSerie_USE_THREAD)
{// Cygwin approach: a new thread
 pthread_create(pollThread,NULL,PollInput,this);
}
  else
{// allow the process to receive SIGIO
 fcntl(fd,F_SETOWN,getpid());
 // Make the file descriptor asynchronous (the manual page says  
 only
 //   O_APPEND and O_NONBLOCK, will work with F_SETFL...)
 fcntl(fd,F_SETFL,FASYNC);
}

  tcgetattr(fd,oldtio); /* save current port settings */
  bzero(newtio,sizeof(newtio)); /* clear struct for new port settings
 */
  /* set new port settings for canonical input processing */

  newtio.c_cflag=br | CS8 | CREAD | /*CSTOPB |*/ CLOCAL;
  newtio.c_iflag=IGNPAR;
  newtio.c_oflag=0;
  newtio.c_lflag=0;//ICANON; No funca para streams de bytes
  newtio.c_cc[VMIN]=0; /* blocking read until 1 character arrives  
 */
  newtio.c_cc[VSTART]=_POSIX_VDISABLE;
  

[Fink-users] Fwd: Error building gd2-2.0.35-5 on snow leopard

2009-11-30 Thread David R. Morrison


Begin forwarded message:

 From: Brad Koehn b...@koehn.com
 Date: November 30, 2009 11:14:28 AM PST
 To: d...@finkproject.org
 Subject: Error building gd2-2.0.35-5 on snow leopard
 
 I'm getting the following error when I attempt to build on Snow Leopard:
 
 /bin/sh ./libtool --tag=CC --mode=link gcc  -g -O2  -L/sw/lib 
 -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices  -L/sw/lib 
 -L/sw/lib/fontconfig2/lib -L/sw/lib -L/usr/X11R6/lib 
 -L/sw/lib/fontconfig2/lib -o libgd.la -rpath /sw/lib -version-info 2:0:0  
 gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo 
 gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo 
 gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo 
 gdfonts.lo gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo 
 wbmp.lo -L/sw/lib -liconv -R/sw/lib -lXpm -lX11 -ljpeg -lfontconfig 
 -lfreetype -lpng12 -lz
 grep: /usr/lib/libiconv.la: No such file or directory
 sed: /usr/lib/libiconv.la: No such file or directory
 libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
 make[2]: *** [libgd.la] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 ### execution of make failed, exit code 2
 Removing runtime build-lock...
 Removing build-lock package...
 /sw/bin/dpkg-lockwait -r fink-buildlock-gd2-2.0.35-5
 (Reading database ... 83935 files and directories currently installed.)
 Removing fink-buildlock-gd2-2.0.35-5 ...
 Failed: phase compiling: gd2-2.0.35-5 failed
 
 Oddly /sw/lib/libiconv.la exists; I'm not sure why it's not being found on 
 the path, but then again I'm not much of a libtool guy.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Fwd: Error building gd2-2.0.35-5 on snow leopard

2009-11-30 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David R. Morrison wrote:
 
 
 Begin forwarded message:
 
 *From: *Brad Koehn b...@koehn.com mailto:b...@koehn.com
 *Date: *November 30, 2009 11:14:28 AM PST
 *To: *...@finkproject.org mailto:d...@finkproject.org
 *Subject: **Error building gd2-2.0.35-5 on snow leopard*

 I'm getting the following error when I attempt to build on Snow Leopard:

 /bin/sh ./libtool --tag=CC --mode=link gcc  -g -O2  -L/sw/lib
 -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices 
 -L/sw/lib -L/sw/lib/fontconfig2/lib -L/sw/lib -L/usr/X11R6/lib
 -L/sw/lib/fontconfig2/lib -o libgd.la http://libgd.la/ -rpath
 /sw/lib -version-info 2:0:0  gd.lo gdfx.lo gd_security.lo gd_gd.lo
 gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo
 gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo
 gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo
 gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo
 wbmp.lo -L/sw/lib -liconv -R/sw/lib -lXpm -lX11 -ljpeg -lfontconfig
 -lfreetype -lpng12 -lz
 grep: /usr/lib/libiconv.la http://libiconv.la/: No such file or
 directory
 sed: /usr/lib/libiconv.la http://libiconv.la/: No such file or directory
 libtool: link: `/usr/lib/libiconv.la http://libiconv.la/' is not a
 valid libtool archive
 make[2]: *** [libgd.la http://libgd.la/] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 ### execution of make failed, exit code 2
 Removing runtime build-lock...
 Removing build-lock package...
 /sw/bin/dpkg-lockwait -r fink-buildlock-gd2-2.0.35-5
 (Reading database ... 83935 files and directories currently installed.)
 Removing fink-buildlock-gd2-2.0.35-5 ...
 Failed: phase compiling: gd2-2.0.35-5 failed

 Oddly /sw/lib/libiconv.la http://libiconv.la/ exists; I'm not sure
 why it's not being found on the path, but then again I'm not much of a
 libtool guy.
 
 

We'll assume that you've updated your Fink installation from 10.5.

The answer is that _something_ has been built to look for
/usr/lib/libiconv.la.

Try

find /sw/lib -name *.la | xargs grep -l /usr/lib/libiconv.la

which will show you the names of all the various .la files from Fink
that have /usr/lib/libiconv.la hardcoded.  I'm not completely sure if
it's OK just to feed that into sed and convert /usr/lib/libiconv.la to
/sw/lib/libiconv.la, but that might be workable.

- --
Alexander Hansen
Fink User Liaison
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksUIw0ACgkQB8UpO3rKjQ8E1gCcD2AZUKoPGPh8qWl9u5m+OaQH
6ZoAnA3Nf8NZlk7sIiJVjW/Di8JsDCPX
=YdfQ
-END PGP SIGNATURE-

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Fwd: Error building gd2-2.0.35-5 on snow leopard

2009-11-30 Thread Martin Costabel
David R. Morrison wrote:
 
 
 Begin forwarded message:
 
 *From: *Brad Koehn b...@koehn.com mailto:b...@koehn.com
[]
 grep: /usr/lib/libiconv.la http://libiconv.la/: No such file or 
 directory

Last time this came up (opensp4 thread on fink-devel), I wrote

 The recipe in this case is the following:
 
 1. Find the file that contains the reference to the non-existing 
 /usr/lib/libiconv.la
 
 2. Destroy it. Or, at least, replace its dependency_libs line by
 
dependency_libs=''
 
 Candidates for 1. (in order of probability) are:
 
 - /sw/lib/fontconfig2/lib/libfontconfig.fink.la
 - Any file that answers to /usr/X11/lib/lib*.la
 - Any other file named *.la in /sw/lib or in /usr/local/lib or any of 
 their subdirectories.

In that case, the culprit turned out to be a *.la file in /usr/local/lib.

-- 
Martin

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Fwd: Error building gd2-2.0.35-5 on snow leopard

2009-11-30 Thread Alexander Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brad Koehn wrote:
 I was upgrading to 10.6, and followed the instructions from the fink
 home page. I did 'ln -s /sw/lib/libiconv.la http://libiconv.la
 /usr/lib', and although it built more during 'fink update-all', I
 eventually ended up with another error with another missing .la file
 (/usr/X11/lib/libXrender.la, which isn't anywhere on my system). I'll
 live without it.
 

I've been meaning to update the instructions, but work and travel
sidetracked me.

We've been telling people to use

sudo -s
find /sw/lib -name *.la -delete

to clear out _all_ of their .la files, which are nominally only needed
at build time, and many of which contain references to .la files that
were provided by Apple at one point but aren't any more, e.g.
/usr/lib/libiconv.la, /usr/X11/lib/*.la,   There are some packages,
however, that rely on these files to be present, so a better scheme
would be in order.

- --
Alexander Hansen
Fink User Liaison
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksUP/IACgkQB8UpO3rKjQ9AaQCgjoOEVqabVEduXnRddUyRy83X
jm8AnRxwyjNkFa17RPkMtHfSSV3fRLSq
=5qVe
-END PGP SIGNATURE-

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] Error building NSPR on snow leopard 10.6.2

2009-11-30 Thread Pradeep Singh
Hi,

I'm getting the following compile errors trying to build nspr on snow leopard 
(mac osx 10.6.2). The version (on doing selfupdate) is nspr-4.6.7-2. Can 
someone pls help ?

thx
Pradeep

prlink.c:183: error: expected specifier-qualifier-list before 
'CFragConnectionID'
prlink.c: In function '_PR_InitLinker':
prlink.c:323: error: 'PRLibrary' has no member named 'dlh'
prlink.c: In function 'pr_LoadMachDyldModule':
prlink.c:613: warning: 'NSCreateObjectFileImageFromFile' is deprecated 
(declared at /usr/include/mach-o/dyld.h:145)
prlink.c:615: warning: 'NSLinkModule' is deprecated (declared at 
/usr/include/mach-o/dyld.h:161)
prlink.c:621: warning: 'NSDestroyObjectFileImage' is deprecated (declared at 
/usr/include/mach-o/dyld.h:147)
prlink.c:623: warning: 'NSUnLinkModule' is deprecated (declared at 
/usr/include/mach-o/dyld.h:169)
prlink.c: In function 'TV2FP':
prlink.c:648: warning: cast from pointer to integer of different size
prlink.c:649: warning: cast from pointer to integer of different size
prlink.c:650: warning: implicit declaration of function 'MakeDataExecutable'
prlink.c: In function 'pr_LoadViaCFM':
prlink.c:701: warning: implicit declaration of function 'ResolveAliasFile'
prlink.c:707: warning: implicit declaration of function 'GetDiskFragment'
prlink.c:707: error: 'kCFragGoesToEOF' undeclared (first use in this function)
prlink.c:707: error: (Each undeclared identifier is reported only once
prlink.c:707: error: for each function it appears in.)
prlink.c:707: error: 'FSSpec' has no member named 'name'
prlink.c:708: error: 'kLoadCFrag' undeclared (first use in this function)
prlink.c:708: error: 'PRLibrary' has no member named 'connection'
prlink.c:708: error: 'PRLibrary' has no member named 'main'
prlink.c:710: error: 'PRLibrary' has no member named 'connection'
prlink.c:716: error: 'PRLibrary' has no member named 'wrappers'
prlink.c:719: error: 'PRLibrary' has no member named 'wrappers'
prlink.c:720: error: 'PRLibrary' has no member named 'main'
prlink.c:720: error: 'PRLibrary' has no member named 'wrappers'
prlink.c:720: error: 'PRLibrary' has no member named 'main'
prlink.c: In function 'pr_LoadCFBundle':
prlink.c:758: error: 'PRLibrary' has no member named 'bundle'
prlink.c: In function 'pr_LoadViaDyld':
prlink.c:765: error: 'PRLibrary' has no member named 'dlh'
prlink.c:766: error: 'PRLibrary' has no member named 'dlh'
prlink.c:767: error: 'PRLibrary' has no member named 'image'
prlink.c:767: warning: 'NSAddImage' is deprecated (declared at 
/usr/include/mach-o/dyld.h:230)
prlink.c:774: error: 'PRLibrary' has no member named 'dlh'
prlink.c:774: error: 'PRLibrary' has no member named 'image'
prlink.c:775: warning: control reaches end of non-void function
prlink.c: In function 'PR_UnloadLibrary':
prlink.c:1270: error: 'PRLibrary' has no member named 'dlh'
prlink.c:1271: warning: 'NSUnLinkModule' is deprecated (declared at 
/usr/include/mach-o/dyld.h:169)
prlink.c:1271: error: 'PRLibrary' has no member named 'dlh'
prlink.c:1286: error: 'PRLibrary' has no member named 'connection'
prlink.c:1287: warning: implicit declaration of function 'CloseConnection'
prlink.c:1287: error: 'PRLibrary' has no member named 'connection'
prlink.c:1288: error: 'PRLibrary' has no member named 'bundle'
prlink.c:1289: error: 'PRLibrary' has no member named 'bundle'
prlink.c:1290: error: 'PRLibrary' has no member named 'wrappers'
prlink.c:1291: error: 'PRLibrary' has no member named 'wrappers'
prlink.c: In function 'pr_FindSymbolInLib':
prlink.c:1386: error: 'PRLibrary' has no member named 'bundle'
prlink.c:1389: error: 'PRLibrary' has no member named 'bundle'
prlink.c:1393: error: 'PRLibrary' has no member named 'connection'
prlink.c:1395: error: 'CFragSymbolClass' undeclared (first use in this function)
prlink.c:1395: error: expected ';' before 'symClass'
prlink.c:1400: warning: implicit declaration of function 'c2pstrcpy'
prlink.c:1402: warning: implicit declaration of function 'FindSymbol'
prlink.c:1402: error: 'PRLibrary' has no member named 'connection'
prlink.c:1402: error: 'symClass' undeclared (first use in this function)
prlink.c:1405: error: 'kTVectorCFragSymbol' undeclared (first use in this 
function)
prlink.c:1406: error: 'PRLibrary' has no member named 'wrappers'
prlink.c:1409: error: 'PRLibrary' has no member named 'main'
prlink.c:1411: error: 'PRLibrary' has no member named 'image'
prlink.c:1413: warning: 'NSLookupSymbolInImage' is deprecated (declared at 
/usr/include/mach-o/dyld.h:182)
prlink.c:1413: error: 'PRLibrary' has no member named 'image'
prlink.c:1417: warning: 'NSAddressOfSymbol' is deprecated (declared at 
/usr/include/mach-o/dyld.h:188)
prlink.c:1439: error: 'PRLibrary' has no member named 'dlh'
prlink.c:1441: warning: 'NSLookupSymbolInModule' is deprecated (declared at 
/usr/include/mach-o/dyld.h:181)
prlink.c:1441: error: 'PRLibrary' has no member named 'dlh'
prlink.c:1443: warning: 'NSAddressOfSymbol' is deprecated (declared at 
/usr/include/mach-o/dyld.h:188)
prlink.c: In 

Re: [Fink-users] Fwd: Error building gd2-2.0.35-5 on snow leopard

2009-11-30 Thread Brad Koehn
I was upgrading to 10.6, and followed the instructions from the fink home
page. I did 'ln -s /sw/lib/libiconv.la /usr/lib', and although it built more
during 'fink update-all', I eventually ended up with another error with
another missing .la file (/usr/X11/lib/libXrender.la, which isn't anywhere
on my system). I'll live without it.

On Mon, Nov 30, 2009 at 1:54 PM, Alexander Hansen 
alexanderk.han...@gmail.com wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David R. Morrison wrote:
 
 
  Begin forwarded message:
 
  *From: *Brad Koehn b...@koehn.com mailto:b...@koehn.com
  *Date: *November 30, 2009 11:14:28 AM PST
  *To: *...@finkproject.org mailto:d...@finkproject.org
  *Subject: **Error building gd2-2.0.35-5 on snow leopard*
 
  I'm getting the following error when I attempt to build on Snow Leopard:
 
  /bin/sh ./libtool --tag=CC --mode=link gcc  -g -O2  -L/sw/lib
  -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
  -L/sw/lib -L/sw/lib/fontconfig2/lib -L/sw/lib -L/usr/X11R6/lib
  -L/sw/lib/fontconfig2/lib -o libgd.la http://libgd.la/ -rpath
  /sw/lib -version-info 2:0:0  gd.lo gdfx.lo gd_security.lo gd_gd.lo
  gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo
  gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo
  gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo
  gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo
  wbmp.lo -L/sw/lib -liconv -R/sw/lib -lXpm -lX11 -ljpeg -lfontconfig
  -lfreetype -lpng12 -lz
  grep: /usr/lib/libiconv.la http://libiconv.la/: No such file or
  directory
  sed: /usr/lib/libiconv.la http://libiconv.la/: No such file or
 directory
  libtool: link: `/usr/lib/libiconv.la http://libiconv.la/' is not a
  valid libtool archive
  make[2]: *** [libgd.la http://libgd.la/] Error 1
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2
  ### execution of make failed, exit code 2
  Removing runtime build-lock...
  Removing build-lock package...
  /sw/bin/dpkg-lockwait -r fink-buildlock-gd2-2.0.35-5
  (Reading database ... 83935 files and directories currently installed.)
  Removing fink-buildlock-gd2-2.0.35-5 ...
  Failed: phase compiling: gd2-2.0.35-5 failed
 
  Oddly /sw/lib/libiconv.la http://libiconv.la/ exists; I'm not sure
  why it's not being found on the path, but then again I'm not much of a
  libtool guy.
 
 

 We'll assume that you've updated your Fink installation from 10.5.

 The answer is that _something_ has been built to look for
 /usr/lib/libiconv.la.

 Try

find /sw/lib -name *.la | xargs grep -l /usr/lib/libiconv.la

 which will show you the names of all the various .la files from Fink
 that have /usr/lib/libiconv.la hardcoded.  I'm not completely sure if
 it's OK just to feed that into sed and convert /usr/lib/libiconv.la to
 /sw/lib/libiconv.la, but that might be workable.

 - --
 Alexander Hansen
 Fink User Liaison
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAksUIw0ACgkQB8UpO3rKjQ8E1gCcD2AZUKoPGPh8qWl9u5m+OaQH
 6ZoAnA3Nf8NZlk7sIiJVjW/Di8JsDCPX
 =YdfQ
 -END PGP SIGNATURE-

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] wxgtk2.8-2.8.10-21 compilation failed

2009-11-30 Thread Christian Wasmer
Dear fink users,

the compilation of the newest version of wxgtk2.8 (unstable) seems to cause 
problems on my machine (Intel core2duo, OS 10.6.2). Anyone knows how to resolve 
this (output below)?

Thanks,
Christian.

gcc -c -o advdll_gtk_eggtrayicon.o  -D__WXGTK__  -I../src/regex  
-DWXUSINGDLL -DWXMAKINGDLL_ADV -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 
-D_LARGE_FILES 
-I/sw/src/fink.build/wxgtk2.8-2.8.10-21/wxGTK-2.8.10/build/lib/wx/include/gtk2-unicode-release-2.8
 -I../include -I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
-I/sw/lib/fontconfig2/include -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include 
-I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/glib-2.0 
-I/sw/lib/glib-2.0/include -I/sw/include/pixman-1 -I/sw/include/libpng12 
-I/usr/X11R6/include -I/usr/X11/include -I/sw/include/gstreamer-0.10 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 
-I/sw/include -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 
-I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -DORBIT2=1 -I/sw/include/SDL 
-I/usr/X11R6/include -I/sw/include -I/sw/include -Wall -Wundef -O2 
-fno-strict-aliasing -I/sw/include/gnome-vfs-2.0 
-I/sw/lib/gnome-vfs2.16/gnome-vfs-2.0/include -I/sw/include/gconf/2 
-I/sw/include/orbit-2.0 -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -DORBIT2=1 
-I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
-I/sw/lib/fontconfig2/include -I/sw/include/libgnomeprintui-2.2 
-I/sw/include/libgnomeprint-2.2 -I/sw/include/libgnomecanvas-2.0 
-I/sw/include/libart-2.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/libxml2 -I/sw/include/gail-1.0 -I/sw/include/gtk-2.0 
-I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/cairo 
-I/sw/include/pixman-1 -I/sw/include/libpng12 -I/usr/X11R6/include 
-I/usr/X11/include -fno-common ../src/gtk/eggtrayicon.c
g++ -c -o advdll_sound_sdl.o  -D__WXGTK__  -I../src/regex  -DWXUSINGDLL 
-DWXMAKINGDLL_ADV -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
-I/sw/src/fink.build/wxgtk2.8-2.8.10-21/wxGTK-2.8.10/build/lib/wx/include/gtk2-unicode-release-2.8
 -I../include -I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
-I/sw/lib/fontconfig2/include -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include 
-I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/glib-2.0 
-I/sw/lib/glib-2.0/include -I/sw/include/pixman-1 -I/sw/include/libpng12 
-I/usr/X11R6/include -I/usr/X11/include -I/sw/include/gstreamer-0.10 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 
-I/sw/include -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 
-I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -DORBIT2=1 -I/sw/include/SDL 
-I/usr/X11R6/include -I/sw/include -I/sw/include -Wall -Wundef 
-Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/sw/include/gnome-vfs-2.0 
-I/sw/lib/gnome-vfs2.16/gnome-vfs-2.0/include -I/sw/include/gconf/2 
-I/sw/include/orbit-2.0 -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include 
-I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -DORBIT2=1 
-I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
-I/sw/lib/fontconfig2/include -I/sw/include/libgnomeprintui-2.2 
-I/sw/include/libgnomeprint-2.2 -I/sw/include/libgnomecanvas-2.0 
-I/sw/include/libart-2.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
-I/sw/include/libxml2 -I/sw/include/gail-1.0 -I/sw/include/gtk-2.0 
-I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/cairo 
-I/sw/include/pixman-1 -I/sw/include/libpng12 -I/usr/X11R6/include 
-I/usr/X11/include -fno-common ../src/unix/sound_sdl.cpp
../src/unix/sound_sdl.cpp:21:17: error: SDL.h: No such file or directory
../src/unix/sound_sdl.cpp:85: error: 'Uint8' has not been declared
../src/unix/sound_sdl.cpp:100: error: 'SDL_AudioSpec' does not name a type
../src/unix/sound_sdl.cpp: In member function 'virtual bool 
wxSoundBackendSDL::IsAvailable() const':
../src/unix/sound_sdl.cpp:138: error: 'SDL_INIT_AUDIO' was not declared in this 
scope
../src/unix/sound_sdl.cpp:138: error: 'SDL_WasInit' was not declared in this 
scope
../src/unix/sound_sdl.cpp:140: error: 'SDL_INIT_NOPARACHUTE' was not declared 
in this scope
../src/unix/sound_sdl.cpp:140: error: 'SDL_Init' was not declared in this scope
../src/unix/sound_sdl.cpp: At global scope:
../src/unix/sound_sdl.cpp:148: error: 'Uint8' has not been declared
../src/unix/sound_sdl.cpp:154: error: variable or field 'FillAudioBuffer' 
declared void
../src/unix/sound_sdl.cpp:154: error: 'Uint8' was not declared in this scope
../src/unix/sound_sdl.cpp:154: error: 'stream' was not declared in this scope
../src/unix/sound_sdl.cpp:154: error: expected primary-expression before 'int'
make: *** [advdll_sound_sdl.o] Error 1
### execution of /var/tmp/tmp.2.EQycya failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-wxgtk2.8-2.8.10-21
(Reading database ... 142932 files and 

Re: [Fink-users] wxgtk2.8-2.8.10-21 compilation failed

2009-11-30 Thread Alexander Hansen
Christian Wasmer wrote:
 Dear fink users,

 the compilation of the newest version of wxgtk2.8 (unstable) seems to cause 
 problems on my machine (Intel core2duo, OS 10.6.2). Anyone knows how to 
 resolve this (output below)?

 Thanks,
 Christian.


 g++ -c -o advdll_sound_sdl.o  -D__WXGTK__  -I../src/regex  
 -DWXUSINGDLL -DWXMAKINGDLL_ADV -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 
 -D_LARGE_FILES 
 -I/sw/src/fink.build/wxgtk2.8-2.8.10-21/wxGTK-2.8.10/build/lib/wx/include/gtk2-unicode-release-2.8
  -I../include -I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
 -I/sw/lib/fontconfig2/include -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include 
 -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/glib-2.0 
 -I/sw/lib/glib-2.0/include -I/sw/include/pixman-1 -I/sw/include/libpng12 
 -I/usr/X11R6/include -I/usr/X11/include -I/sw/include/gstreamer-0.10 
 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 
 -I/sw/include -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 
 -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -DORBIT2=1 
 -I/sw/include/SDL -I/usr/X11R6/include -I/sw/include -I/sw/include -Wall 
 -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing 
 -I/sw/include/gnome-vfs-2.0 -I/sw/lib/gnome-vfs2.16/gnome-vfs-2.0/include 
 -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 -I/sw/include/dbus-1.0 
 -I/sw/lib/dbus-1.0/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
 -DORBIT2=1 -I/sw/include/pango-1.0 -I/sw/include/freetype2 -I/sw/include 
 -I/sw/lib/fontconfig2/include -I/sw/include/libgnomeprintui-2.2 
 -I/sw/include/libgnomeprint-2.2 -I/sw/include/libgnomecanvas-2.0 
 -I/sw/include/libart-2.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include 
 -I/sw/include/libxml2 -I/sw/include/gail-1.0 -I/sw/include/gtk-2.0 
 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/cairo 
 -I/sw/include/pixman-1 -I/sw/include/libpng12 -I/usr/X11R6/include 
 -I/usr/X11/include -fno-common ../src/unix/sound_sdl.cpp
 ../src/unix/sound_sdl.cpp:21:17: error: SDL.h: No such file or directory
   
sdl is in the dependency list, and you're showing -I /sw/include/SDL on
the include lines, so I'd think that /sw/include/SDL/SDL.h should be
visible there.  Do you have that file?  If not, maybe try fink
reinstall sdl.


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users