From chenhaopeng4 at yahoo.com.cn Sat May 1 19:16:58 2010 From: chenhaopeng4 at yahoo.com.cn (=?gb2312?B?s8K6xsXz?=) Date: Sun, 2 May 2010 10:16:58 +0800 (CST) Subject: [SAC-HELP] sac error :remove this function: src/co/zmemad() Message-ID: <520486.77393.qm@web15301.mail.cnb.yahoo.com> Dear sir: I am trying to use the "convolve" command in sac2000,but there is something wrong with it. I type these commands below: >r R1.sac R2.sac >convolve it produce the following error >remove this function: src/co/zmemad() I don't know why.Could you please help me solve this problem. Yours , Chen Haopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From chenhaopeng4 at yahoo.com.cn Sun May 2 05:37:17 2010 From: chenhaopeng4 at yahoo.com.cn (=?gb2312?B?s8K6xsXz?=) Date: Sun, 2 May 2010 20:37:17 +0800 (CST) Subject: [SAC-HELP] sac error :remove this function: src/co/zmemad() Message-ID: <475789.73578.qm@web15305.mail.cnb.yahoo.com> Dear sir: I am trying to use the "convolve" command in sac2000,but there is something wrong with it. I type these commands below: >r R1.sac R2.sac >convolve it produce the following error >remove this function: src/co/zmemad() I don't know why.Could you please help me solve this problem. Yours , Chen Haopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From kboyle at lbl.gov Thu May 6 09:00:35 2010 From: kboyle at lbl.gov (Katie Boyle) Date: Thu, 6 May 2010 09:00:35 -0700 Subject: [SAC-HELP] 64-bit rsac wsac versions? Message-ID: Hi, Are there 64-bit compatible versions of rsac1.f wsac1.f, etc? Thanks! Katie -------------- next part -------------- An HTML attachment was scrubbed... URL: From xlou at earth.northwestern.edu Thu May 6 10:11:28 2010 From: xlou at earth.northwestern.edu (Xiaoting Lou) Date: Thu, 6 May 2010 12:11:28 -0500 Subject: [SAC-HELP] SAC to SEG2 In-Reply-To: References: Message-ID: The PASSCAL software package has a sac2segy.f program. /opt/passcal/contrib/sac2segy Xiaoting On Apr 26, 2010, at 7:05 AM, Onur Tan wrote: > Hello, > > How can I convert SAC file to SEG2 format ? > > best regards > Onur > > > for Brian: > The manual of the ?write? command on the web and its help file in SAC are different. There is no information about SEGY format in the web page. However their revision date are the same. > > > > > Dr. Onur TAN > ---------------------------------------------- 40.7866N 29.4500E --------- > T?B?TAK Marmara Ara?t?rma Merkezi, Yer ve Deniz Bilimleri Enstit?s? > TUBITAK Marmara Research Center, Earth and Marine Sciences Institute > Gebze - Kocaeli - TURKEY > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From sgao at mst.edu Thu May 6 11:56:10 2010 From: sgao at mst.edu (Gao, Stephen S.) Date: Thu, 6 May 2010 13:56:10 -0500 Subject: [SAC-HELP] 64-bit rsac wsac versions? References: Message-ID: <053AE1104879004E8F53E72AF0F9D31F754FCA@MST-VMAIL1.srv.mst.edu> I asked the same question about a year ago and the answer that I got was "No, but you can make your program work by adding -m32 in the Makefile". It works well for me. In this way, my SAC files written on 32 bit machines can be read by programs on 64 bit machines. Steve Gao ================================ Stephen S. Gao, Professor, Geology & Geophysics Program, Department of Geological Sciences & Engineering, Missouri University of Science & Technology 129 McNutt Hall, Rolla, Missouri 65409, E-mail: sgao at mst.edu Office Phone: (573)-341-6676, FAX:(573)-341-6935 http://web.mst.edu/~sgao http://seismo.device.mst.edu/GG (Geology & Geophysics at S&T) ------------------------------------------------------------------------------------------------------------ Missouri S&T History: 1870-1964: Missouri School of Mines and Metallurgy (MSM) 1964-2007: University of Missouri-Rolla (UMR) 2008------: Missouri University of Science & Technology (S&T) ------------------------------------------------------------------------------------------------------------ ________________________________ From: sac-help-bounces at iris.washington.edu on behalf of Katie Boyle Sent: Thu 5/6/2010 11:00 AM To: sac-help at iris.washington.edu Subject: [SAC-HELP] 64-bit rsac wsac versions? Hi, Are there 64-bit compatible versions of rsac1.f wsac1.f, etc? Thanks! Katie From gauravdutta23 at gmail.com Mon May 10 08:26:55 2010 From: gauravdutta23 at gmail.com (gaurav dutta) Date: Mon, 10 May 2010 17:26:55 +0200 Subject: [SAC-HELP] help In-Reply-To: References: Message-ID: Dear Sir, I have got the SAC software as an email attachment in the form sac-101.3b-linux_x86_32.tar.gz. I have expanded the file using the following command in the command line tar -xzf sac-101.3b-linux_x86_32.tar.gz A sac folder has been created on my desktop. I now need to get started with the software but i have not been able to figure out how to do so. Please help me on my further steps. Gaurav Dutta -------------- next part -------------- An HTML attachment was scrubbed... URL: From tilmann at gfz-potsdam.de Tue May 11 09:44:20 2010 From: tilmann at gfz-potsdam.de (Frederik Tilmann) Date: Tue, 11 May 2010 18:44:20 +0200 Subject: [SAC-HELP] fg random in 64 bit 101.3b is broken Message-ID: <4BE98964.3070504@gfz-potsdam.de> Hi I can't get fg random to work with pre-compiled 64 bit version: SEISMIC ANALYSIS CODE [08/24/2009 (Version 101.3b)] Copyright 1995 Regents of the University of California SAC> fg random SAC> lh depmin depmax FILE: RANDOM01 - 1 -------------- depmin = -nan depmax = -nan SAC> Has anyone else encountered this? Regards Frederik From savage at uri.edu Tue May 11 13:42:26 2010 From: savage at uri.edu (Brian Savage) Date: Tue, 11 May 2010 16:42:26 -0400 Subject: [SAC-HELP] fg random in 64 bit 101.3b is broken In-Reply-To: <4BE98964.3070504@gfz-potsdam.de> References: <4BE98964.3070504@gfz-potsdam.de> Message-ID: Dear Frederik, This will be fixed in the upcoming release, very soon. If you require this functionality within the next couple of weeks and you have the sac source, I can provide you with a simple patch that you should be able to apply yourself for the time being. Thanks for the bug report. Brian Savage savage at uri.edu On May 11, 2010, at 12:44 PM , Frederik Tilmann wrote: > Hi > > I can't get fg random to work with pre-compiled 64 bit version: > > SEISMIC ANALYSIS CODE [08/24/2009 (Version 101.3b)] > Copyright 1995 Regents of the University of California > > SAC> fg random > SAC> lh depmin depmax > > > FILE: RANDOM01 - 1 > -------------- > > depmin = -nan > depmax = -nan > SAC> > > Has anyone else encountered this? > > Regards > Frederik > > > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From nitin_gp3 at yahoo.co.in Thu May 13 08:36:02 2010 From: nitin_gp3 at yahoo.co.in (nitin sharma) Date: Thu, 13 May 2010 21:06:02 +0530 (IST) Subject: [SAC-HELP] Problem Regarding Some Mathematical Operation Message-ID: <104020.25925.qm@web94605.mail.in2.yahoo.com> Hello Sir/Mam, ?I am Learning SAC as a beginner. I am facing?Some problem regarding Convolution operation. If I?use the command Convolve provided in SAC Then I get Satisfactory results. But If Perform the similar operation in frequency Domain my results do not match with the results obtained using convolve command. What I have done is I took 2 functions (step and Boxcar), compute fft and obtained their .am and .ph files separately. Then I multiply the both .am files and add up the both .ph files and assigned common names to both .am and .ph files. Then I read this new file as spectral file with command rsp.Then compute ifft to transfer it in time Domain. But this result did not match with what I convolved with convolve command (i.e. in time domain). Tell me what can be the reason? Waiting for your reply. Regards Nitin Sharma? -------------- next part -------------- An HTML attachment was scrubbed... URL: From t8641852 at hotmail.com Thu May 20 01:30:19 2010 From: t8641852 at hotmail.com (=?big5?B?q7O0sCCzrw==?=) Date: Thu, 20 May 2010 16:30:19 +0800 Subject: [SAC-HELP] SAC program won't release memory space Message-ID: Greeting, I found that my new-installed SAC program alway occupys the memory. Basically, the SAC program will release the memory space from the forward file when I read a new one. But in my situation, the memory space is still occupied by the forward read-in file. Even if I read a new file or input 'deletechannel all'. This way, when I runs the macro scrip, the memory will run out soon. The only way to release the memory space is to turn off the SAC and run a new one. My SAC version is 101.3b. And my OS is Ubuntu 10.03 LTS. I have no idea to solve this problem. Any suggestions? Thanks, Jason _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aslynx at gmail.com Mon May 24 11:54:46 2010 From: aslynx at gmail.com (Carmen Astrid Lopez) Date: Mon, 24 May 2010 13:54:46 -0500 Subject: [SAC-HELP] HELP SAC "picks phases" Message-ID: Hi all!! I have problems to picks phases in sac, I use command PLOTPK, but the phases does not save in header, could someone help me? Best regards, Astrid L?pez From wangwtustc at gmail.com Tue May 25 00:01:31 2010 From: wangwtustc at gmail.com (weitao wang) Date: Tue, 25 May 2010 15:01:31 +0800 Subject: [SAC-HELP] a problem while downsampling sac data with decimate Message-ID: Hi All When I tried to downsample a sac data using decimate command,I encountered a curious problem on the delta change. Suppose we have one data with samplng rate 100hz, and we want to downsample to 1hz. the cmd I used is decimate 5, now delta=0.05; decimate 5 now=delta=0.25 decimate 2 now delta=0.5 decimate 2 now delta=0.999999 in the final step the delta is 0.999999 instead of 1.0. Since our later processing need to check the consistent of sachdr.delta and we have some LHZ sac with delta=1.0, we need to make the downsampled-data's delta to be 1.0 ,not 0.9999999. Is there any way to aviod the 0.99999 thing ? Or we can forcely change delta to 1.0 using ch delta 1.0 without bad effects for later processing ? And there is another question, can sac cmd " interp "be used to downsamp origin data ? is it differ from decimate ? thanks for all your help in advance. wt -------------- next part -------------- An HTML attachment was scrubbed... URL: From carobuffoni at hotmail.com Tue May 25 06:08:36 2010 From: carobuffoni at hotmail.com (Carolina Buffoni) Date: Tue, 25 May 2010 10:08:36 -0300 Subject: [SAC-HELP] SAC I can't plot Message-ID: Dear All, I'm new with the SAC list help and my problem is that I can't plot traces. The home machine is running Fedora. I can read the trace and header but when I try to plot it, this message error appear: X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 45 (X_OpenFont) Serial number of failed request: 7 Current serial number in output stream: 11 I would appreciate if you help me with this problem. Thanks, Carolina Tu vida no tiene l?mites, ahora Hotmail tampoco. 25 GB para organizar y compartir todo. Hac? clic aqu? _________________________________________________________________ Registrate en Hotmail y disfrut? de 25 GB para organizar y compartir tus documentos. http://mail.live.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at uri.edu Tue May 25 07:10:58 2010 From: savage at uri.edu (Brian Savage) Date: Tue, 25 May 2010 10:10:58 -0400 Subject: [SAC-HELP] SAC I can't plot In-Reply-To: References: Message-ID: <5AB306BC-E349-4788-A078-F63AB78A8E33@uri.edu> Dear Carolina You need to have the correct X11 fonts installed on your system. The fonts you need are "9x15", "fixed", and "6x13" Depending on your system, they are contained in different packages Windows/Cygwin package: font-misc-misc Linux/Ubuntu package: xfonts-base This might give you somewhere to start. They should be installed on most systems by default. Brian Savage savage at uri.edu On May 25, 2010, at 9:08 AM , Carolina Buffoni wrote: > Dear All, > > I'm new with the SAC list help and my problem is that I can't plot > traces. > The home machine is running Fedora. I can read the trace and header > but when > I try to plot it, this message error appear: > > X Error of failed request: BadName (named color or font does not > exist) > Major opcode of failed request: 45 (X_OpenFont) > Serial number of failed request: 7 > Current serial number in output stream: 11 > > I would appreciate if you help me with this problem. > > Thanks, > > Carolina > > > Tu vida no tiene l?mites, ahora Hotmail tampoco. 25 GB para > organizar y compartir todo. Hac? clic aqu? > Tu vida no tiene l?mites, ahora Hotmail tampoco. 25 GB para > organizar y compartir todo. Hac? clic aqu? > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help From aslynx at gmail.com Tue May 25 11:28:38 2010 From: aslynx at gmail.com (Carmen Astrid Lopez) Date: Tue, 25 May 2010 13:28:38 -0500 Subject: [SAC-HELP] HELP SAC "picks phases" In-Reply-To: References: Message-ID: Hi! You are kind, your suggestion helped me to resolve my problem. Cheers, > Astrid L?pez > From wangwtustc at gmail.com Tue May 25 18:13:10 2010 From: wangwtustc at gmail.com (weitao wang) Date: Wed, 26 May 2010 09:13:10 +0800 Subject: [SAC-HELP] a problem while downsampling sac data with decimate In-Reply-To: <20100525155015.200935rzftl73qtz@webmail.ogs.trieste.it> References: <20100525155015.200935rzftl73qtz@webmail.ogs.trieste.it> Message-ID: Thanks Milton for quick reply. Since in our later data processing the phase plays an important role, I am wondering if the interp or decimate will keep the phase in low freqency, for example lower than 0.4Hz. It seems that the decimate cmd performs an anti-alias filter, but document on interp does not show that. By comparing the origin data and interped and decimated ones in a short time gap, say two seconds, we may find all the decimated data points can be found in the origin data but interped one adds some new points different from ori data. So will interp pre-filter the origin data to low frequency just same as decimate cmd ? Are both "phase-keeping" cmd ? thanks again for all your suggestions weitao 2010/5/25 Milton P. Plasencia Linares > > Hi Weitao, > Yes, when you decimate (5-5-2-2) the header is 9.99999E-01, > Sac 101.3b 64bits - Fedora Linux. > I have a test and attach the ps file. > I downsampling using decimate and interpolation commands, > (see figure). Values defaults for decimate applied anti-aliasing > FIR filter. Interpolation use the Wiggins method. > I see that changing header with 'ch delta 1.0' no affect the > quantity or form of data. > > In the figure, in this case, I think that interpolate does a > better job, at least not "filtered" completely the EQ signal. > > I wait this help you. > > Cheers, > > Milton > > ********************************** > Milton P. PLASENCIA LINARES > > Dipartimento Centro di Ricerche Sismologiche > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > > Borgo Grotta Gigante 42/C > (34010) Sgonico - TRIESTE - ITALIA > Tel: +39-040-2140136 > Fax: +39-040-327307 > > E-mail: mplasencia at ogs.trieste.it > > ASAIN (Antarctic Seismographic Argentinean Italian Network) > ********************************* > > > > Quoting "weitao wang" : > > Hi All >> >> When I tried to downsample a sac data using decimate command,I encountered >> a >> curious problem on the delta change. >> Suppose we have one data with samplng rate 100hz, and we want to >> downsample >> to 1hz. >> the cmd I used is >> decimate 5, now delta=0.05; >> decimate 5 now=delta=0.25 >> decimate 2 now delta=0.5 >> decimate 2 now delta=0.999999 >> >> in the final step the delta is 0.999999 instead of 1.0. Since our later >> processing need to check the consistent of sachdr.delta and we have some >> LHZ sac with delta=1.0, we need to make the downsampled-data's delta to be >> 1.0 ,not 0.9999999. >> >> Is there any way to aviod the 0.99999 thing ? Or we can forcely change >> delta >> to 1.0 using ch delta 1.0 without bad effects for later processing ? >> >> And there is another question, can sac cmd " interp "be used to downsamp >> origin data ? is it differ from decimate ? >> >> thanks for all your help in advance. >> >> wt >> >> -- >> This email was Anti Virus checked by INOGS Antivirus filter. >> >> > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From snoke at vt.edu Thu May 27 11:23:16 2010 From: snoke at vt.edu (Arthur Snoke) Date: Thu, 27 May 2010 14:23:16 -0400 (EDT) Subject: [SAC-HELP] a problem while downsampling sac data with decimate In-Reply-To: References: <20100525155015.200935rzftl73qtz@webmail.ogs.trieste.it> Message-ID: Based on looking at the code, I can confirm that interpolate does not itself have the capability of running an anti-aliasing filter. You would have to do that first yourself. Sometimes one wants to increase the number of points. In some applications I increased npts to be an exact power of 2. If you want to compare the effects of interpolate and decimate, here is a suggestion. (I have not tried it, so ...) Take a file for which you have a RDSEED RESP file and use the evalresp response in transfer with FREQLIMITS set to filter the low frequencies but not the high. That will give you a lot of amplitude at high frequencies in the saved file. Take that file and apply interpolate and decimate separately and compare the outputs. From dan_breakout at terra.com.br Fri May 28 15:13:37 2010 From: dan_breakout at terra.com.br (Danilo Domingos) Date: Fri, 28 May 2010 22:13:37 +0000 Subject: [SAC-HELP] Help with polezero, transfer to vel and acc Message-ID: <62911.1275084817@terra.com.br> Hello everyone! Ok, where to begin? I have to calculate the PGA (peak ground acceleration) of some events, and to do that I have 2 options: 1) Use the SAC function TRANSFER to convert the original displacement data to acceleration. 2) Manually convert the data to velocity (using seismometer and digitizer parameters), and then differenciate to acc. Why is this 2nd option there? Because I've tried to understant how to build the POLEZERO file too many times. The poles and zeros aren't a problem (I've found them in the seismometer manual), but to find the constant value, I've seen a lot of formulas. One of them is: CONSTANT = A0 * SensorGain * DigitizerGain where A0 is the "normalization factor". I can't find it in the seismometer manual. Theese are the informations I have about seismometer and digitizer: - Seismometer: KS2000 Geotech Instruments - Seismometer seismic output: 40V pp - Seismometer sensibility: 2000 v/m/s - Digitizer: SMART24 Geotech Instruments - Digitizer LSB value for 40V pp: 3.271096e-6 V/count - Digitizer Gain: x 64 (multiplication) As far as I know, displacement data is given in counts Any ideas with the constant calculation? or should I try to calculate acc manually with the conversion to velocity (using parameters) and the differentiating? Thank you very much. ---------------------------------------------------------- Danilo de Oliveira Domingos University of S?o Paulo Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: From snoke at vt.edu Fri May 28 15:40:53 2010 From: snoke at vt.edu (Arthur Snoke) Date: Fri, 28 May 2010 18:40:53 -0400 (EDT) Subject: [SAC-HELP] Help with polezero, transfer to vel and acc In-Reply-To: <62911.1275084817@terra.com.br> References: <62911.1275084817@terra.com.br> Message-ID: The relation you cite is based on a polexzero file that has been obtained by using RDSEED on a SEED volume for an event using that station. If you have a polezero file, the documentation for that file will hopefully tell you how to interpret CONSTANT. Others on the list may know the characteristics for your system and provide your answer. On Fri, 28 May 2010, Danilo Domingos wrote: > Hello everyone! > Ok, where to begin? > > I have to calculate the PGA (peak ground acceleration) of some events, and > to do that I have 2 options: > > 1) Use the SAC function TRANSFER to convert the original displacement data > to acceleration. > 2) Manually convert the data to velocity (using seismometer and digitizer > parameters), and then differenciate to acc. > > Why is this 2nd option there? > Because I've tried to understant how to build the POLEZERO file too many > times. The poles and zeros aren't a problem (I've found them in the > seismometer manual), but to find the constant value, I've seen a lot of > formulas. One of them is: > CONSTANT = A0 * SensorGain * DigitizerGain > > where A0 is the "normalization factor". I can't find it in the seismometer > manual. Theese are the informations I have about seismometer and digitizer: > > - Seismometer: KS2000 Geotech Instruments > - Seismometer seismic output: 40V pp > - Seismometer sensibility: 2000 v/m/s > > -?Digitizer: SMART24 Geotech Instruments > - Digitizer??LSB value for 40V pp: 3.271096e-6 V/count > - Digitizer Gain: x 64 (multiplication) > > As far as I know, displacement data is given in counts > > Any ideas with the constant calculation? or should I try to calculate acc > manually with the conversion to velocity (using parameters) and the > differentiating? > > Thank you very much. > > ---------------------------------------------------------- > Danilo de Oliveira Domingos > University of S?o Paulo > Brazil > > > From Isaac.Mulamba at students.wits.ac.za Fri May 28 21:23:34 2010 From: Isaac.Mulamba at students.wits.ac.za (Isaac Mulamba) Date: Sat, 29 May 2010 06:23:34 +0200 Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 Message-ID: An HTML attachment was scrubbed... URL: From snoke at vt.edu Sat May 29 05:28:41 2010 From: snoke at vt.edu (Arthur Snoke) Date: Sat, 29 May 2010 08:28:41 -0400 (EDT) Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 In-Reply-To: References: Message-ID: > I'm trying to install SAC-101.3b on cygwin in Windows 7. I got the sac > package yesterday from IRIS. But it can't seem to install and it's > giving the following error: I have not worked with cygwin myself, and hope that there is nothing in Windows 7 that causes problems. Hopefully you do have the distribution that is specific to cygwin. > Configure: error: can't find install-sh, install.sh or shtool in > ../sac-101.3b/config find . -name install-sh -print ./config/install-sh Hopefully someone who works with cygwin can help. Please copy the list as I would like to know if there is a problem with Windows 7. From avesnaver at inogs.it Sat May 29 05:42:18 2010 From: avesnaver at inogs.it (Aldo Vesnaver) Date: Sat, 29 May 2010 14:42:18 +0200 Subject: [SAC-HELP] I can't install SAC-101.3b on cygwin in windows 7 In-Reply-To: References: Message-ID: <20100529144218.82971aaekn9jvgdm@webmail.ogs.trieste.it> I had the same (unsolved) problem, and used for sure the SAC version that works with other Windows versions (as XP). So far, after many attempts, I could not install it either. Windows 7, unfortunately, seems to be the problem. In fact, I had different error messages when using the same installation instructions, but after an automatic update of the operating system via Internet. Aldo Quoting "Arthur Snoke" : >> I'm trying to install SAC-101.3b on cygwin in Windows 7. I got the >> sac package yesterday from IRIS. But it can't seem to install and >> it's giving the following error: > > I have not worked with cygwin myself, and hope that there is nothing in > Windows 7 that causes problems. Hopefully you do have the distribution > that is specific to cygwin. > >> Configure: error: can't find install-sh, install.sh or shtool in >> ../sac-101.3b/config > > find . -name install-sh -print > ./config/install-sh > > Hopefully someone who works with cygwin can help. Please copy the list > as I would like to know if there is a problem with Windows 7. > _______________________________________________ > sac-help mailing list > sac-help at iris.washington.edu > http://www.iris.washington.edu/mailman/listinfo/sac-help > ------------------------------------------------- Aldo Vesnaver, OGS (GdL Department) Borgo Grotta Gigante 42/c 34010 Trieste (Italy) E-mail: avesnaver at inogs.it Office phone: +39 040 2140459 Home phone: +39 040 416247 http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559 ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From paola.morasca at yahoo.com Sun May 30 06:41:59 2010 From: paola.morasca at yahoo.com (Paola Morasca) Date: Sun, 30 May 2010 15:41:59 +0200 Subject: [SAC-HELP] problem with sacio.a when I compile using gfortran under x86_64 Message-ID: <7A75C980-5883-4201-AB7E-BBD5DC2C7B8D@yahoo.com> Hi All, I have a compilation problem (look at the bottom). Is that because I have got the binary sac version for OSX (Version 101.3b) that is compiled for a 64 bit architecture? I have to use -m32 because otherwise I get " missing required architecture x86_64 in file". Should I get the source code to be compiled for 32 bit so that I have the right library? Or maybe there is another solution? Thank you for the help. Paola bash-3.2$ gfortran -m32 -C Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram Undefined symbols: "_cmmem", referenced from: _cmmem$non_lazy_ptr in sacio.a(writevfile.o) _cmmem$non_lazy_ptr in sacio.a(putvvstring.o) _cmmem$non_lazy_ptr in sacio.a(getvvstring.o) _cmmem$non_lazy_ptr in sacio.a(initializevar.o) _cmmem$non_lazy_ptr in sacio.a(initvlist.o) _cmmem$non_lazy_ptr in sacio.a(nextvlist.o) _cmmem$non_lazy_ptr in sacio.a(putventry.o) _cmmem$non_lazy_ptr in sacio.a(increasenlist.o) _cmmem$non_lazy_ptr in sacio.a(encodevnil.o) _cmmem$non_lazy_ptr in sacio.a(setvreadonly.o) _cmmem$non_lazy_ptr in sacio.a(readvfile.o) _cmmem$non_lazy_ptr in sacio.a(deletev.o) _cmmem$non_lazy_ptr in sacio.a(existsv.o) _cmmem$non_lazy_ptr in sacio.a(createvlist.o) _cmmem$non_lazy_ptr in sacio.a(findvnil.o) _cmmem$non_lazy_ptr in sacio.a(deletevlist.o) (maybe you meant: _cmmem$non_lazy_ptr) ld: symbol(s) not found collect2: ld returned 1 exit status